Skip to content

Commit

Permalink
test(tab-nav): stabilize test (#8356)
Browse files Browse the repository at this point in the history
**Related Issue:** N/A

## Summary

Waits for changes after interacting with the tab title to account for
some internal eventing going on.
  • Loading branch information
jcfranco authored Dec 8, 2023
1 parent 2718ab3 commit 1ee70f2
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,11 @@ describe("calcite-tab-nav", () => {
expect(activeEventSpy).toHaveReceivedEventTimes(0);

await firstTabTitle.click();
await page.waitForChanges();
expect(activeEventSpy).toHaveReceivedEventTimes(1);

await page.keyboard.press("Enter");
await page.waitForChanges();
expect(activeEventSpy).toHaveReceivedEventTimes(2);
});

Expand Down

0 comments on commit 1ee70f2

Please sign in to comment.