Skip to content

Compare with stock Playwright ​

This is a current synthesis of the dialog/form author assessment for released v0.1.0. External validation is pending. No independent preference, endorsement or measured time savings have been established.

Equivalent native journeys ​

The released package and stock examples run the same synthetic variants and shared native keyboard actions, locators, named steps and assertions. The package adds journey.start({ root }) after setup. Stock uses native reporters/traces plus an application-owned failure hook attaching current focus, screenshot, scoped ARIA and timing. The stock configuration does not import package instrumentation or its reporter.

AreaPackageStock Playwright baseline
DependenciesAdds this package and its exact Playwright peerPlaywright alone
Journey authoringNative actions/assertions and explicit policiesThe same native recipe
IntegrationFixture import/composition, reporter, one start per selected testNative test/reporters and capture hook
Focus reviewOrdered bounded key/focus descriptorsCurrent-focus attachment plus native action/trace evidence
Failure artifactsConfigurable captures, timing/outcomes, native traces when availableNative captures/trace and custom timing attachments
Entry pointPortable Markdown bundle beside native reportingNative HTML/JSON, attachments and trace
MaintenancePackage integration and its compatibility/data limitationsApplication-owned attachment helper and configuration

The package combines an observed focus sequence and native diagnostics in portable text. Stock already answers the review questions with its attachment hook and reporting. The difference is presentation and ownership, not a claim that native Playwright lacks debugging or accessibility-related assertions.

Reproduce both paths ​

Use the released repository examples, separately from the fresh npm quickstart:

sh
git clone --branch v0.1.0 https://github.com/Light2288/a11y-journey-evidence.git journey-comparison
cd journey-comparison
npm ci
npx playwright install chromium
npm run demo:package
npm run demo:stock

Each runs correct and deliberately broken dialog/form cases. Expected failures can yield exit 0. Inspect the actual failed named assertion. Filter either command with -- --grep escaping-focus or the relevant form variant.

RegressionNative failed expectationUseful evidence in either path
Dialog escaping focusContinue should regain focus at the forward boundaryPackage ends at button#after; stock current-focus identifies after
Dialog restorationOpener should regain focus after EscapePackage records body focus; stock current-focus identifies body
Form associationName should describe its visible errorNative description is empty; Name has invalid state and no error reference
Form error focusFirst invalid field should receive focusFocus remains on Submit

Package bundles are printed under a11y-evidence/<run-id>/report.md. Native stock output is under .artifacts/stock-html/ and .artifacts/stock-native.json; open with npx playwright show-report .artifacts/stock-html. Both retain traces. The site walkthroughs use the separately verified installed npm consumer and disclose their provenance.

Findings and limits ​

The package supplies a text entry point with ordered observations and less application-owned capture code. It also adds exact-version integration, maintenance and data-handling obligations. Stock's small capture hook and native trace remain useful. Long reports and repeated diagnostics impose review costs; no timing experiment was conducted.

The historical Batch 1 assessment and Batch 2 assessment retain their original development-stage metadata, line counts and local artifact references. They are historical engineering records, not current installation instructions; earlier private/batch version wording does not describe the published npm 0.1.0 package.

Experimental v0.1.0 · External validation pending