Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add boilerplate for playwright e2e testing #2519

Merged
merged 16 commits into from
Jan 25, 2025

Conversation

CollinBeczak
Copy link
Collaborator

@CollinBeczak CollinBeczak commented Jan 14, 2025

Add Boilerplate for Playwright E2E Testing

This PR introduces the initial setup for Playwright end-to-end (E2E) testing.

Key Details

  • Environment Configuration:

    • Requires .env.local to be set up with the following variables:
      • REACT_APP_BASE_URL – The URL of the app to test.
      • REACT_APP_USERNAME and REACT_APP_PASSWORD – Credentials for automated login.
  • New Scripts in package.json:

    • test:e2e:start: Builds and serves the app for testing.
    • test:e2e: Runs Playwright tests in headless mode.
    • test:e2e:ui: Opens the Playwright test runner UI.
    • test:e2e:debug: Runs tests in debug mode.

Notes

  • Tests rely on the local environment configuration similar to how frontend development is setup.
  • Future improvements can expand test coverage and integrate tests into CI workflows.
  • The login credentials need to be valid for the environment that the tests are being ran in.

@CollinBeczak CollinBeczak marked this pull request as ready for review January 14, 2025 20:59
@CollinBeczak CollinBeczak requested a review from jake-low January 23, 2025 20:00
@CollinBeczak CollinBeczak force-pushed the collin/PlaywrightE2ETesting branch from 579baed to fa0ed2c Compare January 23, 2025 20:06
@CollinBeczak CollinBeczak merged commit 7332f79 into main Jan 25, 2025
5 of 6 checks passed
@CollinBeczak CollinBeczak deleted the collin/PlaywrightE2ETesting branch January 25, 2025 00:19
@CollinBeczak CollinBeczak mentioned this pull request Feb 4, 2025
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.

2 participants