improve docs

This commit is contained in:
Daniel 2023-12-08 12:27:15 +01:00
parent a860c01a89
commit 65aed3e31f

View file

@ -66,7 +66,7 @@ DIR recipes_dir [contains abra recipes]
└── [pytest_files] └── [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 ```python
from wordpress.tests_wordpress.runner_wordpress import RunnerWordpress from wordpress.tests_wordpress.runner_wordpress import RunnerWordpress
@ -116,7 +116,7 @@ Run the script with
python main.py python main.py
``` ```
# 2.2 Run with Docker ## 2.2 Run with Docker
```bash ```bash
docker compose build # build the image docker compose build # build the image
@ -136,12 +136,13 @@ Force rebuild without cache
docker-compose build --no-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 ```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 ## Development