Switchboard end-to-end tests
November 2, 2022 ยท View on GitHub
Overview
This project contains E2E tests that are testing entire IAM stack through Switchboard-dapp. Project is running on top of Puppeteer, Jest, TypeScript and library dAppeteer.
Project is running automatically on GHA after merge to develop branch in Switchboard-dapp. Tests are run on Switchboard
Installing Dependencies
Use npm >= 7 to install dependencies.
npm install
Tests
Before you run tests, you need to provide seed and password for metamask in .env file.
Account should contain organization. Test about organization details might fail as different account will have different
organization.
To run tests, call one of below commands
Run
npm run test:login
To test login (with metamask) to Switchboard-dapp or
npm run test:without-login
To run tests for checking Switchboard-dapp functionality on dev environment.
Tests are split, because it made them more stable.
Note: tests are click sensitive and will not execute if the Testing Chromium browser goes out of focus