test: add flaky test flag on webcam background test

This commit is contained in:
Anton B 2023-08-22 12:04:07 -03:00
parent 4bcef4168d
commit 94410dc42d
2 changed files with 4 additions and 4 deletions

View File

@ -5,8 +5,8 @@
"test:filter": "npx playwright test -g",
"test:headed": "npx playwright test --headed",
"test:debug": "npx playwright test --debug -g",
"test-chromium-ci": "export CI='true' && npx playwright test --project=chromium --grep @ci",
"test-firefox-ci": "export CI='true' && npx playwright test --project=firefox --grep @ci",
"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",
"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"
},
"dependencies": {
@ -19,4 +19,4 @@
"sha1": "^1.1.1",
"xml2js": "^0.4.23"
}
}
}

View File

@ -49,7 +49,7 @@ test.describe.parallel('Webcam @ci', () => {
await webcam.applyBackground();
});
test('Managing new background', async ({ browser, page }) => {
test('Managing new background @flaky', async ({ browser, page }) => {
const webcam = new Webcam(browser, page);
await webcam.init(true, true);
await webcam.managingNewBackground();