Giter VIP home page Giter VIP logo

cypress-simple-study's Introduction

SimpleStudy Web Portal Cypress Tests

Cypress documentation: (https://docs.cypress.io/guides/end-to-end-testing/writing-your-first-end-to-end-test)[https://docs.cypress.io/guides/end-to-end-testing/writing-your-first-end-to-end-test]

Getting Started

Follow these steps to get your testing environment up and running.

Prerequisites

  • Git
  • Node.js and npm (Node Package Manager)

1. Clone the Repository

First, clone the repository to your local machine:

# clone the repo
$ git clone https://github.com/SimplesStudy/cypress-webportal-tests
$ cd cypress-webportal-tests

2. Configure Environment Variables

Copy the environment template configuration file:

$ cp cypress.env.example.json cypress.env.json

User Credentials: Ensure the supportEmail and supportPassword variables are set to your support email and password.

supportEmail
supportPassword

3. Install Dependencies

Install the necessary dependencies for the project:

$ npm install

Running Tests

There are two ways to run your Cypress tests: using the Cypress UI or running them directly via the command line.

Open Cypress Ui Test Runner

# from app's directory run following command
$ npx cypress open

This opens the Cypress interface, where you can run individual tests interactively.

Running Tests via CLI

To run tests without the Cypress Test Runner and record the results, use this command:

# from app's directory run following command
$ npx cypress run --record --key aecfab60-1961-458c-9155-4397d5bf9de8

cypress-simple-study's People

Contributors

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