Skip to content

Commit ce5a318

Browse files
authored
chore(e2e): follow the usual pattern for readonly tests, screenshot if failed (#5915)
* follow the usual pattern for readonly tests, screenshot if failed * add a script timeout
1 parent 70b808e commit ce5a318

File tree

2 files changed

+230
-289
lines changed

2 files changed

+230
-289
lines changed

packages/compass-e2e-tests/helpers/compass.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -993,6 +993,9 @@ export async function init(
993993

994994
const { browser } = compass;
995995

996+
// For browser.executeAsync(). Trying to see if it will work for browser.execute() too.
997+
await browser.setTimeout({ script: 5_000 });
998+
996999
// larger window for more consistent results
9971000
const [width, height] = await browser.execute(() => {
9981001
// in case setWindowSize() below doesn't work

0 commit comments

Comments
 (0)