Giter VIP home page Giter VIP logo

cypresss's Introduction

How to run tests

npm i
->
npm run cypress:open
or
npm run test

In Docker

  • to download image
docker-compose build
  • to run the tests in docker
docker-compose run cypress

or

docker-compose up
  • to print all existing docker images
docker images
  • clean all existing docker images
docker system prune --volumes -a
  • go inside docker
docker run --rm -it your_image_here bash

Improvements to store and randomise customer data

  • Create class where we to store all randomise data
import generateRandoms from '../utils/GetRandomString';
   
   const newCustomer = {
       firstName: `customer-first-${generateRandoms()}`,
       bithYear: `customer-bithYear-${generateRandoms()}`,
       lastName: `customer-last-${generateRandoms()}`,
       email: `customerAutoTest${generateRandoms()}@alefeducation.com`,
       password: '12345',
       phoneNumber: `+49${generateRandoms()}`
   };
   
   export default newCustomer;
  • that use it into one of Page object class
   import ContactInformation from "./ContactInformation";
   import credentials from '../../fixtures/newInstructor';
   
   export default class PersonalInformation {
   
       fillInPersonalInfo() {
           this.enterFirstName(credentials.firstName);
           this.enterLastName(credentials.lastName);
           this.selectBirthYear('1981');
           return new ContactInformation();
       }
   }

Next step store date into json

...

Testing task

Build status Description YML
CircleCI Linux (CircleCI) circle.yml

cypresss's People

Contributors

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