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

Additions to run tests locally #4456

Merged
merged 1 commit into from
Mar 1, 2024
Merged

Conversation

rafeerahman
Copy link
Contributor

Added a local url to enable running the tests locally. Also made some additions to the e2e readme docs.

Checklist (Definition of Done)

  • Product Owner accepted the User Story (demo of functionality completed) or waived the privilege.
  • Customer Experience team has seen or waived a demo of functionality.
  • All acceptance criteria are met.
  • Jira ticket has been updated (if needed) to match changes made during the development process.
  • I've added or updated relevant docs in the docs/ directory
  • Jira ticket has been updated (if needed) with suggestions for QA when this PR is deployed to stage.
  • All UI revisions follow the coding standards, and use Protocol tokens where applicable (see /frontend/src/styles/tokens.scss).
  • Commits in this PR are minimal and have descriptive commit messages.
  • l10n changes have been submitted to the l10n repository, if any.

@rafeerahman rafeerahman requested a review from jwhitlock March 1, 2024 16:16
@@ -3,13 +3,15 @@ import { APIRequestContext, Page, request } from '@playwright/test';
export const ENV_DOMAINS = {
Copy link
Member

Choose a reason for hiding this comment

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

quibble (non-blocking): change this from ENV_DOMAINS to ENV_EMAIL_DOMAINS.

Copy link
Member

@jwhitlock jwhitlock left a comment

Choose a reason for hiding this comment

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

Thanks @rafeerahman, the command works for me!

@@ -44,4 +44,8 @@ E2E_TEST_ACCOUNT_PASSWORD=<arbitrary password>
npm run test:e2e
```

By default, `npm run test:e2e` will run the tests on https://stage.fxprivaterelay.nonprod.cloudops.mozgcp.net/.

You can also run tests locally, on our dev server (https://dev.fxprivaterelay.nonprod.cloudops.mozgcp.net/), and in production (https://relay.firefox.com/). You can find the commands [here](https://github.com/mozilla/fx-private-relay/blob/main/package.json#L26-L31). To view the tests live in the browser, you can add `--headed` to the end of the command in the script.
Copy link
Member

Choose a reason for hiding this comment

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

I've been using --ui, looks like --headed is slightly different in a way. I think anyone doing debugging needs to use playwright directly rather than npm run dev:local. But, now they are a click away from some sample commands, 👍.

@rafeerahman rafeerahman force-pushed the e2e-local-instructions-readme branch from 7798765 to 771d66a Compare March 1, 2024 20:43
@rafeerahman rafeerahman added this pull request to the merge queue Mar 1, 2024
Merged via the queue into main with commit faa258f Mar 1, 2024
27 checks passed
@rafeerahman rafeerahman deleted the e2e-local-instructions-readme branch March 1, 2024 21:05
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.

3 participants