File tree Expand file tree Collapse file tree 2 files changed +17
-4
lines changed
Expand file tree Collapse file tree 2 files changed +17
-4
lines changed Original file line number Diff line number Diff 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 ( ) ) ;
Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments