microsoft / microsoft/playwright
[Feature] expose @playwright/test runner API
@dgozman is already working on this.
Since Jun 28, 2021.
- Dominant language
- TypeScript
- Stars
- 96.3k
- Forks
- 6.5k
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 180
Description
We're currently using jest as a test runner for testing angular applications using playwright. In the angular ecosystem tools usually integrate with the `@angular/cli` by providing a builder, so our `@ngx-playwright/jest` package is actually what powers the `ng e2e` command in our repositories.
It would be great if we could write such an integration for the `@playwright/test` runner as well, but that'd require access to the runner APIs.
While it would be possible to execute the playwright CLI in a new process, this would make certain integrations harder or hacky. For instance passing configuration from the angular.json into the test runner would require turning those into CLI arguments and passing the base URL the angular app is hosted at into the runner would require a workaround using the child process's environment to pass this along.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.