mirror of
https://github.com/apache/superset.git
synced 2024-09-07 06:17:45 -04:00
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(
|
const { container } = render(
|
||||||
<Menu>
|
<Menu>
|
||||||
<LanguagePicker {...mockedProps} />
|
<LanguagePicker {...mockedProps} />
|
||||||
</Menu>,
|
</Menu>,
|
||||||
);
|
);
|
||||||
|
expect(await screen.findByRole('button')).toBeInTheDocument();
|
||||||
expect(container).toBeInTheDocument();
|
expect(container).toBeInTheDocument();
|
||||||
});
|
});
|
||||||
|
|
||||||
test('should render the language picker', () => {
|
test('should render the language picker', async () => {
|
||||||
render(
|
render(
|
||||||
<Menu>
|
<Menu>
|
||||||
<LanguagePicker {...mockedProps} />
|
<LanguagePicker {...mockedProps} />
|
||||||
</Menu>,
|
</Menu>,
|
||||||
);
|
);
|
||||||
expect(screen.getByLabelText('Languages')).toBeInTheDocument();
|
expect(await screen.findByLabelText('Languages')).toBeInTheDocument();
|
||||||
});
|
});
|
||||||
|
|
||||||
test('should render the items', async () => {
|
test('should render the items', async () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user