feat(py): scaffold pytest-playwright stack#132
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds the Python Playwright stack under
stacks/python-playwrightwith pytest, pytest-playwright, Ruff, mypy, the first smoke login scenario, and stack documentation. Extends the catalog checker and generated matrix to verify Python scenario IDs. Adds Python fast/full/nightly CI wiring and a Dependabot pip entry.Why
Phase 7 starts the Python Playwright track while keeping its gate model aligned with the TypeScript Playwright stack per proposal §8 / R24.
Verification
rtk python3 tools/check-scenarios.py --write-matrix && rtk git diff --exit-code docs/scenario-matrix.md→ passed.rtk docker run --rm -v "$PWD:/repo:ro" -w /repo rhysd/actionlint:1.7.12@sha256:b1934ee5f1c509618f2508e6eb47ee0d3520686341fec936f3b79331f9315667 -color→ passed.rtk npx --yes markdownlint-cli2@0.23.0 README.md stacks/python-playwright/README.md docs/scenario-matrix.md→ passed.cd stacks/python-playwright && .venv/bin/ruff check . && .venv/bin/ruff format --check . && .venv/bin/mypy src tests→ passed.cd stacks/python-playwright && THE_INTERNET_BASE_URL=http://localhost:7080 .venv/bin/pytest -m smoke --browser chromium --tracing retain-on-failure --screenshot only-on-failure --video retain-on-failure --output test-results/post-commit-smoke --junitxml test-results/post-commit-smoke/junit.xml→ passed (1 passed).Out of scope
Remaining Python P0 scenarios are reserved for P7.2 and P7.3.