Skip to content

Conversation

IMB11
Copy link
Member

@IMB11 IMB11 commented Aug 19, 2025

This pull request introduces Playwright end-to-end testing to apps/frontend.

  • Run pnpm test within apps/frontend to run the tests. A report should be generated.
  • An example switch-theme.spec.ts test is present, which tests the theme switcher in the settings page.

@IMB11 IMB11 added frontend DevEx Improvements to developer experience labels Aug 19, 2025
],

webServer: {
command: 'pnpm run dev',
Copy link
Member Author

@IMB11 IMB11 Aug 19, 2025

Choose a reason for hiding this comment

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

Ideally we want to use the Cloudflare deployment associated with the PR for CI, rather than a dev runner, since nuxt has a tendency to hot reload quite often during warmup which might affect tests.

workers: process.env.CI ? 1 : undefined,
reporter: 'html',
use: {
baseURL: 'http://localhost:3000',
Copy link
Member Author

@IMB11 IMB11 Aug 19, 2025

Choose a reason for hiding this comment

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

See previous comment.

@IMB11
Copy link
Member Author

IMB11 commented Aug 19, 2025

If we want e2e testing for the app frontend, we'd need to set up Webdriver and use Playwright's Webdriver Support via Selenium Grid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DevEx Improvements to developer experience frontend
Development

Successfully merging this pull request may close these issues.

1 participant