Fix ReportModal test

renovate/major-react-monorepo
Alex Gleason 2023-01-05 17:32:04 -06:00
rodzic fd542d1796
commit b98073ee8f
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
1 zmienionych plików z 5 dodań i 2 usunięć

Wyświetl plik

@ -4,7 +4,7 @@ import React from 'react';
import { __stub } from 'soapbox/api'; import { __stub } from 'soapbox/api';
import { render, screen } from '../../../../../../jest/test-helpers'; import { render, screen, waitFor } from '../../../../../../jest/test-helpers';
import { normalizeAccount, normalizeStatus } from '../../../../../../normalizers'; import { normalizeAccount, normalizeStatus } from '../../../../../../normalizers';
import ReportModal from '../report-modal'; import ReportModal from '../report-modal';
@ -64,6 +64,9 @@ describe('<ReportModal />', () => {
await user.click(screen.getByTestId('rule-1')); await user.click(screen.getByTestId('rule-1'));
await user.click(screen.getByText(/Next/)); await user.click(screen.getByText(/Next/));
await user.click(screen.getByText(/Submit/)); await user.click(screen.getByText(/Submit/));
await waitFor(() => {
expect(screen.getByText(/Thanks for submitting your report/)).toBeInTheDocument(); expect(screen.getByText(/Thanks for submitting your report/)).toBeInTheDocument();
}); });
}); });
});