improve docs
This commit is contained in:
parent
a860c01a89
commit
65aed3e31f
1 changed files with 6 additions and 5 deletions
11
README.md
11
README.md
|
|
@ -66,7 +66,7 @@ DIR recipes_dir [contains abra recipes]
|
|||
└── [pytest_files]
|
||||
```
|
||||
|
||||
The class `RunnerWordpress` will be automatically imported by `importlib`, which is equivalent to
|
||||
The class `RunnerWordpress` will be automatically imported using `importlib` library, which is equivalent to the code below. Note that `recipes_dir` will be added to sys.path automatically for the import to work and that every `Runner` class matching `recipes_dir.rglob("*/runner*.py")` will be imported.
|
||||
|
||||
```python
|
||||
from wordpress.tests_wordpress.runner_wordpress import RunnerWordpress
|
||||
|
|
@ -116,7 +116,7 @@ Run the script with
|
|||
python main.py
|
||||
```
|
||||
|
||||
# 2.2 Run with Docker
|
||||
## 2.2 Run with Docker
|
||||
|
||||
```bash
|
||||
docker compose build # build the image
|
||||
|
|
@ -136,12 +136,13 @@ Force rebuild without cache
|
|||
docker-compose build --no-cache
|
||||
```
|
||||
|
||||
## Codegen
|
||||
## Playwright Debug & Codegen
|
||||
|
||||
Use playwright codegen to create code for new testes easily https://playwright.dev/python/docs/codegen
|
||||
Use playwright debug mode or codegen to create testing code easily by recording browser actions https://playwright.dev/python/docs/codegen
|
||||
|
||||
```bash
|
||||
playwright codegen demo.playwright.dev/todomvc
|
||||
abratest --debug # launch your tests in debug mode
|
||||
playwright codegen demo.playwright.dev/todomvc # visit given url in codegen mode
|
||||
```
|
||||
|
||||
## Development
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue