Skip to content

Commit

Permalink
test: add an option to run Testcafe test with chromium
Browse files Browse the repository at this point in the history
KK-1247.

Add an option to run Testcafe browser tests with Chromium instead of
Chrome. There have been some issues with the Chrome that prevents using
it in CI environment:

- DevExpress/testcafe#8286
- DevExpress/testcafe#8300
- DevExpress/testcafe#8304
- DevExpress/testcafe#8307
  • Loading branch information
nikomakela committed Oct 28, 2024
1 parent 0ea21cf commit d91558b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"generate:graphql": "cross-env DOTENV_CONFIG_PATH=./.env graphql-codegen -r dotenv/config --config ./codegen.ts",
"test:browser": "testcafe \"chrome --window-size='1920,1080' --disable-search-engine-choice-screen\" browser-tests/ --live",
"test:browser:wsl2win": "testcafe 'path:`/mnt/c/Program Files/Google/Chrome/Application/chrome.exe`' browser-tests/ --live --dev --lang=fi-FI",
"test:browser:ci": "testcafe \"chrome:headless --disable-gpu --window-size='1920,1080' --disable-search-engine-choice-screen\" --lang=fi-FI -s path=report,takeOnFails=true --video report --reporter spec,html:report/index.html browser-tests/"
"test:browser:ci": "testcafe \"chrome:headless --disable-gpu --window-size='1920,1080' --disable-search-engine-choice-screen\" --lang=fi-FI -s path=report,takeOnFails=true --video report --reporter spec,html:report/index.html browser-tests/",
"test:browser:ci:chromium": "testcafe \"chromium:headless --disable-gpu --window-size='1920,1080' --disable-search-engine-choice-screen\" --lang=fi-FI -s path=report,takeOnFails=true --video report --reporter spec,html:report/index.html browser-tests/"
},
"eslintConfig": {
"extends": "react-app"
Expand Down

0 comments on commit d91558b

Please sign in to comment.