Giter VIP home page Giter VIP logo

githubgiststestautomation's Introduction

GitHub Gists Cypress Test Automation

These tests simulate typical user interactions with both the Gist UI application and its API.

How Can You Create a New Cypress Project?

  1. Install homebrew (if you prefer):

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

  1. Install node:

brew install node

  1. Download Visual Studio Code

  2. Create a new folder and Open it in Visual Studio Code

  3. Open the terminal

  4. Create package.json file:

npm -i init

  1. Install Cypress:

npm install cypress --save -dev

  1. Open Cypress:

npx cypress open or node_modules/.bin/cypress open

  • Click E2E Testing selection when the Welcome to Cypress! page opened.
  • Click Continue in Configuration files page.
  • Click Start E2E Testing in Chrome button in Choose a browser page.
  • Click Scaffold example specs selection in Create your first spec page.
  • Click Okay, I got it! button.

Setup and Run

  1. Open the terminal and change the current working directory to the location where you want to clone the repository.

  2. Clone this repo to your device.

  3. Install homebrew (if you prefer):

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

  1. Install node:

brew install node

  1. Install project dependencies:

npm install

  1. Create a file named "cypress.env.json" and fill in your GitHub credentials such as "cypress.example.env.json"

  2. Run all tests interactively:

npx cypress open

The packages

npm install --save-dev cypress-file-upload

npm install --save-dev @4tw/cypress-drag-drop

Helpful Extension

I am using SelectorsHub to find the UI elements.

githubgiststestautomation's People

Contributors

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