You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore(ci): decouple namespace from Playwright project name (#3796)
* Fix status saving for showcase-runtime for the fine-grained reporter
* chore(ci): decouple namespace from Playwright project name
* Add check for playwright project
* Update docs and rules
* Define PW projects in json file
* Update docs and rules again
* Fix log
* Removing check for project as redundant
* Update projects.ts
* Use yarn instead of npx
* Prettier
* Update utils.sh
* Update utils.sh
In the CI/CD pipeline, tests are executed directly using Playwright's `--project` flag via the `run_tests()` function in `.ibm/pipelines/utils.sh`:
118
+
119
+
```bash
120
+
yarn playwright test --project="${playwright_project}"
121
+
```
110
122
111
-
Available yarn scripts in `e2e-tests/package.json`:
123
+
The namespace and Playwright project are decoupled, allowing flexible reuse. The `check_and_test()` and `run_tests()` functions accept an explicit `playwright_project` argument:
**Note**: The CI pipeline no longer uses yarn script aliases. Instead, it runs Playwright directly with `yarn playwright test --project=<project-name>`. This decouples the namespace from the test project name, enabling more flexible namespace and test project reuse.
167
+
146
168
### Environment Variables
147
169
148
170
All the important environment variables are sourced in `.ibm/pipelines/env_variables.sh`
@@ -283,6 +305,7 @@ For CI/CD pipeline execution, tests run in a containerized environment using the
283
305
-**`.ibm/pipelines/utils.sh`**: Utility functions
284
306
-**`.ibm/pipelines/reporting.sh`**: Reporting and notifications
In the CI/CD pipeline, tests are executed directly using Playwright's `--project` flag via the `run_tests()` function in `.ibm/pipelines/utils.sh`:
124
+
125
+
```bash
126
+
yarn playwright test --project="${playwright_project}"
127
+
```
116
128
117
-
Available yarn scripts in `e2e-tests/package.json`:
129
+
The namespace and Playwright project are decoupled, allowing flexible reuse. The `check_and_test()` and `run_tests()` functions accept an explicit `playwright_project` argument:
**Note**: The CI pipeline no longer uses yarn script aliases. Instead, it runs Playwright directly with `yarn playwright test --project=<project-name>`. This decouples the namespace from the test project name, enabling more flexible namespace and test project reuse.
173
+
152
174
### Environment Variables
153
175
154
176
All the important environment variables are sourced in `.ibm/pipelines/env_variables.sh`
@@ -289,6 +311,7 @@ For CI/CD pipeline execution, tests run in a containerized environment using the
0 commit comments