Skip to content

Commit

Permalink
test: optimize tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalets committed Dec 1, 2024
1 parent 8578539 commit 3711166
Show file tree
Hide file tree
Showing 11 changed files with 6 additions and 102 deletions.
3 changes: 1 addition & 2 deletions test/hooks-errors/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"description": "This file is required for Playwright to consider this dir as a <package-json dir>. It ensures to load 'playwright-bdd' from './test/node_modules/playwright-bdd' and output './test-results' here to avoid conflicts.",
"smoke": true
"description": "This file is required for Playwright to consider this dir as a <package-json dir>. It ensures to load 'playwright-bdd' from './test/node_modules/playwright-bdd' and output './test-results' here to avoid conflicts."
}
3 changes: 1 addition & 2 deletions test/hooks-skip/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"description": "This file is required for Playwright to consider this dir as a <package-json dir>. It ensures to load 'playwright-bdd' from './test/node_modules/playwright-bdd' and output './test-results' here to avoid conflicts.",
"smoke": true
"description": "This file is required for Playwright to consider this dir as a <package-json dir>. It ensures to load 'playwright-bdd' from './test/node_modules/playwright-bdd' and output './test-results' here to avoid conflicts."
}
2 changes: 2 additions & 0 deletions test/hooks-skip/test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ const testDir = new TestDir(import.meta);

test(testDir.name, () => {
const stdout = execPlaywrightTest(testDir.name, { env: { WORKERS: 1 } });

// skipped hooks: BeforeAll 2, Before 2, AfterAll 2, After 2
expectCalls('worker 0: ', stdout, [
'workerFixtureCommon setup',
'BeforeAll 1',
Expand Down
3 changes: 1 addition & 2 deletions test/special-tag-slow/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"description": "This file is required for Playwright to consider this dir as a <package-json dir>. It ensures to load 'playwright-bdd' from './test/node_modules/playwright-bdd' and output './test-results' here to avoid conflicts.",
"smoke": true
"description": "This file is required for Playwright to consider this dir as a <package-json dir>. It ensures to load 'playwright-bdd' from './test/node_modules/playwright-bdd' and output './test-results' here to avoid conflicts."
}
3 changes: 1 addition & 2 deletions test/special-tag-timeout/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"description": "This file is required for Playwright to consider this dir as a <package-json dir>. It ensures to load 'playwright-bdd' from './test/node_modules/playwright-bdd' and output './test-results' here to avoid conflicts.",
"smoke": true
"description": "This file is required for Playwright to consider this dir as a <package-json dir>. It ensures to load 'playwright-bdd' from './test/node_modules/playwright-bdd' and output './test-results' here to avoid conflicts."
}
3 changes: 0 additions & 3 deletions test/step-functions/package.json

This file was deleted.

11 changes: 0 additions & 11 deletions test/step-functions/playwright.config.ts

This file was deleted.

12 changes: 0 additions & 12 deletions test/step-functions/sample.feature

This file was deleted.

7 changes: 0 additions & 7 deletions test/step-functions/sample2.feature

This file was deleted.

56 changes: 0 additions & 56 deletions test/step-functions/steps.ts

This file was deleted.

5 changes: 0 additions & 5 deletions test/step-functions/test.mjs

This file was deleted.

0 comments on commit 3711166

Please sign in to comment.