Giter Site home page Giter Site logo

cezarvaz / swag-labs-ui-tests Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 173 KB

This repository contains the code for an automated testing suite using Cypress for the application hosted in https://www.saucedemo.com/.

Home Page: https://www.saucedemo.com/

Shell 2.00% JavaScript 98.00%
cypress cypress-io

swag-labs-ui-tests's Introduction

swag-labs-ui-tests

This repository contains the code for an automated testing suite using Cypress for the application hosted in https://www.saucedemo.com/. This README will guide you through the project setup and how to use the provided NPM scripts.

Prerequisites

Before you get started, make sure you have the following software installed on your machine:

Getting Started

  1. Clone this repository to your local machine:

    git clone https://github.com/cezarvaz/swag-labs-ui-tests.git
    cd swag-labs-ui-tests
  2. Install project dependencies:

    npm install

Available Scripts

In this project, you can use the following NPM scripts to perform various tasks:

1. Linting

You can use ESLint to check and automatically fix coding style issues in your code.

npm run lint

2. Preparing Husky

Husky is a tool that enables Git hooks. You need to install it using the following command:

npm run prepare

This will set up Git hooks to run actions like linting and testing before committing or pushing code.

3. Open Cypress Test Runner

To interactively run your Cypress tests in the Cypress Test Runner, use the following command:

npm run open

This will open the Cypress Test Runner, where you can select and run individual test cases.

4. Running Tests

To run your Cypress tests headlessly in the Chrome browser, use the following command:

npm test

This script will execute your test suite in Chrome without any graphical interface and report the results in the terminal.

swag-labs-ui-tests's People

Contributors

cezarvaz avatar

Watchers

 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.