Socket
Socket
Sign inDemoInstall

cypress-example-kitchensink

Package Overview
Dependencies
Maintainers
2
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cypress-example-kitchensink - npm Package Compare versions

Comparing version 0.6.2 to 0.7.0

44

cypress/integration/example_spec.js

@@ -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 @@

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc