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