2021-11-03 00:45:52 +08:00
{
2021-11-18 04:07:14 +08:00
"scripts" : {
2022-01-20 21:07:48 +08:00
"test" : "npx playwright test" ,
2022-12-31 03:09:31 +08:00
"test:ssh" : "set -e; fn () { target=$1; shift; secret=$(ssh $target sudo bbb-conf --secret); env=$(echo \"$secret\" | sed -e 's/^ *URL: /BBB_URL=/' -e '/^BBB_URL/s/$/api/' -e 's/^ *Secret: /BBB_SECRET=/' -e '/^BBB/p' -e d); env $env npx playwright test $@; }; fn" ,
2022-01-20 21:07:48 +08:00
"test:filter" : "npx playwright test -g" ,
"test:headed" : "npx playwright test --headed" ,
2022-06-08 01:52:54 +08:00
"test:debug" : "npx playwright test --debug -g" ,
2023-08-05 03:47:23 +08:00
"test-chromium-ci" : "export CI='true' && npx playwright test --project=chromium --grep @ci --grep-invert @flaky" ,
"test-firefox-ci" : "export CI='true' && npx playwright test --project=firefox --grep @ci --grep-invert @flaky" ,
2023-06-14 00:51:04 +08:00
"rewrite-snapshots" : "read -p 'CAUTION: You will delete ALL testing folders containing snapshots and run the tests to rewrite these files.\nProceed? (y/n) ' confirm && test $confirm = 'y' && sh core/scripts/rewrite-snapshots.sh"
2021-11-18 04:07:14 +08:00
} ,
2022-06-08 01:52:54 +08:00
"dependencies" : {
2024-07-05 04:15:52 +08:00
"@playwright/test" : "^1.45.1" ,
2024-08-14 20:52:25 +08:00
"axios" : "^1.7.4" ,
2023-03-08 10:34:49 +08:00
"chalk" : "^4.1.2" ,
2024-07-05 04:15:52 +08:00
"deep-equal" : "^2.2.3" ,
"dotenv" : "^16.4.5" ,
"playwright" : "^1.45.1" ,
2024-03-08 04:09:54 +08:00
"sha.js" : "^2.4.11" ,
2024-07-05 04:15:52 +08:00
"xml2js" : "^0.6.2"
2021-11-03 00:45:52 +08:00
}
2024-03-08 04:09:54 +08:00
}