This is an example app used to showcase Cypress.io testing.
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.buildkite add comment explaining install force Aug 16, 2018
.vscode add command to use dynamic port before running tests (#150) Nov 7, 2018
app point at jsonplaceholder.cypress.io, close #112 (#137) Oct 10, 2018
basic back to linux containers on Azure CI Nov 20, 2018
cypress add start-server-and-test for simpler local work, Cypress.spec example ( Oct 17, 2018
scripts add command to use dynamic port before running tests (#150) Nov 7, 2018
.dockerignore Use codeship pro 107 (#119) Sep 14, 2018
.eslintrc remove eslints indentation of chained cy commands Nov 30, 2017
.gitignore remove unusual use of whitelist callback + assertion (#87) Jun 29, 2018
.gitlab-ci.yml use env variable over hardcoded path (#140) Oct 17, 2018
.node-version Update to Cypress 3.0 (#69) Jun 6, 2018
.npmrc Type check specs 71 (#82) Jun 8, 2018
.release.json created .release.json Mar 30, 2016
.travis.yml Add basic travis CI example (#118) Sep 13, 2018
CONTRIBUTING.md Add clearer instructions on what to do after committing changes to re… Jul 23, 2018
Dockerfile Use codeship pro 107 (#119) Sep 14, 2018
Jenkinsfile A few small fixes (#114) Sep 12, 2018
README.md add Heroku CI example πŸŽ‰ 142 (#143) Oct 25, 2018
app.json add command to use dynamic port before running tests (#150) Nov 7, 2018
appveyor.yml chore: example empty pull request from forked repo (#92) Jul 11, 2018
circle.yml fix circle orb version Nov 20, 2018
codeship-services.yml Use codeship pro 107 (#119) Sep 14, 2018
codeship-steps.yml Use codeship pro 107 (#119) Sep 14, 2018
cypress.json set project id in cypress.json Oct 20, 2017
package-lock.json chore: use Cypress 3.1.1 (#153) Nov 9, 2018
package.json chore: use Cypress 3.1.1 (#153) Nov 9, 2018
renovate.json add renovate app badge, config file, close #72 (#73) Jun 5, 2018
shippable.yml add comments to shippable CI file Sep 27, 2018
tsconfig.json Type check specs 71 (#82) Jun 8, 2018

README.md

Kitchen Sink renovate-app badge

kitchensink

This is an example app used to showcase Cypress.io testing. The application uses every API command in Cypress for demonstration purposes. Additionally this example app is configured to run tests in various CI platforms. The tests are also heavily commented. For a full reference of our documentation, go to docs.cypress.io.

To see the kitchen sink application, visit example.cypress.io.

CI status

CI Build status basic config file full parallel config
AppVeyor AppVeyor CI appveyor.yml
Azure CI Build Status basic/azure-ci.yml
Buildkite Buildkite CI .buildkite/pipeline.yml
Circle Circle CI basic/circle.yml circle.yml
Codeship Pro Codeship Pro CI basic/codeship-pro
GitLab GitLab CI basic/.gitlab-ci.yml .gitlab-ci.yml
Heroku CI basic/app.json
Jenkins basic/Jenkinsfile Jenkinsfile
Semaphore Semaphore CI
Shippable Shippable CI shippable.yml
Travis Travis CI basic/.travis.yml .travis.yml

You can find all CI results recorded on the Cypress Dashboard

Help + Testing

If you get stuck, here is more help:

1. Fork this repo

If you want to experiment with running this project in Continous 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-kitchensink.git

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

## install the node_modules
npm install

## start the local webserver
npm start

The npm start script will spawn a webserver on port 8080 which hosts the Kitchen Sink App.

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

You should see the Kitchen Sink App up and running. We are now ready to run Cypress tests.

## launch the cypress test runner
npm run cy:open

shortcut: you can use command npm run local:open that uses start-server-and-test to start local server and open Cypress. When you close Cypress, the local server is stopped automatically. Similarly you can use npm run local:run to start the server, run Cypress tests headlessly and close the server.

2. Install & write tests in Cypress

Follow these instructions to install and write tests in Cypress.

Contributing

Check out the Contributing Guideline.

Changelog

1.0.2 - (06/28/18)

  • updated dependencies
  • add Cypress.Screenshot.defaults test
  • improvements to build and deploy process
  • bump to node 8

1.0.1 - (05/14/18)

  • updated README to link to correct examples folder
  • added assertion to prevUntil test

1.0.0 - (04/13/18)

  • split example_spec into seperate files
  • convert all JS from ES5 -> ES6
  • update all code content to match actual specs
  • move all Cypress API examples into 1 page
  • have nav be active when visiting page
  • add GitHub link to repo in main nav
  • add link to docs from every header
  • general grammar and link fixes

0.8.3 - (12/19/17)

  • add platform check to cy.exec() example
  • fix typo

0.8.2 - (11/30/17)

  • eslint tests and js script

0.8.1 - (10/16/17)

  • updated .prev html to match test
  • added contributing doc

0.8.0 - (09/10/17)

  • updated for cypress 0.20.0
  • added new cy commands
  • update support files for new scaffolding

0.7.0

  • new traversal commands

0.6.2

  • fix flaky location calls

0.6.1

  • remove .only

0.6.0

  • added stubs, spies, clocks example, fix cy.readFile

0.5.3

  • missing var

0.5.2

  • bump up default config values

0.5.1

  • prevent file server caching

0.5.0 - (09/01/16)

  • renamed Fixtures section to Files
  • added examples for writeFile
  • added example for readFile
  • added examples for using modifier keys on cy.type
  • fixed some formatting

0.4.2

  • rename commandTimeout -> defaultCommandTimeout

0.4.1

  • remove spacejam visit, use https

0.4.0

  • added cy.screenshot example

0.3.0

  • added cy.exec() command examples

0.2.3

  • fix for clearing 3rd party cookies after visit

0.2.2

  • removed methods on Cypress.Cookies

0.2.1

  • removed selenium references

0.2.0

  • added examples of new cypress cookie commands

0.1.5

  • removed relative cy.visit which causes errors on new projects

0.1.4

  • updated node version to 5.10.0

0.1.3

  • renamed visitTimeout option to pageLoadTimeout

0.1.2

  • updated links to be https

0.1.1

  • added cy.reload(true) example

0.1.0

  • initial release