Merge pull request #18616 from antonbsa/avoid-webcam-test

test: Skip webcam test to run on CI
This commit is contained in:
Anton Georgiev 2023-08-22 14:22:34 -04:00 committed by GitHub
commit f7feced4f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -5,8 +5,8 @@
"test:filter": "npx playwright test -g", "test:filter": "npx playwright test -g",
"test:headed": "npx playwright test --headed", "test:headed": "npx playwright test --headed",
"test:debug": "npx playwright test --debug -g", "test:debug": "npx playwright test --debug -g",
"test-chromium-ci": "export CI='true' && npx playwright test --project=chromium --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", "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" "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": { "dependencies": {

View File

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