mirror of https://github.com/apache/superset.git
test: Fix act errors in LanguagePicker test (#21395)
This commit is contained in:
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 () => {
|
||||
|
|
Loading…
Reference in New Issue