Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 1 addition & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,7 @@ on:

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm

- run: npm ci
- run: npm run build
- run: npm test --workspaces --if-present
uses: ./.github/workflows/test.yml

release:
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches: [main]
pull_request:
branches: [main]
workflow_call:

jobs:
test:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ coverage/
.playwright-mcp/
packages/*/dist/
*.tsbuildinfo
test-results/
11 changes: 6 additions & 5 deletions PLAN.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,21 +81,22 @@ The foundation — a persistent REPL connected to the Playwright MCP daemon.
- [ ] **#16 Chaining selectors** — support combining locators (e.g., `click "Delete" "Buy groceries"`)
- [ ] **#15 Add `clear` command** — clear the REPL console
- [ ] **#14 Add `highlight` command** — visually highlight elements on the page
- [ ] **#5 Convert to Playwright tests** — export `.pw` files as Playwright TypeScript test suites
- [ ] **#4 CSV/Excel/Markdown export** — save session data in tabular formats

### CI/CD
### Done (moved from backlog)

- [ ] **Reuse test workflow in release** — make `test.yml` callable via `workflow_call` so `release.yml` reuses it instead of duplicating steps (adds E2E tests + linting to release pipeline)
- [x] **#5 Convert to Playwright tests** — export `.pw` files as Playwright TypeScript tests (v0.5 extension export)
- [x] **Reuse test workflow in release** — `test.yml` callable via `workflow_call`, `release.yml` uses it (v0.6)
- [x] **CLI replay regression tests** — multi-file `--replay` with pass/fail reporting and log file (v0.6)

### Future Ideas

- [ ] Convert extension command E2E tests (Playwright Test) to vitest integration tests — they only use HTTP fetch, no browser UI
- [ ] Migrate extension panel to React (replace vanilla DOM manipulation in panel.ts with React components)
- [ ] Replace custom recorder with Playwright's recording infrastructure (battle-tested locator generation)
- [ ] Variable substitution in .pw files (e.g., `${URL}`, `${USER}`)
- [ ] CLI strict mode violation hint — suggest `--nth` when multiple elements match
- [ ] CLI replay regression tests — run `.pw` folders as test suites with pass/fail reporting
- [ ] Add missing commands: keydown, keyup, mousemove, mousedown, mouseup, mousewheel, tracing, video
- [ ] npx support (`npx playwright-repl`)
- [ ] Config file support (.playwright-repl.json)
- [ ] Plugin system for custom commands

Expand Down
4 changes: 0 additions & 4 deletions packages/extension/test-results/.last-run.json

This file was deleted.