Skip to content

Commit f512e43

Browse files
working example
1 parent 5784576 commit f512e43

File tree

6 files changed

+18
-14
lines changed

6 files changed

+18
-14
lines changed

org/project.json renamed to org/projectkkkkk.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
{
88
"command": "CURRENTS_API_URL=https://cy-staging.currents.dev npx pwc --key AcceNBS8GCEFdr4C --project-id ghc2jY --ci-build-id 100091"
99
}
10-
],
11-
"parallel": true
10+
]
1211
}
1312
}
1413
}

org/test-app-e2e/playwright.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ const baseURL = process.env['BASE_URL'] || 'http://localhost:4300';
2121
const currentsConfig: CurrentsConfig = {
2222
recordKey: 'AcceNBS8GCEFdr4C',
2323
projectId: 'ghc2jY',
24+
ciBuildId: '100101'
2425
};
2526

2627
export default defineConfig({

org/test-app-e2e/project.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@
77
"// targets": "to see all targets run: nx show project test-app-e2e --web",
88
"targets": {
99
"e2e": {
10-
"executor": "@nx/playwright:playwright",
11-
"outputs": ["{workspaceRoot}/dist/test-app-e2e"],
10+
"executor": "nx:run-commands",
1211
"options": {
13-
"config": "test-app-e2e/playwright.config.ts",
1412
"commands": [
1513
{
16-
"command": "CURRENTS_API_URL=https://cy-staging.currents.dev npx pwc --key AcceNBS8GCEFdr4C --project-id ghc2jY --ci-build-id 100091"
14+
"command": "npx playwright test --list"
15+
},
16+
{
17+
"command": "CURRENTS_API_URL=https://cy-staging.currents.dev npx pwc --key AcceNBS8GCEFdr4C --project-id ghc2jY --ci-build-id 100098"
1718
}
18-
],
19-
"parallel": true
19+
]
2020
}
2121
}
2222
}
File renamed without changes.

org/test-app/playwright.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ const baseURL = process.env['BASE_URL'] || 'http://localhost:4300';
1717
const currentsConfig: CurrentsConfig = {
1818
recordKey: 'AcceNBS8GCEFdr4C',
1919
projectId: 'ghc2jY',
20+
ciBuildId: '100101'
2021
};
2122

2223
/**

org/test-app/project.json

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,19 @@
77
"// targets": "to see all targets run: nx show project test-app --web",
88
"targets": {
99
"e2e": {
10-
"executor": "@nx/playwright:playwright",
11-
"outputs": ["{workspaceRoot}/dist/test-app"],
10+
"executor": "nx:run-commands",
1211
"options": {
13-
"config": "test-app/playwright.config.ts",
1412
"commands": [
1513
{
16-
"command": "CURRENTS_API_URL=https://cy-staging.currents.dev npx pwc --key AcceNBS8GCEFdr4C --project-id ghc2jY --ci-build-id 100091"
14+
"command": "npx playwright test --list"
15+
},
16+
{
17+
"command": "sleep 5"
18+
},
19+
{
20+
"command": "CURRENTS_API_URL=https://cy-staging.currents.dev npx pwc --key AcceNBS8GCEFdr4C --project-id ghc2jY --ci-build-id 100098"
1721
}
18-
],
19-
"parallel": true
22+
]
2023
}
2124
}
2225
}

0 commit comments

Comments
 (0)