We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 069b76c + a6b06fb commit 8bae864Copy full SHA for 8bae864
javascript/selenium-webdriver/test/bidi/network_test.js
@@ -69,6 +69,7 @@ suite(
69
await driver.navigate().refresh()
70
71
assert.equal(beforeRequestEvent.request.method, 'GET')
72
+ await driver.wait(() => beforeRequestEvent.request.cookies.length > 0, 2000)
73
assert.equal(beforeRequestEvent.request.cookies[0].name, 'north')
74
assert.equal(beforeRequestEvent.request.cookies[0].value.value, 'biryani')
75
const url = beforeRequestEvent.request.url
@@ -80,6 +81,7 @@ suite(
80
81
})
82
83
84
+ await driver.wait(() => beforeRequestEvent.request.cookies.length > 1, 2000)
85
assert.equal(beforeRequestEvent.request.cookies[1].name, 'south')
86
assert.equal(beforeRequestEvent.request.cookies[1].value.value, 'dosa')
87
0 commit comments