Giter Site home page Giter Site logo

ronlouw / cypress-example-phonecat Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cypress-io/cypress-example-phonecat

0.0 0.0 0.0 99.79 MB

The official angular phonecat example application with tests written in Cypress

Home Page: http://docs.angularjs.org/tutorial

License: MIT License

CSS 6.79% JavaScript 62.48% HTML 15.35% Shell 14.34% Batchfile 1.03%

cypress-example-phonecat's Introduction

Phonecat Build status Build status renovate-app badge

This repo contains a forked version of the original Angular Phonecat example app with the e2e tests written in Cypress.

The Cypress tests match up 1:1 so they can be directly compared to the original e2e protractor tests.

Each test covers the same functionality found in the protractor tests, and additionally new tests have been added to showcase functionality that exists only in Cypress.

The tests are heavily commented to ease you into the Cypress API.

Read Angular + Cypress = Love and An Alternative to Protractor for Angular Projects

Help + Testing

The steps below will take you all the way through Cypress. It is assumed you have nothing installed except for node + git.

If you get stuck, here is more help:

1. Install Cypress

Follow these instructions to install Cypress.

2. Fork this repo

If you want to experiment with running this project in Continuous Integration, you'll need to fork it first.

After forking this project in Github, run these commands:

## clone this repo to a local directory
git clone https://github.com/<your-username>/cypress-example-phonecat.git

## cd into the cloned repo
cd cypress-example-phonecat

## install the node_modules
npm install

## start the local webserver
npm start

The npm start script will spawn a webserver on port 8000 which hosts the Phonecat app.

You can verify this by opening your browser and navigating to: http://localhost:8000

You should see the Phonecat app up and running. We are now ready to run Cypress tests.

3. Add the project to Cypress

Follow these instructions to add the project to Cypress.

4. Run in Continuous Integration

Follow these instructions to run the tests in CI.

cypress-example-phonecat's People

Contributors

petebacondarwin avatar igorminar avatar jennifer-shehane avatar bahmutov avatar greenkeeper[bot] avatar gkalpak avatar jeffbcross avatar ngdashboard avatar vojtajina avatar btford avatar renovate-bot avatar brian-mann avatar juliemr avatar michaelneale avatar tbosch avatar mhevery avatar renovate[bot] avatar elnur avatar shaohua avatar mansehr avatar houfeng0923 avatar ermakovich avatar fuentesjr avatar philspitler avatar segeda avatar evoluteur avatar nrkirby avatar marcenuc avatar mbriot avatar lfender6445 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.