Skip to content

Commit 29f54b7

Browse files
authored
chore: Add waitForAssertion in runtime-drawers.test.ts (#3697)
1 parent 5ce975f commit 29f54b7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/app-layout/__integ__/runtime-drawers.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,9 @@ describe.each(['classic', 'refresh', 'refresh-toolbar'] as Theme[])('%s', theme
109109
await page.click(wrapper.findNavigation().findSideNavigation().findLinkByHref('page2').toSelector());
110110
await page.runInsideIframe('#page2', true, async () => {
111111
await page.waitForVisible(wrapper.findActiveDrawer().toSelector());
112-
expect((await page.getBoundingBox(wrapper.findActiveDrawer().toSelector())).width).toEqual(newWidth!);
112+
await page.waitForAssertion(async () => {
113+
expect((await page.getBoundingBox(wrapper.findActiveDrawer().toSelector())).width).toEqual(newWidth!);
114+
});
113115
await expect(page.getText(wrapper.findActiveDrawer().toSelector())).resolves.toContain('Security');
114116
});
115117
}

0 commit comments

Comments
 (0)