mirror of
https://github.com/strapi/strapi.git
synced 2025-11-08 06:07:41 +00:00
fix LocaleSelect test
This commit is contained in:
parent
d5127d16f3
commit
82c69d5add
@ -84,7 +84,7 @@ describe('LocaleSelect', () => {
|
|||||||
await waitFor(() =>
|
await waitFor(() =>
|
||||||
expect(screen.queryByText('Loading the available locales...')).not.toBeInTheDocument()
|
expect(screen.queryByText('Loading the available locales...')).not.toBeInTheDocument()
|
||||||
);
|
);
|
||||||
fireEvent.click(screen.getByLabelText('Locales'));
|
fireEvent.click(screen.getByText('Locales'));
|
||||||
await waitFor(() => screen.getByText('Afrikaans (af)'));
|
await waitFor(() => screen.getByText('Afrikaans (af)'));
|
||||||
|
|
||||||
expect(screen.getByText('Afrikaans (af)')).toBeVisible();
|
expect(screen.getByText('Afrikaans (af)')).toBeVisible();
|
||||||
@ -99,7 +99,7 @@ describe('LocaleSelect', () => {
|
|||||||
await waitFor(() =>
|
await waitFor(() =>
|
||||||
expect(screen.queryByText('Loading the available locales...')).not.toBeInTheDocument()
|
expect(screen.queryByText('Loading the available locales...')).not.toBeInTheDocument()
|
||||||
);
|
);
|
||||||
fireEvent.click(screen.getByLabelText('Locales'));
|
fireEvent.click(screen.getByText('Locales'));
|
||||||
await waitFor(() => screen.getByText('Afrikaans (af)'));
|
await waitFor(() => screen.getByText('Afrikaans (af)'));
|
||||||
fireEvent.click(screen.getByText('French (fr)'));
|
fireEvent.click(screen.getByText('French (fr)'));
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user