Giter Site home page Giter Site logo

wlsf82 / mtc-2023-cypress-demo Goto Github PK

View Code? Open in Web Editor NEW
9.0 2.0 3.0 224 KB

Sample project for a Cypress vs. Playwright battle at MTC 2023.

License: MIT License

JavaScript 100.00%
cypress-testing modern-web-testing mtc-2023 saucedemo cypress-vs-playwright-battle minas-testing-conference swag-labs ecmascript es6 javascript

mtc-2023-cypress-demo's Introduction

mtc-2023-cypress-demo

CI mtc-2023-cypress-demo

Sample project for a Cypress vs. Playwright battle at MTC 2023.


Pre-requirements

To run this project, you will need:

  • git (I've used version 2.34.1 while writing this doc)
  • Node.js (I've used version v18.13.0 while writing this doc)
  • npm (I've used version 8.19.3 while writing this doc)

Note: When installing Node.js, npm is automatically installed too.

Installation

To install the dev dependencies, run npm install (or npm i for short.)

Configuring the environment variables

Before running the tests, some environment variables need to be set up.

Make a copy of the cypress.env.example.json file as cypress.env.json, and set the appropriate values for all the variables.

Note: cypress.env.json file is not tracked by git.

Running the tests

In this project, you can run tests in interactive and headless modes.

Headless mode

Run npm test (or npm t for short) to run all tests in headless mode.

Interactive mode

Run npm run cy:open to open the Cypress App to run tests in interactive mode.


Made with ❤️ by Walmyr.

mtc-2023-cypress-demo's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.