Giter VIP home page Giter VIP logo

playwright-framework's Introduction

This project was bootstrapped with playwright.

Testing site used - UI Testing Playground

For fast run, fork the repo and run it from local. Otherwise, change the below

Key Value File
env.*.url http://uitestingplayground.com/ src/apps/ui-testing-playground/config.json
urlContains uitestingplayground src/apps/ui-testing-playground/data/home.data.json

โœจ Available Scripts

In the project directory, you can run:

Command Description
yarn && yarn playwright install to install dependencies (always run this first before running any other commands)
yarn test to run tests
yarn test:debug to run tests in debug mode
yarn report to serve default report
yarn allure to serve allure report

โ—Note: By default the tests are run in headless mode. Screenshots will not be captured in this mode as it causes problems during validation between headless and headed mode. For validating screenshots, change the below in src/apps/ui-testing-playground/playwright.config.js

Field Value
headless false
retries 0

During the first run, the screenshots will be baselined and no validations will be done during this run. Once the run is complete, change the retries back to the number of retries you need.

Starting second run, the screenshots will be compared with the baseline screenshot.

For implementation of this framework for a brand new application. Check here

playwright-framework's People

Contributors

eric-stanley avatar hanhpv 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.