Skip to content

Commit

Permalink
updating playwright config
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardroth committed Jul 15, 2024
1 parent bc92dc0 commit 0d80de0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/golden-sample-app-e2e/specs/login.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const i18n = {

test.describe.configure({ mode: 'parallel' });

test.describe('@feature @i18n Login tests', () => {
test.describe('@feature @i18n @e2e Login tests', () => {
test('Empty user name', async ({ identityPage }) => {
identityPage.open();
await test.step('Validate Input fields labels', async () => {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"affected:test": "nx affected:test",
"xi18n": "ng extract-i18n golden-sample-app --output-path=apps/golden-sample-app/src/locale && xliffmerge --profile apps/golden-sample-app/src/xliffmerge.json nl-NL",
"e2e": "nx e2e",
"e2e-test": "npx playwright test --project 'Web Chrome'",
"e2e-test": "npx playwright test --project 'Web Chrome' --grep '@e2e'",
"e2e-test-responsive": "npx playwright test --project 'mobile-chrome' --project 'mobile-safari' --grep '@visual.+@responsive|@responsive.+@visual' --workers=2",
"lint": "nx run-many --all --target=lint",
"format": "prettier --write \"{apps,libs}/**/*.{ts,md,html}\" \"!{apps,libs}/**/coverage\" ",
Expand Down
8 changes: 7 additions & 1 deletion playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,13 @@ const config: PlaywrightTestConfig = {
{
command: 'npx nx serve -c=mocks --port=4201',
url: 'http://localhost:4201/',
timeout: 120 * 1000,
timeout: 30 * 1000,
reuseExistingServer: false,
},
{
command: 'npm run start',
url: 'http://localhost:4200/',
timeout: 30 * 1000,
reuseExistingServer: false,
},
],
Expand Down

0 comments on commit 0d80de0

Please sign in to comment.