Skip to content

Commit 2cee542

Browse files
committed
doc
1 parent b4c48b7 commit 2cee542

File tree

2 files changed

+23
-9
lines changed

2 files changed

+23
-9
lines changed

tests/e2e-playwright/.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
test-results
1+
.e2e-playwright-*.txt
22
assets
33
report.html
4-
.e2e-playwright-*.txt
54
report.xml
5+
test-results

tests/e2e-playwright/README.md

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,36 @@
1+
2+
3+
## Usage
4+
15
### Auto generate new test
2-
`playwright codegen sim4life.io`
6+
```
7+
playwright codegen sim4life.io
8+
```
39

410
### Run test locally with headed mode
511
```
612
pytest -s tests/sim4life.py --headed --browser chromium --product-billable --product-url https://sim4life.io/ --user-name YOUR_USERNAME --password YOUR_PASSWORD --service-key sim4life-8-0-0-dy
713
```
814

915
### Check test results output
10-
`playwright show-trace test-results/tests-sim4life-py-test-billable-sim4life-chromium/trace.zip`
16+
```
17+
playwright show-trace test-results/tests-sim4life-py-test-billable-sim4life-chromium/trace.zip
18+
```
1119

1220
### Run debug mode
13-
`PWDEBUG=1 pytest -s tests/sim4life.py`
21+
```
22+
PWDEBUG=1 pytest -s tests/sim4life.py
23+
```
1424

1525
### Run test in different browsers
16-
`pytest -s tests/sim4life.py --tracing on --html=report.html --browser chromium --browser firefox`
26+
```
27+
pytest -s tests/sim4life.py --tracing on --html=report.html --browser chromium --browser firefox
28+
```
1729

18-
### or in chrome/msedge
19-
`pytest -s tests/sim4life.py --tracing on --html=report.html --browser-channel chrome`
30+
### or in chrome/ms-edge
31+
```
32+
pytest -s tests/sim4life.py --tracing on --html=report.html --browser-channel chrome
33+
```
2034

21-
### Runs in CI
35+
## e2e CI
2236
- https://git.speag.com/oSparc/e2e-backend

0 commit comments

Comments
 (0)