fix(e2e): start Basic Auth tests from the Vite build output
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 78/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Quiet
- Tech stack
- playwright, typescript, vite
- Domain
- build-system, testing
Research direction
Start in e2e/react-start/basic-auth by inspecting the Basic Auth Playwright configuration and the package's start and test:e2e scripts. Reproduce the failure with the provided pnpm commands, then verify that the server starts from dist/server/server.js and that the Playwright browser suite actually runs successfully.
Written by the indexing model from the issue text.
Description
The Basic Auth Playwright config builds the app with vite build, which writes dist/server/server.js, then starts the app through pnpm start. The package's start script still runs node .output/server/index.mjs, which does not exist after the Vite build.
The package test:e2e script also begins with exit 0;, so Nx reports success without running the browser suite.
Reproduction
cd e2e/react-start/basic-auth
pnpm run prisma-generate
pnpm exec playwright test tests/app.spec.ts --project=chromium --grep "Posts redirects to login when not authenticated"
The Vite build finishes, then Playwright fails to start its web server because .output/server/index.mjs is missing.
Expected behavior
The Basic Auth E2E suite should start the server produced by its Vite build and execute the Playwright tests.
Related Work: #3850, #3949
- Dominant language
- TypeScript
- Stars
- 15.1k
- Forks
- 1.9k
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 136
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from TanStack/router
-
information needed
Difficulty 1/5 Under an hour Newbie friendliness 90/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
lazyRouteComponent reload guard key collides on Safari, capping stale-deploy recovery at one per tab Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
information needed
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Similar issues
-
calcite-components needs triage refactor
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Esri/calcite-design-system#15203 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 91/100
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficulty 1/5 Under an hour Newbie friendliness 95/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100