You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
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

Comparing version 0.1.1 to 0.1.2

138

cypress/integration/example_spec.js

@@ -37,3 +37,3 @@ //

// http://on.cypress.io/api/visit
// https://on.cypress.io/api/visit
cy.visit('http://localhost:8080')

@@ -48,6 +48,6 @@

//
// http://on.cypress.io/api/should
// http://on.cypress.io/api/and
// https://on.cypress.io/api/should
// https://on.cypress.io/api/and
// http://on.cypress.io/api/title
// https://on.cypress.io/api/title
cy.title().should('include', 'Kitchen Sink')

@@ -72,3 +72,3 @@ // ↲ ↲ ↲

// http://on.cypress.io/api/get
// https://on.cypress.io/api/get
// We can get DOM elements by id

@@ -89,3 +89,3 @@ cy.get('#query-btn').should('contain', 'Button')

// http://on.cypress.io/api/contains
// https://on.cypress.io/api/contains
cy.get('.query-list').contains('bananas').should('have.class', 'third')

@@ -97,3 +97,3 @@

// http://on.cypress.io/api/within
// https://on.cypress.io/api/within
cy.get('.query-form').within(function(){

@@ -110,3 +110,3 @@ cy

// http://on.cypress.io/api/root
// https://on.cypress.io/api/root
// By default, root is the document

@@ -137,3 +137,3 @@ cy.root().should('match', 'html')

// http://on.cypress.io/api/children
// https://on.cypress.io/api/children
cy.get('.traversal-breadcrumb').children('.active').should('contain', 'Data')

@@ -145,3 +145,3 @@

// http://on.cypress.io/api/closest
// https://on.cypress.io/api/closest
cy.get('.traversal-badge').closest('ul').should('have.class', 'list-group')

@@ -153,3 +153,3 @@

// http://on.cypress.io/api/eq
// https://on.cypress.io/api/eq
cy.get('.traversal-list>li').eq(1).should('contain', 'siamese')

@@ -161,3 +161,3 @@

// http://on.cypress.io/api/filter
// https://on.cypress.io/api/filter
cy.get('.traversal-nav>li').filter('.active').should('contain', 'About')

@@ -169,3 +169,3 @@

// http://on.cypress.io/api/find
// https://on.cypress.io/api/find
cy.get('.traversal-pagination').find('li').find('a').should('have.length', 7)

@@ -177,3 +177,3 @@

// http://on.cypress.io/api/first
// https://on.cypress.io/api/first
cy.get('.traversal-table td').first().should('contain', '1')

@@ -185,3 +185,3 @@

// http://on.cypress.io/api/last
// https://on.cypress.io/api/last
cy.get('.traversal-buttons .btn').last().should('contain', 'Submit')

@@ -193,3 +193,3 @@

// http://on.cypress.io/api/next
// https://on.cypress.io/api/next
cy.get('.traversal-ul').contains('apples').next().should('contain', 'oranges')

@@ -201,3 +201,3 @@

// http://on.cypress.io/api/not
// https://on.cypress.io/api/not
cy.get('.traversal-disabled .btn').not('[disabled]').should('not.contain', 'Disabled')

@@ -209,3 +209,3 @@

// http://on.cypress.io/api/parents
// https://on.cypress.io/api/parents
cy.get('.traversal-cite').parents().should('match', 'blockquote')

@@ -217,3 +217,3 @@

// http://on.cypress.io/api/siblings
// https://on.cypress.io/api/siblings
cy.get('.traversal-pills .active').siblings().should('have.length', 2)

@@ -240,3 +240,3 @@

// http://on.cypress.io/api/type
// https://on.cypress.io/api/type
cy

@@ -272,3 +272,3 @@ .get('.action-email')

// http://on.cypress.io/api/focus
// https://on.cypress.io/api/focus
cy

@@ -283,3 +283,3 @@ .get('.action-focus').focus()

// http://on.cypress.io/api/blur
// https://on.cypress.io/api/blur
cy

@@ -295,3 +295,3 @@ .get('.action-blur').type('I\'m about to blur').blur()

// http://on.cypress.io/api/clear
// https://on.cypress.io/api/clear
cy

@@ -307,3 +307,3 @@ .get('.action-clear').type('We are going to clear this text')

// http://on.cypress.io/api/submit
// https://on.cypress.io/api/submit
cy

@@ -319,3 +319,3 @@ .get('.action-form')

// http://on.cypress.io/api/click
// https://on.cypress.io/api/click
cy.get('.action-btn').click()

@@ -380,3 +380,3 @@

// http://on.cypress.io/api/dblclick
// https://on.cypress.io/api/dblclick
cy

@@ -393,3 +393,3 @@ .get('.action-div').dblclick().should('not.be.visible')

// http://on.cypress.io/api/check
// https://on.cypress.io/api/check
cy

@@ -437,3 +437,3 @@ .get('.action-checkboxes [type="checkbox"]').not('[disabled]').check().should('be.checked')

// http://on.cypress.io/api/uncheck
// https://on.cypress.io/api/uncheck
cy

@@ -478,3 +478,3 @@ .get('.action-check [type="checkbox"]')

// http://on.cypress.io/api/select
// https://on.cypress.io/api/select

@@ -510,3 +510,3 @@ // Select the option with matching text content

// http://on.cypress.io/api/window
// https://on.cypress.io/api/window
cy.window().should('have.property', 'top')

@@ -518,3 +518,3 @@

// http://on.cypress.io/api/document
// https://on.cypress.io/api/document
cy.document().should('have.property', 'charset').and('eq', 'UTF-8')

@@ -526,3 +526,3 @@

// http://on.cypress.io/api/title
// https://on.cypress.io/api/title
cy.title().should('include', 'Kitchen Sink')

@@ -549,3 +549,3 @@

// http://on.cypress.io/api/viewport
// https://on.cypress.io/api/viewport
cy.viewport(320, 480)

@@ -622,3 +622,3 @@

// http://on.cypress.io/api/hash
// https://on.cypress.io/api/hash
cy.hash().should('be.empty')

@@ -630,3 +630,3 @@

// http://on.cypress.io/api/location
// https://on.cypress.io/api/location
cy.location().then(function(location){

@@ -648,3 +648,3 @@ expect(location.hash).to.be.empty

// http://on.cypress.io/api/url
// https://on.cypress.io/api/url
cy.url().should('eq', 'http://localhost:8080/commands/location')

@@ -673,3 +673,3 @@

// http://on.cypress.io/api/go
// https://on.cypress.io/api/go
cy.go('back')

@@ -695,3 +695,3 @@ cy.location().its('pathname').should('not.include', 'navigation')

// http://on.cypress.io/api/reload
// https://on.cypress.io/api/reload
cy.reload()

@@ -707,3 +707,3 @@

// Visit any url
// http://on.cypress.io/api/visit
// https://on.cypress.io/api/visit
cy.visit('http://www.warnerbros.com/archive/spacejam/movie/jam.htm')

@@ -740,3 +740,3 @@

// http://on.cypress.io/api/should
// https://on.cypress.io/api/should
cy

@@ -750,3 +750,3 @@ .get('.assertion-table')

// http://on.cypress.io/api/and
// https://on.cypress.io/api/and
cy

@@ -776,3 +776,3 @@ .get('.assertions-link')

var texts = $p.map(function(i, el){
// http://on.cypress.io/api/cypress-jquery
// https://on.cypress.io/api/cypress-jquery
return Cypress.$(el).text()

@@ -812,3 +812,3 @@ })

//
// http://on.cypress.io/api/end
// https://on.cypress.io/api/end
cy

@@ -828,3 +828,3 @@ .get('.misc-table').within(function(){

// http://on.cypress.io/api/focused
// https://on.cypress.io/api/focused
cy

@@ -841,3 +841,3 @@ .get('.misc-form').find('#name').click()

// http://on.cypress.io/api/wrap
// https://on.cypress.io/api/wrap
cy

@@ -864,3 +864,3 @@ .wrap({foo: 'bar'})

// http://on.cypress.io/api/its
// https://on.cypress.io/api/its
cy

@@ -878,3 +878,3 @@ .get('.connectors-ul>li')

// http://on.cypress.io/api/invoke
// https://on.cypress.io/api/invoke
cy

@@ -891,3 +891,3 @@ .get('.connectors-div').should('be.hidden')

// http://on.cypress.io/api/spread
// https://on.cypress.io/api/spread
var arr = ['foo', 'bar', 'baz']

@@ -905,3 +905,3 @@

// http://on.cypress.io/api/then
// https://on.cypress.io/api/then
cy.get('.connectors-list>li').then(function($lis){

@@ -934,3 +934,3 @@ expect($lis).to.have.length(3)

//
// http://on.cypress.io/api/as
// https://on.cypress.io/api/as
cy

@@ -966,3 +966,3 @@ .get('.as-table').find('tbody>tr')

//
// http://on.cypress.io/api/wait
// https://on.cypress.io/api/wait
it('cy.wait() - wait for a specific amount of time', function(){

@@ -998,3 +998,3 @@

// http://on.cypress.io/api/server
// https://on.cypress.io/api/server
cy.server().then(function(server){

@@ -1035,3 +1035,3 @@ // the default options on server

// http://on.cypress.io/api/request
// https://on.cypress.io/api/request
cy

@@ -1052,3 +1052,3 @@ .request('http://jsonplaceholder.typicode.com/comments').then(function(response){

//
// http://on.cypress.io/api/route
// https://on.cypress.io/api/route
cy

@@ -1066,3 +1066,3 @@ .route(/comments\/1/).as('getComment')

//
// http://on.cypress.io/api/wait
// https://on.cypress.io/api/wait
.wait('@getComment').its('status').should('eq', 200)

@@ -1130,3 +1130,3 @@

// http://on.cypress.io/api/fixture
// https://on.cypress.io/api/fixture
cy

@@ -1188,3 +1188,3 @@ .fixture('example.json').as('comment')

//
// http://on.cypress.io/api/clearlocalstorage
// https://on.cypress.io/api/clearlocalstorage
cy

@@ -1251,3 +1251,3 @@ .get(".ls-btn").click().then(function(){

//
// // http://on.cypress.io/api/getcookies
// // https://on.cypress.io/api/getcookies
cy

@@ -1266,3 +1266,3 @@ .getCookies().should('not.have.property', 'fakeCookie1')

//
// http://on.cypress.io/api/clearcookies
// https://on.cypress.io/api/clearcookies

@@ -1297,3 +1297,3 @@ cy

// use the _.chain, _.pluck, _.first, and _.value functions
// http://on.cypress.io/api/cypress-underscore
// https://on.cypress.io/api/cypress-underscore
.request('http://jsonplaceholder.typicode.com/users').then(function(response){

@@ -1310,3 +1310,3 @@ var _ = Cypress._

// http://on.cypress.io/api/cypress-jquery
// https://on.cypress.io/api/cypress-jquery
var $li = Cypress.$('.utility-jquery li:first')

@@ -1326,3 +1326,3 @@

// use moment's format function
// http://on.cypress.io/api/cypress-moment
// https://on.cypress.io/api/cypress-moment
var time = Cypress.moment().utc('2014-04-25T19:38:53.196Z').format('h:mm A')

@@ -1338,3 +1338,3 @@

// http://on.cypress.io/api/cypress-blob
// https://on.cypress.io/api/cypress-blob
// https://github.com/nolanlawson/blob-util#imgSrcToDataURL

@@ -1361,3 +1361,3 @@ // get the dataUrl string for the javascript-logo

// http://on.cypress.io/api/cypress-promise
// https://on.cypress.io/api/cypress-promise
var waited = false

@@ -1403,3 +1403,3 @@

// http://on.cypress.io/api/config
// https://on.cypress.io/api/config
var myConfig = Cypress.config()

@@ -1449,3 +1449,3 @@

// http://on.cypress.io/api/env
// https://on.cypress.io/api/env
// set multiple environment variables

@@ -1480,3 +1480,3 @@ Cypress.env({

//
// http://on.cypress.io/api/cookies
// https://on.cypress.io/api/cookies

@@ -1556,3 +1556,3 @@ it('Cypress.Cookies.set() - set a cookie by key, value', function(){

//
// http://on.cypress.io/api/dom
// https://on.cypress.io/api/dom

@@ -1582,3 +1582,3 @@ it('Cypress.Dom.isHidden() - determine if a DOM element is hidden', function(){

//
// http://on.cypress.io/api/api-server
// https://on.cypress.io/api/api-server

@@ -1585,0 +1585,0 @@ it('Cypress.Server.defaults() - change default config of server', function(){

{
"name": "cypress-example-kitchensink",
"version": "0.1.1",
"version": "0.1.2",
"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",

@@ -30,3 +30,3 @@ # 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)

* [Gitter Channel](https://gitter.im/cypress-io/cypress)
* [Cypress Docs](https://github.com/cypress-io/cypress/wiki)
* [Cypress Docs](https://on.cypress.io)
* [Cypress CLI Tool Docs](https://github.com/cypress-io/cypress-cli)

@@ -75,2 +75,5 @@

#### 0.1.2
- updated links to be https
#### 0.1.1

@@ -77,0 +80,0 @@ - added cy.reload(true) example

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc