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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

setup auto test structure and add tests for onboarding #750

Closed
wants to merge 8 commits into from

Conversation

lee-sqa
Copy link

@lee-sqa lee-sqa commented Jan 12, 2024

馃敇 PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Enhancement
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no API changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • Other... Please describe: Playwright E2E test for web extension.

馃摐 Background

This PR is to setup automation testing with Playwright with test scripts to test these onboarding features:

  • create and back up new wallet.
  • restore wallet with seed phrase.

Main test structure in the autotests folder

  • fixtures: base file to initiate extension connection and data file to store test data.
  • pages: POM approach to store page locators and custom functions according to each page module.
  • test: spec files to run actual tests.

Installing and running test

  1. Go to the autotests folder or cd autotests.
  2. Run npm install to install dependencies.
  3. Run npx playwright install to install browsers.
  4. Run npm test to run all the tests.
  5. Run npm test:report to generate test report.

@lee-sqa lee-sqa changed the title setup test structure and added create and backup wallet test setup auto test structure and add tests for onboarding Jan 12, 2024
Copy link

@DuskaT021 DuskaT021 self-requested a review January 23, 2024 08:27
@jordankzf jordankzf mentioned this pull request Feb 6, 2024
2 tasks
@teebszet teebszet closed this Jun 17, 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.

None yet

2 participants