Skip to content

Commit

Permalink
fix: wait for correct number of windows
Browse files Browse the repository at this point in the history
  • Loading branch information
goosewobbler committed Dec 6, 2024
1 parent 825dc0e commit 261ca31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion e2e/test/interaction.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { setupBrowser, type WebdriverIOQueries } from '@testing-library/webdrive
const waitUntilWindowsAvailable = async (desiredWindows: number) =>
await browser.waitUntil(async () => {
const numWindows = (await browser.getWindowHandles()).length;
return numWindows > desiredWindows;
return numWindows === desiredWindows;
});

let screen: WebdriverIOQueries;
Expand Down

0 comments on commit 261ca31

Please sign in to comment.