Coder Social home page Coder Social logo

web3auth / web3auth-e2e-tests Goto Github PK

View Code? Open in Web Editor NEW
5.0 6.0 0.0 44.56 MB

End-to-end testing of Torus products.

Home Page: https://tor.us

License: MIT License

TypeScript 98.05% Dockerfile 0.87% Shell 0.81% JavaScript 0.27%
torus e2e-tests

web3auth-e2e-tests's Introduction

web3auth-e2e-tests

End-to-end testing for Torus products. Torus Web3Auth

Built With

Getting Started

Prerequisites

The following software are required:

  • nodejs : Download and Install Node JS from
    https://nodejs.org/en/download/

Installation

  1. Clone the repo using below URL
https://github.com/Web3Auth/web3auth-e2e-tests.git
  1. Navigate to folder and install npm packages using:
npm install
  1. For first time installation run below command to download required browsers
npm i -D @playwright/test
# install supported browsers
npx playwright install

Development

Scripts

Script Description
test --config=<test-dir>/index.config.ts --project=<chromium|firefox|webkit> Run tests in headless mode (no GUI, for CI) with feature specific config
test --config=<test-dir>/index.config.ts --project=<chromium|firefox|webkit> --headed Run tests in headed mode (with GUI, for development)
trace <path-to-trace.zip> Trace test results (for development)
test --config=index.config.ts --project=<chromium|firefox|webkit> Run tests in headless mode (no GUI, for CI) using global config
test --grep=@smoke --config=index.config.ts --project=<chromium|firefox|webkit> Run tests with tags @smoke using global config

Add a test to an existing test suite

Add a new file <name>.test.ts to the test suite's directory:

test.only("focus this test", async ({ page }) => {
  // Run only this test during development
});
test.skip("skip this test", async ({ page }) => {
  // This test is not run
});
test.serial("run tests in serial mode", async ({ page }) => {
  // This runs the below test in a serial mode
  test("scenario1", async ({ page }) => {});
  test("scenario2", async ({ page }) => {});
});

When you've done writing the test, change test.only to test to turn off focus mode.

Create a new test suite

Duplicate openloginV3/account-page/ rename and update the tests.

Status

OpenLogin

OpenLoginV4 Test Run OpenLoginV3 Test Run OpenLogin - Lighthouse

To view smoke run results, join discord.

Select elements

Prefer text or accessibility selectors:

await page.click("text=Welcome onboard");
await page.click('button:has-text("Get Started")');
await page.click('[aria-label="Continue with Facebook"]');
await page.click("xpath=.//div[text()='Login']");

See full list of selectors.

Framework Execution Pattern

alt text

web3auth-e2e-tests's People

Contributors

1swaraj avatar bboystatix avatar chaitanyapotti avatar dependabot[bot] avatar levinhgithub avatar metallicalfa2 avatar pandey-shubh avatar phuctm97 avatar poojachopra avatar tainguyentt avatar tanguyenvn avatar vinayaktorus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

web3auth-e2e-tests's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.