Skip to content

Commit

Permalink
[js][bidi] Fix flaky test for network event
Browse files Browse the repository at this point in the history
  • Loading branch information
pujagani committed Sep 17, 2024
1 parent 375e841 commit 2970ad3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion javascript/node/selenium-webdriver/test/bidi/network_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ suite(
it('can listen to event before request is sent', async function () {
let beforeRequestEvent = null
await network.beforeRequestSent(function (event) {
beforeRequestEvent = event
if (event.request.url.includes('empty')) {
beforeRequestEvent = event
}
})

await driver.get(Pages.emptyPage)
Expand Down

0 comments on commit 2970ad3

Please sign in to comment.