mirror of
https://github.com/strapi/strapi.git
synced 2025-10-29 08:59:34 +00:00
fix LocaleSelect test
This commit is contained in:
parent
d5127d16f3
commit
82c69d5add
@ -84,7 +84,7 @@ describe('LocaleSelect', () => {
|
||||
await waitFor(() =>
|
||||
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)'));
|
||||
|
||||
expect(screen.getByText('Afrikaans (af)')).toBeVisible();
|
||||
@ -99,7 +99,7 @@ describe('LocaleSelect', () => {
|
||||
await waitFor(() =>
|
||||
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)'));
|
||||
fireEvent.click(screen.getByText('French (fr)'));
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user