Skip to content

Commit fc9354d

Browse files
committed
updates for testcafe
1 parent e3189bc commit fc9354d

File tree

3 files changed

+114
-119
lines changed

3 files changed

+114
-119
lines changed

tests/e2e/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"build:web": "yarn --cwd ../../ build:web",
1414
"redis:last": "docker run --name redis-last-version -p 7777:6379 -d redislabs/redismod",
1515
"start:app": "cross-env SERVER_STATIC_CONTENT=true yarn start:api",
16-
"test:chrome": "testcafe --compiler-options typescript.configPath=tsconfig.testcafe.json --native-automation --cache --concurrency 1 chrome tests/ -r html:./report/report.html,spec -e -s takeOnFails=true,path=report/screenshots/,pathPattern=${OS}_${BROWSER}/${DATE}_${TIME}/${FIXTURE}_${TEST}_${FILE_INDEX}.png",
16+
"test:chrome": "testcafe --compiler-options typescript.configPath=tsconfig.testcafe.json --cache --concurrency 1 chrome tests/ -r html:./report/report.html,spec -e -s takeOnFails=true,path=report/screenshots/,pathPattern=${OS}_${BROWSER}/${DATE}_${TIME}/${FIXTURE}_${TEST}_${FILE_INDEX}.png",
1717
"test:chrome:ci": "ts-node ./web.runner.ts",
1818
"test": "yarn test:chrome",
1919
"lint": "eslint . --ext .ts,.js,.tsx,.jsx",
@@ -28,8 +28,8 @@
2828
},
2929
"resolutions": {
3030
"@types/lodash": "4.14.192",
31-
"@types/node": "18.11.9",
32-
"testcafe-hammerhead": "24.2.1"
31+
"@types/node": "20.3.1",
32+
"testcafe-hammerhead": "31.4.5"
3333
},
3434
"devDependencies": {
3535
"@types/archiver": "^5.3.2",
@@ -53,12 +53,12 @@
5353
"redis": "3.1.1",
5454
"sqlite3": "^5.1.6",
5555
"supertest": "^4.0.2",
56-
"testcafe": "2.6.2",
56+
"testcafe": "3.0.0",
5757
"testcafe-browser-provider-electron": "0.0.19",
5858
"testcafe-reporter-html": "1.4.6",
5959
"testcafe-reporter-json": "2.2.0",
6060
"testcafe-reporter-spec": "2.1.1",
61-
"ts-node": "^10.5.0",
62-
"typescript": "4.1.5"
61+
"ts-node": "10.9.1",
62+
"typescript": "5.1.3"
6363
}
6464
}

tests/e2e/web.runner.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@ import testcafe from 'testcafe';
4242
assertionTimeout: 5000,
4343
speed: 1,
4444
quarantineMode: { successThreshold: 1, attemptLimit: 3 },
45-
pageRequestTimeout: 8000,
46-
nativeAutomation: true,
45+
pageRequestTimeout: 8000
4746
});
4847
})
4948
.then((failedCount) => {

0 commit comments

Comments
 (0)