Skip to content

Commit 765c448

Browse files
committed
[js] Add Javascript/Typescript CDDL code generator for WebDriver BiDi
1 parent 318f34d commit 765c448

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

javascript/selenium-webdriver/test/bidi/generated/network_test.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,7 @@ suite(
111111
})
112112

113113
// Navigate to a non-existent host to trigger a fetch error
114-
await browsingContext
115-
.navigate({ context: contextId, url: 'http://doesnotexist.invalid/', wait: 'complete' })
116-
.catch(() => {})
114+
await browsingContext.navigate({ context: contextId, url: 'http://doesnotexist.invalid/', wait: 'complete' }).catch(() => {})
117115
await driver.wait(() => errorEvent !== null, 5000)
118116

119117
assert.ok(errorEvent, 'fetchError should have fired')
@@ -134,7 +132,10 @@ suite(
134132
})
135133

136134
it('throws when removing a non-existent intercept', async function () {
137-
await assert.rejects(() => network.removeIntercept({ intercept: 'no-such-intercept-id' }), /no such intercept/)
135+
await assert.rejects(
136+
() => network.removeIntercept({ intercept: 'no-such-intercept-id' }),
137+
/no such intercept/,
138+
)
138139
})
139140

140141
it('can intercept and continue a request', async function () {

0 commit comments

Comments
 (0)