Navigation: Rough implementation of new navbar design (#46909)

This commit is contained in:
kay delaney
2022-03-30 18:05:52 +01:00
committed by GitHub
parent 4449439a41
commit f486b54b84
14 changed files with 1190 additions and 237 deletions

View File

@@ -65,14 +65,14 @@ describe('VariablesUnknownTable', () => {
const { getUnknownsNetworkSpy } = await getTestContext();
userEvent.click(screen.getByRole('heading', { name: /renamed or missing variables/i }));
await waitFor(() => expect(screen.getByTitle('Click to collapse')).toBeInTheDocument());
await waitFor(() => expect(screen.getByRole('button')).toHaveAttribute('aria-expanded', 'true'));
expect(getUnknownsNetworkSpy).toHaveBeenCalledTimes(1);
userEvent.click(screen.getByRole('heading', { name: /renamed or missing variables/i }));
await waitFor(() => expect(screen.getByTitle('Click to expand')).toBeInTheDocument());
await waitFor(() => expect(screen.getByRole('button')).toHaveAttribute('aria-expanded', 'false'));
userEvent.click(screen.getByRole('heading', { name: /renamed or missing variables/i }));
await waitFor(() => expect(screen.getByTitle('Click to collapse')).toBeInTheDocument());
await waitFor(() => expect(screen.getByRole('button')).toHaveAttribute('aria-expanded', 'true'));
expect(getUnknownsNetworkSpy).toHaveBeenCalledTimes(1);
});