Skip to content

This repository contains a comprehensive test plan for evaluating the "Swap" feature on the Mento platform. The plan focuses on key functionalities, edge cases, and security considerations, ensuring the feature operates correctly and securely under various conditions, and enhances the overall user experience.

Notifications You must be signed in to change notification settings

iamatharva/synpress-playwright-automation

Repository files navigation

Intro

The "Swap" feature in the Mento application is a critical component that allows users to exchange cryptocurrencies directly within the platform. This feature's reliability and security are essential for maintaining user trust and ensuring the smooth operation of the Mento protocol.

Enviorment Step and Pre requisites

Please follow the guide to setup the EnviormentSetup.md

Test Plan:

The detailed test plan could be accessed here TestPlan.md

🧑‍💻 Usage

  1. Install dependencies with pnpm version 9.7.1
nvm use
pnpm install
  1. Start MetaMask Test Dapp in a seprate Terminal [If runing locally]:
pnpm run serve:test-dapp
  1. Install Playwright: [If not already installed]
pnpm exec playwright install
  1. Either export the variables to your local ~/.zshrc or locally add it to the .env file:
export SEED_PHRASE=<Your seed phrase>
export WALLET_PASSWORD=<Your wallet password>
  1. Build cache with our CLI by using a script:
# You can either build cache in a headed mode:
pnpm run build:cache

# Or in a headless mode:
pnpm run build:cache:headless
  1. Run Playwright tests as you would normally do:
# Use one of our scripts:
pnpm run test:playwright:headful
pnpm run test:playwright:headless

### ⚠️ Important note ⚠️

Currently, tests are triggered in a headed mode by default. Add `HEADLESS=true` to run them in a headless mode.

About

This repository contains a comprehensive test plan for evaluating the "Swap" feature on the Mento platform. The plan focuses on key functionalities, edge cases, and security considerations, ensuring the feature operates correctly and securely under various conditions, and enhances the overall user experience.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published