Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/spencermelo/pw-ui-framework
E2E test repository using Playwright, Java and Junit5
https://github.com/spencermelo/pw-ui-framework
java junit5 playwright
Last synced: 1 day ago
JSON representation
E2E test repository using Playwright, Java and Junit5
- Host: GitHub
- URL: https://github.com/spencermelo/pw-ui-framework
- Owner: SpencerMelo
- Created: 2024-02-23T02:16:16.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-02-29T21:14:46.000Z (12 months ago)
- Last Synced: 2024-04-24T03:38:13.120Z (10 months ago)
- Topics: java, junit5, playwright
- Language: Java
- Homepage:
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Web UI e2e repository using Playwright
[![Run tests](https://github.com/SpencerMelo/pw-ui-framework/actions/workflows/maven.yml/badge.svg)](https://github.com/SpencerMelo/pw-ui-framework/actions/workflows/maven.yml)
## Minimum Requirements
- Java 21
- Maven 3.6.3
- [You might to install the Browsers](https://playwright.dev/java/docs/browsers)## How to run
#### System properties
```properties
-Dheadless=true|false
-Dbrowser=chrome|firefox|safari
-Dscreenshot=true|false
```#### Basic command
```shell
mvn clean test -Dheadless=false -Dbrowser=chrome -Dscreenshot=true
```#### Debug command (windows)
```shell
powershell -Command { $env:PLAYWRIGHT_JAVA_SRC="src/main/java";$env:PWDEBUG=1; mvn clean test }
```## Notes
- In case you don't define the `-Dbrowser` it will default to `chrome`
- In case you don't define the `-Dheadless` it will default to `true`
- In case you don't define the `-Dscreenshot` it will default to `false`
- Screenshots will be created on the root (`pw-ui-framework`) folder of the project