cypress-example-kitchensink
Advanced tools
Comparing version 0.2.3 to 0.3.0
@@ -782,2 +782,20 @@ // | ||
it('cy.exec() - execute a system command', function(){ | ||
// cy.exec allows you to execute a system command. | ||
// so you can take actions necessary for your test, | ||
// but outside the scope of Cypress. | ||
// | ||
// https://on.cypress.io/api/exec | ||
cy | ||
.exec('echo Jane Lane') | ||
.its('stdout').should('contain', 'Jane Lane') | ||
.exec('cat cypress.json') | ||
.its('stderr').should('be.empty') | ||
.exec('pwd') | ||
.its('code').should('eq', 0) | ||
}) | ||
it('cy.focused() - get the DOM element that has focus', function(){ | ||
@@ -784,0 +802,0 @@ |
{ | ||
"name": "cypress-example-kitchensink", | ||
"version": "0.2.3", | ||
"version": "0.3.0", | ||
"description": "This is an example app used to showcase Cypress.io testing. For a full reference of our documentation, go to docs.cypress.io", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -74,2 +74,5 @@ # Kitchen Sink [![Circle CI](https://circleci.com/gh/cypress-io/cypress-example-kitchensink.svg?style=svg)](https://circleci.com/gh/cypress-io/cypress-example-kitchensink) [![Travis CI](https://travis-ci.org/cypress-io/cypress-example-kitchensink.svg?branch=master)](https://travis-ci.org/cypress-io/cypress-example-kitchensink) [![Codeship Status for cypress-io/cypress-example-kitchensink](https://codeship.com/projects/8d6a20c0-b70e-0133-41c6-56e5cd60fbd0/status?branch=master)](https://codeship.com/projects/134609) | ||
#### 0.3.0 | ||
- added cy.exec() command examples | ||
#### 0.2.3 | ||
@@ -76,0 +79,0 @@ - fix for clearing 3rd party cookies after visit |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
2232977
2587
106