Skip to content

Commit a8845c8

Browse files
committed
chore: Attempt to disable BiDi again.
1 parent d44fec2 commit a8845c8

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

test/webdriverio/test/scroll_test.ts

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,21 @@ suite('Scrolling into view', function () {
3030
this.browser = await testSetup(testFileLocations.BASE, this.timeout());
3131
// Note that a viewport is used here over adjusting window size to ensure
3232
// consistency across platforms and environments.
33-
await this.browser.setViewport({
34-
width: 800, height: 600, devicePixelRatio: 1
35-
});
33+
// await this.browser.setViewport({
34+
// width: 800, height: 600, devicePixelRatio: 1
35+
// });
36+
this.windowSize = await this.browser.getWindowSize();
37+
await this.browser.setWindowSize(800, 600);
3638
await this.browser.pause(PAUSE_TIME);
3739
});
3840

41+
// Restore original browser window size.
42+
suiteTeardown(async function () {
43+
await this.browser.setWindowSize(
44+
this.windowSize.width,
45+
this.windowSize.height,
46+
);
47+
3948
// Clear the workspace and load start blocks.
4049
setup(async function () {
4150
await testSetup(testFileLocations.BASE, this.timeout());

test/webdriverio/test/test_setup.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,11 @@ export async function driverSetup(
6666
args: ['--allow-file-access-from-files'],
6767
},
6868
// Allows certain BiDi features to work correctly.
69-
'webSocketUrl': true
69+
// 'webSocketUrl': true
70+
// We aren't (yet) using any BiDi features, and BiDi is sensitive to
71+
// mismatches between Chrome version and Chromedriver version.
72+
// eslint-disable-next-line @typescript-eslint/naming-convention
73+
'wdio:enforceWebDriverClassic': true,
7074
},
7175
waitforTimeout: wdioWaitTimeoutMs,
7276
logLevel: 'warn' as const,

0 commit comments

Comments
 (0)