Playwright automation scaffold installer for L7 projects
Project description
autoplay-l7
Playwright automation scaffold installer for L7 projects.
Installation
pip install autoplay-l7
Usage
Inside your project root, run:
autoplay init
Behavior
- If
tests/exists → installs scaffold intotests/automation/ - If
tests/automation/already exists → merges scaffold files into it (existing files are not deleted) - If no
tests/folder exists → createstests/automation/with the full scaffold
Options
autoplay init [--target DIR]
--target DIR Project root to install into (default: current directory)
Example
cd my-project/
autoplay init
# → tests/automation/ is created or updated
What gets installed
tests/automation/
├── conftest.py
├── pytest.ini
├── requirements.txt
├── playwright.sh
├── utils/
│ ├── commands.py
│ ├── networks.py
│ └── utility_functions.py
├── pages/
│ ├── base_page.py
│ ├── homepage.py
│ └── ...
├── e2e/
│ ├── base_tc.py
│ ├── placeholder/
│ └── Test case Templates/
└── fixtures/
└── index_seed.yml
Configuration
Port & Host
The automation connects to your app using environment variables. The defaults are defined in tests/automation/pages/base_page.py:
DEFAULT_PORT = "8002"
HOST = os.getenv("ESP_HOST", "localhost")
PORT = os.getenv("ESP_PORT", DEFAULT_PORT)
To change the port, update DEFAULT_PORT in base_page.py to match the port exposed by your Docker container:
DEFAULT_PORT = "8080" # replace with your Docker port
This single change propagates automatically to:
- The browser navigation URLs (
BasePage.build_url) - The
espCLI commands inutils/commands.py - The default value in
playwright.sh
Alternatively, you can pass the port at runtime without changing any file:
ESP_PORT=8080 ./playwright.sh -t "e2e/placeholder/placeholder.py"
Or for Docker mode:
ESP_HOST=localhost ESP_PORT=8080 ./playwright.sh -t "e2e/placeholder/placeholder.py" -D
Running tests
cd tests/automation/
./playwright.sh -t "e2e/placeholder/placeholder.py"
For Docker mode:
./playwright.sh -t "e2e/placeholder/placeholder.py" -D
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file autoplay_l7-0.1.4.tar.gz.
File metadata
- Download URL: autoplay_l7-0.1.4.tar.gz
- Upload date:
- Size: 33.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fd11dbd6847949d6bd40455414b5c462bbc025daa0b966abfdddd6752da2bd8a
|
|
| MD5 |
7f711993ff688af883a163e04b01e8ea
|
|
| BLAKE2b-256 |
5f0d7329cf2d4b0237b310c8b8ad77f515900086f8603283b7f37b29b1df632a
|
File details
Details for the file autoplay_l7-0.1.4-py3-none-any.whl.
File metadata
- Download URL: autoplay_l7-0.1.4-py3-none-any.whl
- Upload date:
- Size: 39.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3407238d69df86869e39624b1899f36a37e718ad8223c2187f07409910bcde84
|
|
| MD5 |
770c6a1423e9262f25865bf1054f1fae
|
|
| BLAKE2b-256 |
ea6ae4753915c7b7cadac160d5b947fdf532972a60590e9dc4dd559476349eb4
|