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",
|
2022-08-23 11:02:59 +08:00
|
|
|
"test-chromium-ci": "export CI='true' && npx playwright test --project=chromium --grep @ci",
|
2022-08-16 06:04:42 +08:00
|
|
|
"test-firefox-ci": "export CI='true' && npx playwright test --project=firefox --grep @ci"
|
2021-11-18 04:07:14 +08:00
|
|
|
},
|
2022-06-08 01:52:54 +08:00
|
|
|
"dependencies": {
|
2022-11-30 23:50:43 +08:00
|
|
|
"@playwright/test": "^1.28.1",
|
|
|
|
"axios": "^1.2.0",
|
2023-03-08 10:34:49 +08:00
|
|
|
"chalk": "^4.1.2",
|
|
|
|
"deep-equal": "^2.2.0",
|
2022-02-10 21:27:48 +08:00
|
|
|
"dotenv": "^16.0.0",
|
2022-11-30 23:50:43 +08:00
|
|
|
"playwright": "^1.28.1",
|
2022-09-06 11:45:53 +08:00
|
|
|
"sha1": "^1.1.1",
|
|
|
|
"xml2js": "^0.4.23"
|
2021-11-03 00:45:52 +08:00
|
|
|
}
|
2022-08-16 06:04:42 +08:00
|
|
|
}
|