Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bgotink/ngx-playwright
Tools to run playwright e2e tests in an angular workspace
https://github.com/bgotink/ngx-playwright
Last synced: 25 days ago
JSON representation
Tools to run playwright e2e tests in an angular workspace
- Host: GitHub
- URL: https://github.com/bgotink/ngx-playwright
- Owner: bgotink
- License: mit
- Created: 2021-03-24T23:58:19.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-10-21T17:43:24.000Z (about 2 months ago)
- Last Synced: 2024-10-21T21:30:17.441Z (about 2 months ago)
- Language: JavaScript
- Size: 706 MB
- Stars: 23
- Watchers: 5
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- fucking-awesome-angular - ngx-playwright - Tools to run Playwright e2e tests in an Angular workspace. (Table of contents / Angular)
- awesome-angular - ngx-playwright - Tools to run Playwright e2e tests in an Angular workspace. (Table of contents / Angular)
README
# @ngx-playwright
Utilities for using playwright to test angular applications.
This repository contains multiple packages in the `packages/` folder. Every package has its own README detailing what it does and how to use it.
## Development
This repository is set up using [yarn 3](https://yarnpkg.com) and [snuggery](https://github.com/snuggery/snuggery).
To install dependencies, run the following command:
```bash
yarn
```To build a package, run this in the folder of the package, or run it in the repository root folder to build all packages:
```bash
yarn build
# or
yarn sn build
# or, if you have @snuggery/global installed globally
sn build
```Alternatively, you could use the `@angular/cli` by passing the project to build:
```bash
yarn ng build @ngx-playwright/test
# or to build all projects
yarn ng build all
```The package will be built in `/dist`, e.g. `packages/test/dist`. You can test your build by referring to that folder in a package.json, e.g.
```json
// in dependencies, or via resolutions
{
"@ngx-playwright/test": "file:///path/to/ngx-playwright/packages/test/dist"
}
```To run the integration tests, run
```bash
yarn test
# or
yarn sn test
# or, if you have @snuggery/global installed globally
sn test
# or, using the @angular/cli
yarn ng test
```Before opening a pull request, mark the packages that need to be released afterwards using
```bash
yarn version check --interactive
```To publish, run
```bash
yarn sn deploy
# or, if @snuggery/global is installed globally
sn deploy
# or, using the @angular/cli
yarn ng deploy
```## License
See [LICENSE.md](./LICENSE.md)