Skip to content

test(e2e): add Playwright smoke tests for public pages (#41) - #203

Open
Agbasimere wants to merge 1 commit into
StellarTickets:mainfrom
Agbasimere:test/41-playwright-smoke-tests
Open

Agbasimere wants to merge 1 commit into
StellarTickets:mainfrom
Agbasimere:test/41-playwright-smoke-tests

Conversation

@Agbasimere

Copy link
Copy Markdown

Summary

Closes #41

Adds Playwright browser-level smoke tests for public pages and integrates them into the CI pipeline:

  • / renders the hero section (heading and CTA buttons) and FAQ section (question click expands answer)
  • Navbar collapses into mobile menu at 390px viewport width, hiding desktop links and expanding the mobile menu on click
  • /login and /register submit mocked API failures (POST /auth/login 401 and POST /auth/register 400) and display error messages in FormError
  • Unauthenticated visit to /dashboard redirects to /login
  • Integrated Playwright Chromium install and npm run test:e2e into .github/workflows/ci.yml after npm run build
  • Resolved pre-existing syntax errors in src/app/my-tickets/page.tsx, type error in src/lib/api-timeout.test.ts, and removed stray src/pages/EventFix.tsx so build and checks pass cleanly

Testing

  • npx eslint . passes
  • npx tsc --noEmit passes
  • npm run build succeeds
  • Manually tested the affected page(s) in a browser
  • npm run test:e2e passes
  • npm test passes

@drips-wave

drips-wave Bot commented Sep 26, 2026

Copy link
Copy Markdown

@Agbasimere Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@netlify

netlify Bot commented Sep 26, 2026 •

Copy link
Copy Markdown

❌ Deploy Preview for stellartickets failed.

Name Link
🔨 Latest commit 87b98cd
🔍 Latest deploy log https://app.netlify.com/projects/stellartickets/deploys/6ab825fe520536000832173c

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.

Add Playwright smoke tests for the public pages

1 participant