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

Setup Cloud e2e test framework and write first tests #6244

Draft
wants to merge 24 commits into
base: main
Choose a base branch
from

Conversation

ericpgreen2
Copy link
Contributor

@ericpgreen2 ericpgreen2 commented Dec 10, 2024

This PR advances our web-admin Playwright project.

The following "global setup" is performed before tests are run:

  • Runs rill devtool start e2e
  • Pulls our rill-examples GitHub repo (to deploy and test against)
  • Authenticates the [email protected] user
  • Deploys the OpenRTB example project

The following test fixtures are added:

  • anonUser: removes the [email protected] user cookies
  • cli: logs-in to the Rill CLI
  • organization: creates an org named "e2e"
  • project: deploys the OpenRTB example project

The PR also includes some first tests:

  • Basic navigation to the homepage by unauthenticated & authenticated users
  • Org creation
  • Project deployment
  • Navigation to an Explore dashboard & assertion of data

When developing tests, here's the recommended way to set up your environment:

// Terminal 1
rill devtool start e2e --except ui --reset

// Terminal 2
npm run preview -w web-admin // or npm run dev -w web-admin

// Terminal 3
cd web-admin
E2E_SKIP_GLOBAL_SETUP=true npx playwright test -g "Your test"

TODO

@ericpgreen2 ericpgreen2 self-assigned this Dec 10, 2024
@ericpgreen2 ericpgreen2 changed the title e2e: global setup and teardown Cloud e2e: global setup and teardown Dec 11, 2024
@ericpgreen2 ericpgreen2 changed the title Cloud e2e: global setup and teardown Setup Cloud e2e test framework and write first tests Dec 16, 2024
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.

1 participant