Skip to content

Commit 3356f57

Browse files
committed
chore: update cypress * 2
1 parent fb0e4fe commit 3356f57

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

packages/cubejs-testing/test/bin/cypress-birdbox.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ import { DriverType, startBirdBoxFromContainer } from '../../src';
3131
// @todo tput: No value for $TERM and no -T specified
3232
// headless: true,
3333
config: {
34-
baseUrl: birdbox.configuration.playgroundUrl,
34+
env: {
35+
baseUrl: birdbox.configuration.playgroundUrl,
36+
},
3537
video: true,
3638
// default 4000
3739
defaultCommandTimeout: 15 * 1000,
@@ -70,11 +72,11 @@ import { DriverType, startBirdBoxFromContainer } from '../../src';
7072
} else {
7173
const results = await cypress.run(options);
7274

73-
if (results.status === 'failed') {
75+
if ('status' in results && results.status === 'failed') {
7476
throw new Error('Cypress failed');
7577
}
7678

77-
if (results.status === 'finished' && results.totalFailed > 0) {
79+
if ('totalFailed' in results && results.totalFailed > 0) {
7880
throw new Error('Cypress failed');
7981
}
8082
}

0 commit comments

Comments
 (0)