mirror of
https://github.com/ansible/awx.git
synced 2026-03-18 01:17:35 -02:30
Fix console being thrown in Dashboard test
This commit is contained in:
@@ -35,9 +35,12 @@ describe('<Dashboard />', () => {
|
|||||||
|
|
||||||
test('renders template list when the active tab is changed', async () => {
|
test('renders template list when the active tab is changed', async () => {
|
||||||
expect(pageWrapper.find('DashboardTemplateList').length).toBe(0);
|
expect(pageWrapper.find('DashboardTemplateList').length).toBe(0);
|
||||||
pageWrapper
|
await act(async () => {
|
||||||
.find('button[aria-label="Recent Templates list tab"]')
|
pageWrapper
|
||||||
.simulate('click');
|
.find('button[aria-label="Recent Templates list tab"]')
|
||||||
|
.simulate('click');
|
||||||
|
});
|
||||||
|
pageWrapper.update();
|
||||||
expect(pageWrapper.find('DashboardTemplateList').length).toBe(1);
|
expect(pageWrapper.find('DashboardTemplateList').length).toBe(1);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user