GithubHelp home page GithubHelp logo

josiasvfigueredo1985 / twr-playwright-demo-mtc Goto Github PK

View Code? Open in Web Editor NEW

This project forked from raptatinha/twr-playwright-demo-mtc

0.0 0.0 0.0 21 KB

Playwright flow with and without pom and github actions

Home Page: https://testingwithrenata.com/

License: MIT License

TypeScript 100.00%

twr-playwright-demo-mtc's Introduction

Playwright demo for MTC

Hi ๐Ÿ‘‹๐Ÿฝ!

Tests at https://www.saucedemo.com/ using Playwright for the MTC 2023. With and without pom and github actions.

By Renata Andrade

If you find it useful, consider leaving a โญ๏ธ for this repo.

Happy Testing ๐ŸŽญ!

๐Ÿชœ Dependecies

  • Playwright v1.35.0
  • dotenv v16.1.4
  • Node v20.3.0
  • npm v9.6.7
  • VSCode 1.78.2 (Universal)

Pre requirements:

๐Ÿ’ก Fork and clone the project

  1. Copy the project URL https://github.com/raptatinha/twr-playwright-demo-mtc.git;
  2. Fork the project following the GitHub instructions - (use the parameter --clone=true);
  3. Access the forked project cd twr-playwright-demo-mtc

๐Ÿงฌ Setup and Install

  1. Set up the environment variables.

    1.1. Create the following file in the project root folder:

    • .env

    1.2. Copy the content of .env.example into the newly created file.
    1.3. Update the PASSWORD (you can check the password here: https://www.saucedemo.com/).

  2. On your terminal, type:

    2.1. npm i

๐Ÿš€ Run

All the commands are in the package.json.

  • Run tests without POM: npm run test-ui
  • Run tests without POM on chrome only: npm run test-ui-c
  • Run tests with POM: npm run test-ui-pom

๐Ÿ“Š Report

npx playwright show-report

๐ŸŒ€ Pipeline

Using GitHub Actions. Check playwright.yml


๐Ÿ’ก Share on LinkedIn something interesting you've learned! Don't forget to tag me Renata Andrade.

๐Ÿ’œ If you have questions, feel free to post them on github.

Happy Testing ๐ŸŽญ

twr-playwright-demo-mtc's People

Contributors

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