Skip to content

Commit 1ee70f2

Browse files
authored
test(tab-nav): stabilize test (#8356)
**Related Issue:** N/A ## Summary Waits for changes after interacting with the tab title to account for some internal eventing going on.
1 parent 2718ab3 commit 1ee70f2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/calcite-components/src/components/tab-nav/tab-nav.e2e.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,11 @@ describe("calcite-tab-nav", () => {
3232
expect(activeEventSpy).toHaveReceivedEventTimes(0);
3333

3434
await firstTabTitle.click();
35+
await page.waitForChanges();
3536
expect(activeEventSpy).toHaveReceivedEventTimes(1);
3637

3738
await page.keyboard.press("Enter");
39+
await page.waitForChanges();
3840
expect(activeEventSpy).toHaveReceivedEventTimes(2);
3941
});
4042

0 commit comments

Comments
 (0)