Skip to content

feat: add Playwright integration with simulate mode - #8

Open
d-claro wants to merge 5 commits into
mainfrom
feature/playwright-integration
Open

feat: add Playwright integration with simulate mode#8
d-claro wants to merge 5 commits into
mainfrom
feature/playwright-integration

Conversation

@d-claro

@d-claro d-claro commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator

What was done

  • Added Playwright integration to run automated tests directly from the terminal
  • Added run-test command that links test cases to Playwright test files
  • Added simulate mode for environments where Playwright browsers cannot be installed
  • Added playwright_file field to test cases in test_cases.json
  • Updated menu with Run Playwright Test option including mode selection
  • Created example test file in tests/test_login.py

New Command

  • run-test TC-001 — runs the Playwright test linked to a test case
  • run-test TC-001 --simulate — simulates the test run step by step without a browser

How it works

  • Each test case in test_cases.json has a playwright_file field linking to its test file
  • When the test runs, the state is automatically updated to Passed or Failed
  • Simulate mode shows each test step with expected results — useful for demos and incompatible environments

Notes

  • Requires Playwright installed and browsers configured for real mode
  • Simulate mode works on any machine without additional setup
  • Open for suggestions and feedback from the team.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant