Git Product home page Git Product logo

dfe-digital.schools-experience-tests's Introduction

DfE-Cypress-Automation-Framework

Front End automation collection using Cypress.io. This will be used for live journey checks and a regression pack for when deploying to staging.

Concepts Included

  • Common web page interaction methods
  • Common api interaction methods

Pre-Requisites

  • To run locally ensure you have NPM installed.

Windows + Mac:

  • Pull down the repo
  • Run NPM install

Running Cypress.io locally

Before running cypress either through the GUI or at cmd line, ensure you are pointing at the correct environment. The base URL is set in the cypress.json file. Please ensure it is left pointing at staging before committing any changes.

Running through the GUI

npm run cy:open

This will open up the cypress editor, click on the .js test file to run the test in a browser. The browser can remain open so that as soon as you update the tests in an editor, upon saving, the tests will re-run automatically.

Running from the CLI

npm run cy:run

This will run the tests through the cmd line and generate output in the console accordingly.

Reporting

These tests will be ran on a scheduled job and log out the results to the cypress dashboard here: https://dashboard.cypress.io

This dashboard requires login credentials from your github account, but to view the DfE Organisation inside the dashboard you would need to be given access. Speak to Mak Choudhury to be added.

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.