cypress-example-kitchensink
Advanced tools
Comparing version 0.6.2 to 0.7.0
@@ -188,2 +188,14 @@ // | ||
it('cy.nextAll() - get all next sibling DOM elements', function(){ | ||
// https://on.cypress.io/api/nextall | ||
cy.get('.traversal-next-all').contains('oranges').nextAll().should("have.length", 3) | ||
}) | ||
it('cy.nextUntil() - get all next sibling DOM elements until other element', function(){ | ||
// https://on.cypress.io/api/nextuntil | ||
cy.get("#veggies").nextUntil("#nuts").should("have.length", 3) | ||
}) | ||
it('cy.not() - remove DOM elements from set of DOM elements', function(){ | ||
@@ -195,4 +207,10 @@ | ||
it('cy.parents() - get parents DOM element from set of DOM elements', function(){ | ||
it('cy.parent() - get parent DOM element from set of DOM elements', function(){ | ||
// https://on.cypress.io/api/parent | ||
cy.get('.traversal-mark').parent().should('contain', 'Morbi leo risus') | ||
}) | ||
it('cy.parents() - get parent DOM elements from set of DOM elements', function(){ | ||
// https://on.cypress.io/api/parents | ||
@@ -202,2 +220,26 @@ cy.get('.traversal-cite').parents().should('match', 'blockquote') | ||
it('cy.parentsUntil() - get parent DOM elements from set of DOM elements until other element', function(){ | ||
// https://on.cypress.io/api/parentsuntil | ||
cy.get('.clothes-nav').find(".active").parentsUntil('.clothes-nav').should("have.length", 2) | ||
}) | ||
it('cy.prev() - get previous sibling DOM element', function(){ | ||
// https://on.cypress.io/api/prev | ||
cy.get('.birds').find(".active").prev().should("contain", "Lorikeets") | ||
}) | ||
it('cy.prevAll() - get all previous sibling DOM elements', function(){ | ||
// https://on.cypress.io/api/prevAll | ||
cy.get('.fruits-list').find(".third").prevAll().should("have.length", 2) | ||
}) | ||
it('cy.prevUntil() - get all previous sibling DOM elements until other element', function(){ | ||
// https://on.cypress.io/api/prevUntil | ||
cy.get(".foods-list").find("#nuts").prevUntil("#veggies") | ||
}) | ||
it('cy.siblings() - get all sibling DOM elements from set of DOM elements', function(){ | ||
@@ -204,0 +246,0 @@ |
{ | ||
"name": "cypress-example-kitchensink", | ||
"version": "0.6.2", | ||
"version": "0.7.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) | ||
#### 0.7.0 | ||
- new traversal commands | ||
#### 0.6.2 | ||
@@ -76,0 +79,0 @@ - fix flaky location calls |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2258741
2774
143