-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(APP-2680): Enhance Automated E2E Testing (#1393)
- Loading branch information
1 parent
aa2187a
commit 60cccf7
Showing
12 changed files
with
121 additions
and
95 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# Getting Started with E2E Testing Using Playwright and Synpress | ||
|
||
This guide provides a quick start for running end-to-end (E2E) tests using Playwright and Synpress. | ||
|
||
## Prerequisites | ||
|
||
1. **Node.js**: [Download Node.js](https://nodejs.org/). | ||
2. **Yarn or npm**: Choose your preferred package manager. | ||
|
||
## Project Setup | ||
|
||
1. **Clone the Repository**: | ||
git clone <repository-url> | ||
cd <project-directory> | ||
|
||
2. **Install Dependencies**: | ||
yarn install | ||
|
||
# or | ||
|
||
npm install | ||
|
||
3. **Set Up Environment Variables**: | ||
Create a `.env` file in the root directory using `.env.example` as a template if available. Include the following variables with your values: | ||
METAMASK_SEED_PHRASE=<value> | ||
METAMASK_PASSWORD=<value> | ||
|
||
4. **Install Playwright with dependencies**: | ||
yarn playwright install --with-deps | ||
|
||
5. **Build Synpress cache** (needed for Metamask, see `e2e/basic.setup.ts` for details): | ||
npx synpress ./e2e/ | ||
|
||
## Running E2E Tests | ||
|
||
- **Ensure Metamask Wallet has Sufficient Funds**: Before running tests, make sure your Metamask wallet is funded. | ||
|
||
- **Running All or Specific Tests**: | ||
- From Playwright UI: | ||
yarn e2e | ||
- On a specific platform (e.g., Firefox): | ||
yarn playwright test --project firefox | ||
- See `playwright.config.js` for more options. | ||
|
||
## Troubleshooting | ||
|
||
- **Common Issues**: Review error messages for details. | ||
- **Debugging**: Utilize Playwright's debugging tools. | ||
|
||
For further assistance, consult the official documentation of [Playwright](https://playwright.dev/docs/intro) and [Synpress](https://synpress.io/). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters