From 65aed3e31f476fb0ab34ee587159947f76ad1a5c Mon Sep 17 00:00:00 2001 From: Daniel Date: Fri, 8 Dec 2023 12:27:15 +0100 Subject: [PATCH] improve docs --- README.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 721a572..159e16e 100644 --- a/README.md +++ b/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