CM: Fix test errors for EditSettingsView

This commit is contained in:
Gustav Hansen 2022-08-23 20:36:19 +02:00
parent 8231bb905a
commit 43a81dd943
2 changed files with 748 additions and 1249 deletions

View File

@ -88,13 +88,13 @@ describe('EditSettingsView', () => {
expect(screen.getByText('Configure the view - Address')).toBeInTheDocument()
);
expect(container.firstChild).toMatchSnapshot();
expect(container).toMatchSnapshot();
});
it('should add relation', async () => {
const history = createMemoryHistory();
const { container } = render(makeApp(history), { container: document.body });
const { container } = render(makeApp(history));
await waitFor(() =>
expect(screen.getByText('Configure the view - Address')).toBeInTheDocument()
@ -113,7 +113,7 @@ describe('EditSettingsView', () => {
it('should add field', async () => {
const history = createMemoryHistory();
const { container } = render(makeApp(history), { container: document.body });
const { container } = render(makeApp(history));
await waitFor(() =>
expect(screen.getByText('Configure the view - Address')).toBeInTheDocument()