mirror of
https://github.com/ansible/awx.git
synced 2026-01-22 15:08:03 -03:30
Merge pull request #8909 from mabashian/fix-test-warning
Fix console being thrown in Dashboard test Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
commit
3f35ea66fb
@ -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