Tests: Update test commands and add config file

This commit is contained in:
theresa 2022-07-23 13:19:51 +02:00
parent fab00ec6e0
commit 6ddb59949c
2 changed files with 12 additions and 2 deletions

View file

@ -13,8 +13,8 @@
"fmt": "eslint --cache --fix src/ *.js .eslintrc.js",
"test": "karma start",
"upgrade": "npm --depth 10 update && npm audit fix",
"acceptance": "testcafe $npm_config_first --skip-js-errors --quarantine-mode --selector-timeout 5000 -S -s tests/acceptance/screenshots --test-grep $npm_config_second --test-meta mode=$npm_config_third $npm_config_fourth",
"acceptance-short": "testcafe $npm_config_first --skip-js-errors --quarantine-mode --selector-timeout 5000 -S -s tests/acceptance/screenshots --test-grep $npm_config_second --test-meta mode=$npm_config_third,type=short $npm_config_fourth",
"acceptance": "testcafe $npm_config_first --test-grep $npm_config_second --test-meta mode=$npm_config_third --config-file ./testcaferc.json $npm_config_fourth",
"acceptance-short": "testcafe $npm_config_first --test-grep $npm_config_second --test-meta mode=$npm_config_third,type=short --config-file ./testcaferc.json $npm_config_fourth",
"acceptance-local": "testcafe chromium --selector-timeout 5000 -S -s tests/acceptance/screenshots tests/acceptance",
"gettext-extract": "gettext-extract --output src/locales/translations.pot $(find src -type f \\( -iname \\*.vue -o -iname \\*.js \\) -not -path src/common/vm.js)",
"gettext-compile": "gettext-compile --output src/locales/translations.json src/locales/*.po"

10
frontend/testcaferc.json Normal file
View file

@ -0,0 +1,10 @@
{
"skipJsErrors": true,
"quarantineMode": true,
"selectorTimeout": 5000,
"screenshots": {
"path": "tests/acceptance/screenshots",
"takeOnFails": true
}
}