Skip to content

Observe Playwright and Appium suites using their native test runners - #17

Merged
Desperado merged 3 commits into
mainfrom
feat/playwright-appium
Nov 27, 2026
Merged

Desperado merged 3 commits into
mainfrom
feat/playwright-appium

Conversation

@Desperado

@Desperado Desperado commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Changes

Add diffprowl observe playwright and diffprowl observe appium to the standalone binary. Both commands execute the full scoped suite and compare its results with the pre-run selection. The existing CI runner controls the test process and its exit status.

Playwright Test provides per-project and per-repeat case identities through an additional reporter. Appium suites supply JUnit XML from their existing runner. The observer checks all declared shards, inventory counts, case identities, retry and skip evidence, and runner status. A clean checkout, an explicit runtime identity and a compatible ancestor baseline are required for reuse.

Verification

  • Ran the Rust tests, Clippy, formatting, and Python adapter suite.
  • Exercised Chromium, Firefox and WebKit. On an unchanged run all six cases executed with zero planned. An injected Chromium regression selected the failing spec and returned exit code 1.
  • Ran the pytest Settings test on an Android API 35 emulator and an iOS 26.5 simulator using a prebuilt WebDriverAgent. Both produced reusable baselines. The unchanged iOS observation planned zero cases and executed the test again.
  • Ran WebdriverIO against the Appium fake driver. A changed screen fixture failed in WebdriverIO, and the original plan contained the failing case.
  • Added Chromium verification to CI and regression tests for missing and inconsistent reports, skipped or retried tests, dirty inputs, and omitted failures.

Setup, examples and evidence fields

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The live test does not exercise native identities across multiple projects and repeats, leaving CI unable to detect duplicate or unstable identities or verify baseline reuse on an unchanged full rerun.

1 open issue
What changed in this PR

Extends DiffProwl’s shadow-selection workflow to native Playwright Test and Appium runners while continuing to execute the full scoped suite and preserve the runner’s exit status.

Changes:

  • Adds embedded observe playwright and observe appium commands.
  • Validates runner reports, scoped inputs, and baseline compatibility for advisory comparisons.
  • Adds browser/mobile examples, setup guidance, regression tests, and Chromium CI coverage.
File Description
src/​main.rs Adds observe commands and shared adapter bootstrapping.
README.md Introduces browser and mobile observation.
examples/​e2e/​status.spec.cjs Adds a browser status-message test.
examples/​e2e/​settings_appium.py Adds an Android/iOS Settings smoke test.
examples/​e2e/​pytest.ini Provides example pytest configuration.
examples/​e2e/​playwright.json Maps browser inputs to consuming specs.
examples/​e2e/​playwright.config.cjs Configures three browsers and the optional reporter.
examples/​e2e/​landing.spec.cjs Tests the checkout-button fixture.
examples/​e2e/​landing.html Supplies the browser page fixture.
examples/​e2e/​appium.json Declares mobile input ownership and JUnit output.
examples/​e2e/​.gitignore Ignores generated dependencies and test artifacts.
docs/​ROADMAP.md Records browser/mobile observation support.
docs/​e2e.md Documents setup, scope, evidence, and reuse limits.
adapter/​test_playwright_live.py Checks changed-spec selection with Chromium.
adapter/​test_e2e.py Tests observation behavior and report validation.
adapter/​playwright_reporter.cjs Captures case identities, attempts, and runner status.
adapter/​e2e.py Implements full-run observation and baseline comparisons.
.github/​workflows/​ci.yml Adds live Chromium verification.
.agents/​skills/​diffprowl/​SKILL.md Adds browser/mobile observation guidance.
.agents/​skills/​diffprowl/​agents/​openai.yaml Updates the skill’s short description.

Review effort: Balanced

Comment thread adapter/test_playwright_live.py Resolved
@Desperado
Desperado marked this pull request as ready for review November 27, 2026 12:51
@Desperado
Desperado merged commit 8c1a653 into main Nov 27, 2026
1 check passed
@Desperado
Desperado deleted the feat/playwright-appium branch November 27, 2026 15:59
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.

2 participants