Code Monkey home page Code Monkey logo

codeceptjs-playwright-typescript-boilerplate's Introduction

CodeceptJS Playwright Typescript Boilerplate

About the Project

Modern E2E Test Automation suite that supports cross-browser testing, parallel execution, HAR routing and accessibility testing.

Tech stack

Features

  • ✅ Cross-browser testing (Chrome, Firefox, Safari)
  • ✅ Headless and headful modes
  • ✅ Parallel execution
  • ✅ Screenshot and video recording
  • ✅ Playwright tracing
  • ✅ HTTP Archive (HAR) files generation and replay
  • ✅ Accessibility testing with Axe
  • ✅ Reporting with Allure Report

Installation

Install npm dependencies:

npm install

Install Playwright

npx playwright install

Usage

Prepare the environment

Rename .env.default file into .env and update the values to match your environment.

# website url
BASE_URL=https://www.bear.plus
# run headless (no browser) or headful (with browser) mode
HEADLESS=false
# run accessibility tests
ACCESSIBILITY=false
# keep 1 for most monitors
# set to 2 for MacBook Pro screen to avoid flickering
DEVICE_SCALE_FACTOR=1
# Reports, traces, screenshots, videos output path
OUTPUT_PATH=output
# Generate HTTP Archive (HAR) file from test scenario
RECORD_HAR=false
# HAR file path
HAR_PATH=output/har/requests.har

Run test scenarios by browser

npm run test:chrome
npm run test:firefox
npm run test:safari

Run a specific scenario

npx codeceptjs run tests/bear-plus.spec.ts --steps

Pipeline

Pipeline

codeceptjs-playwright-typescript-boilerplate's People

Contributors

rkazakov avatar

Stargazers

 avatar  avatar  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.