Repository navigation
Document running the Playwright tests locally - #2939
Open
hanapotski wants to merge 1 commit into
Open
hanapotski wants to merge 1 commit into
hanapotski wants to merge 1 commit into
Conversation
client/README.md had no instructions for the Playwright E2E suite, and its leftover Create React App text described `npm test` as Jest watch mode, though it actually opens Playwright's UI mode. Add a section covering one-time browser setup, starting the dev server first (Playwright's webServer is disabled), common run variations, how to reproduce CI's vite preview setup, and how new specs should use the shared test fixture. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
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 changed
Adds a Running the Playwright tests locally section to
client/README.md, and fixes thenpm testentry.The new section covers:
tests/helpers/mocks.ts), and the shared fixture intests/helpers/test.tsblocks Mapbox tiles and analytics and stubs geocoding.npm ciandnpx playwright install.npm startfirst, because thewebServerblock inplaywright.config.tsis commented out, then runnpx playwright testandnpx playwright show-report.--project=chromium, a single spec file,-g,--headed,--ui,--debug.vite build+vite previewsetup CI uses, and opening the CIplaywright-reportartifact.testfrom./helpers/test.Why
Nothing in the repo explained how to run the E2E suite locally. The client README's
npm testentry was leftover Create React App text that described Jest watch mode, but the script actually runsplaywright test --ui --headed. I also added a short entry fornpm run test:unit.For reviewers
client/README.mdis still Create React App boilerplate. I left it as is to keep this PR focused.-gboth work, andtests/app.spec.tspasses againstvite build+vite preview. I didn't run Firefox or WebKit locally.🤖 Generated with Claude Code
🤖 Written by Claude on behalf of @hanapotski