Giter Site home page Giter Site logo

archiveorg-e2e-playwright's Introduction

Build Status

End to end tests for Archive.org using Playwright

(Optional) BrowserStack Local Setup

  • login to BrowserStack and retrieve the account username and access key, see documentation here

Running tests locally

  • install dependencies:

    npm i

  • install Playwright browser libs:

    npx playwright install

  • run all the tests in headless mode and generate 1 whole test report:

    npm run test

  • run all the tests in headless mode by each category and generate test report by category:

    ./run-tests.sh

  • run all the tests in headed mode (this will load multiple browsers):

    npm run test:headed

Running individual tests by category (headless mode)

  • run books tests: npm run test:books
  • run collection tests: npm run test:collection
  • run details tests: npm run test:details
  • run home tests: npm run test:home
  • run login tests: npm run test:login
  • run music tests: npm run test:music
  • run search tests: npm run test:search

Running individual tests by category (headed mode)

  • run books tests: npm run test:books:headed
  • run collection tests: npm run test:collection:headed
  • run details tests: npm run test:details:headed
  • run home tests: npm run test:home:headed
  • run login tests: npm run test:login:headed
  • run music tests: npm run test:music:headed
  • run search tests: npm run test:search:headed

Running tests using VSCode Playwright plugin

Running specific test spec by file:

  • run command format: npx playwright test <test-file-path>
  • sample: npx playwright test tests/search/search-layout.spec.ts

Running specific test spec by file in debug mode:

  • run command format: npx playwright test <test-file-path> --debug
  • sample: npx playwright test tests/search/search-layout.spec.ts --debug

View tests execution result

  • run: npm run show:report

Reference guide for writing tests

archiveorg-e2e-playwright's People

Contributors

dualcnhq avatar iisa avatar

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.