Skip to content

🎭🐍 Automate end-to-end tests training against www.uitestingplayground.com using Playwright and pytest, written in Python.

Notifications You must be signed in to change notification settings

dwiyatci/uitap_playwright_pytest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

14 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

uitap_playwright_pytest

🎭🐍 Automate end-to-end tests training against www.uitestingplayground.com using Playwright and pytest, written in Python.

test_all.webm.mov

πŸ†™ and πŸƒπŸ»

Prerequisites

Playwright requires Python 3.7 or above. The browser binaries for Chromium, Firefox and WebKit work across the 3 platforms (Windows, macOS, Linux).

Installation and usage

# Install project dependencies
make install

# Run tests
make test

# Run tests (headless)
make test_ci

# Run tests (headless, in parallel)
make test_ci_parallel

πŸƒπŸ» inside 🐳

# Build Docker image
docker build -t uitap-e2e-testing .

# Run Docker container
docker run --rm -it uitap-e2e-testing

Configuration

Environment Variables

PYTEST_ADDOPTS

Please see various supported Playwright's CLI arguments that can be set in this PYTEST_ADDOPTS envvar.

Project layout consideration

The heck the project is structured that way and why all those artifacts, you ask? Long story short, the rationale is a curation product after reading various sources. So be my guests:

Formatting

I'm a hardcore fan of having our code uniformly formatted, and I believe Black has been the de-facto formatter in the Python ecosystem. So I use just that and please do so in the IDE of your choice (ideally, it should be integrated somehow with the IDE, e.g. .py file being formatted "On save").

Additionally, having your code formatted automatically means the formatter's parser will help to catch syntax errors earlier for you, even before the code get interpreted/compiled. πŸͺ€

About

🎭🐍 Automate end-to-end tests training against www.uitestingplayground.com using Playwright and pytest, written in Python.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published