mirror of
https://github.com/apache/superset.git
synced 2026-06-07 00:29:17 +00:00
test: Fix act errors in LanguagePicker test (#21395)
This commit is contained in:
committed by
GitHub
parent
ac7dcc3a8d
commit
a2ea5efe25
@@ -38,22 +38,23 @@ const mockedProps = {
|
||||
},
|
||||
};
|
||||
|
||||
test('should render', () => {
|
||||
test('should render', async () => {
|
||||
const { container } = render(
|
||||
<Menu>
|
||||
<LanguagePicker {...mockedProps} />
|
||||
</Menu>,
|
||||
);
|
||||
expect(await screen.findByRole('button')).toBeInTheDocument();
|
||||
expect(container).toBeInTheDocument();
|
||||
});
|
||||
|
||||
test('should render the language picker', () => {
|
||||
test('should render the language picker', async () => {
|
||||
render(
|
||||
<Menu>
|
||||
<LanguagePicker {...mockedProps} />
|
||||
</Menu>,
|
||||
);
|
||||
expect(screen.getByLabelText('Languages')).toBeInTheDocument();
|
||||
expect(await screen.findByLabelText('Languages')).toBeInTheDocument();
|
||||
});
|
||||
|
||||
test('should render the items', async () => {
|
||||
|
||||
Reference in New Issue
Block a user