Commit 4fd83f5d authored by Gleb Bahmutov's avatar Gleb Bahmutov

pointing at example server, not local

parent ae825498
Pipeline #3580112 failed with stages
in 44 minutes and 17 seconds
context('Actions', function(){
beforeEach(function(){
cy.visit('http://localhost:8080/commands/actions')
cy.visit('https://example.cypress.io/commands/actions')
})
// **** Actions ****
......
context('Aliasing', function(){
beforeEach(function(){
cy.visit('http://localhost:8080/commands/aliasing')
cy.visit('https://example.cypress.io/commands/aliasing')
})
// **** Aliasing ****
......
context('Assertions', function(){
beforeEach(function(){
cy.visit('http://localhost:8080/commands/assertions')
cy.visit('https://example.cypress.io/commands/assertions')
})
// **** Assertions ****
//
......
......@@ -37,7 +37,7 @@ describe('Kitchen Sink', function(){
it('cy.should - assert that <title> is correct', function(){
// https://on.cypress.io/api/visit
cy.visit('http://localhost:8080')
cy.visit('https://example.cypress.io')
// **** Making Assertions ****
......
context('Cypress.config()', function(){
beforeEach(function(){
cy.visit('http://localhost:8080/cypress-api/config')
cy.visit('https://example.cypress.io/cypress-api/config')
})
// **** Config ****
......
context('Connectors', function(){
beforeEach(function(){
cy.visit('http://localhost:8080/commands/connectors')
cy.visit('https://example.cypress.io/commands/connectors')
})
// **** Connectors ****
......
......@@ -2,7 +2,7 @@ context('Cookies', function(){
beforeEach(function(){
Cypress.Cookies.debug(true)
cy.visit('http://localhost:8080/commands/cookies')
cy.visit('https://example.cypress.io/commands/cookies')
// clear cookies again after visiting to remove
// any 3rd party cookies picked up such as cloudflare
......
context('Cypress.Cookies', function(){
beforeEach(function(){
cy.visit('http://localhost:8080/cypress-api/cookies')
cy.visit('https://example.cypress.io/cypress-api/cookies')
})
// **** Cookies ****
......
context('Cypress.Dom', function(){
beforeEach(function(){
cy.visit('http://localhost:8080/cypress-api/dom')
cy.visit('https://example.cypress.io/cypress-api/dom')
})
// **** Dom ****
......
context('Cypress.env()', function(){
beforeEach(function(){
cy.visit('http://localhost:8080/cypress-api/env')
cy.visit('https://example.cypress.io/cypress-api/env')
})
// **** Env ****
......
context('Fixtures', function(){
beforeEach(function(){
cy.visit('http://localhost:8080/commands/fixtures')
cy.visit('https://example.cypress.io/commands/fixtures')
})
// **** Fixtures ****
//
......
context('Local Storage', function(){
beforeEach(function(){
cy.visit('http://localhost:8080/commands/local-storage')
cy.visit('https://example.cypress.io/commands/local-storage')
})
// **** Local Storage ****
//
......
context('Location', function(){
beforeEach(function(){
cy.visit('http://localhost:8080/commands/location')
cy.visit('https://example.cypress.io/commands/location')
})
// **** Location ****
......@@ -20,10 +20,10 @@ context('Location', function(){
// https://on.cypress.io/api/location
cy.location().then(function(location){
expect(location.hash).to.be.empty
expect(location.href).to.eq('http://localhost:8080/commands/location')
expect(location.href).to.eq('https://example.cypress.io/commands/location')
expect(location.host).to.eq('localhost:8080')
expect(location.hostname).to.eq('localhost')
expect(location.origin).to.eq('http://localhost:8080')
expect(location.origin).to.eq('https://example.cypress.io')
expect(location.pathname).to.eq('/commands/location')
expect(location.port).to.eq('8080')
expect(location.protocol).to.eq('http:')
......@@ -35,7 +35,7 @@ context('Location', function(){
it('cy.url() - get the current URL', function(){
// https://on.cypress.io/api/url
cy.url().should('eq', 'http://localhost:8080/commands/location')
cy.url().should('eq', 'https://example.cypress.io/commands/location')
})
......
context('Misc', function(){
beforeEach(function(){
cy.visit('http://localhost:8080/commands/misc')
cy.visit('https://example.cypress.io/commands/misc')
})
it('cy.end() - end the command chain', function(){
......
context('Navigation', function(){
beforeEach(function(){
cy
.visit('http://localhost:8080')
.visit('https://example.cypress.io')
.get('.navbar-nav').contains('Commands').click()
.get('.dropdown-menu').contains('Navigation').click()
})
......@@ -51,7 +51,7 @@ context('Navigation', function(){
cy.visit('http://www.warnerbros.com/archive/spacejam/movie/jam.htm')
// Pass options to the visit
cy.visit('http://localhost:8080/commands/navigation', {
cy.visit('https://example.cypress.io/commands/navigation', {
timeout: 50000, // increase total time for the visit to resolve
onBeforeLoad: function(contentWindow){
// contentWindow is the remote page's window object
......
context('Network Requests', function(){
beforeEach(function(){
cy.visit('http://localhost:8080/commands/network-requests')
cy.visit('https://example.cypress.io/commands/network-requests')
})
// **** Network Requests ****
......
context('Querying', function(){
beforeEach(function(){
cy.visit('http://localhost:8080/commands/querying')
cy.visit('https://example.cypress.io/commands/querying')
})
// **** Querying DOM Elements ****
......
context('Cypress.Server', function(){
beforeEach(function(){
cy.visit('http://localhost:8080/cypress-api/server')
cy.visit('https://example.cypress.io/cypress-api/server')
})
// **** Server ****
......
context('Traversal', function(){
beforeEach(function(){
cy.visit('http://localhost:8080/commands/traversal')
cy.visit('https://example.cypress.io/commands/traversal')
})
// **** Traversing DOM Elements ****
......
context('Utilities', function(){
beforeEach(function(){
cy.visit('http://localhost:8080/utilities')
cy.visit('https://example.cypress.io/utilities')
})
// **** Utilities ****
......
context('Viewport', function(){
beforeEach(function(){
cy.visit('http://localhost:8080/commands/viewport')
cy.visit('https://example.cypress.io/commands/viewport')
})
// **** Viewport ****
......
context('Waiting', function(){
beforeEach(function(){
cy.visit('http://localhost:8080/commands/waiting')
cy.visit('https://example.cypress.io/commands/waiting')
})
// **** Waiting ****
//
......
context('Window', function(){
beforeEach(function(){
cy.visit('http://localhost:8080/commands/window')
cy.visit('https://example.cypress.io/commands/window')
})
// **** Window ****
......
context('Actions', function(){
beforeEach(function(){
cy.visit('http://localhost:8080/commands/actions')
cy.visit('https://example.cypress.io/commands/actions')
})
// **** Actions ****
......
context('Aliasing', function(){
beforeEach(function(){
cy.visit('http://localhost:8080/commands/aliasing')
cy.visit('https://example.cypress.io/commands/aliasing')
})
// **** Aliasing ****
......
context('Assertions', function(){
beforeEach(function(){
cy.visit('http://localhost:8080/commands/assertions')
cy.visit('https://example.cypress.io/commands/assertions')
})
// **** Assertions ****
//
......
......@@ -37,7 +37,7 @@ describe('Kitchen Sink', function(){
it('cy.should - assert that <title> is correct', function(){
// https://on.cypress.io/api/visit
cy.visit('http://localhost:8080')
cy.visit('https://example.cypress.io')
// **** Making Assertions ****
......
context('Cypress.config()', function(){
beforeEach(function(){
cy.visit('http://localhost:8080/cypress-api/config')
cy.visit('https://example.cypress.io/cypress-api/config')
})
// **** Config ****
......
context('Connectors', function(){
beforeEach(function(){
cy.visit('http://localhost:8080/commands/connectors')
cy.visit('https://example.cypress.io/commands/connectors')
})
// **** Connectors ****
......
......@@ -2,7 +2,7 @@ context('Cookies', function(){
beforeEach(function(){
Cypress.Cookies.debug(true)
cy.visit('http://localhost:8080/commands/cookies')
cy.visit('https://example.cypress.io/commands/cookies')
// clear cookies again after visiting to remove
// any 3rd party cookies picked up such as cloudflare
......
context('Cypress.Cookies', function(){
beforeEach(function(){
cy.visit('http://localhost:8080/cypress-api/cookies')
cy.visit('https://example.cypress.io/cypress-api/cookies')
})
// **** Cookies ****
......
context('Cypress.Dom', function(){
beforeEach(function(){
cy.visit('http://localhost:8080/cypress-api/dom')
cy.visit('https://example.cypress.io/cypress-api/dom')
})
// **** Dom ****
......
context('Cypress.env()', function(){
beforeEach(function(){
cy.visit('http://localhost:8080/cypress-api/env')
cy.visit('https://example.cypress.io/cypress-api/env')
})
// **** Env ****
......
context('Fixtures', function(){
beforeEach(function(){
cy.visit('http://localhost:8080/commands/fixtures')
cy.visit('https://example.cypress.io/commands/fixtures')
})
// **** Fixtures ****
//
......
context('Local Storage', function(){
beforeEach(function(){
cy.visit('http://localhost:8080/commands/local-storage')
cy.visit('https://example.cypress.io/commands/local-storage')
})
// **** Local Storage ****
//
......
context('Location', function(){
beforeEach(function(){
cy.visit('http://localhost:8080/commands/location')
cy.visit('https://example.cypress.io/commands/location')
})
// **** Location ****
......@@ -20,10 +20,10 @@ context('Location', function(){
// https://on.cypress.io/api/location
cy.location().then(function(location){
expect(location.hash).to.be.empty
expect(location.href).to.eq('http://localhost:8080/commands/location')
expect(location.href).to.eq('https://example.cypress.io/commands/location')
expect(location.host).to.eq('localhost:8080')
expect(location.hostname).to.eq('localhost')
expect(location.origin).to.eq('http://localhost:8080')
expect(location.origin).to.eq('https://example.cypress.io')
expect(location.pathname).to.eq('/commands/location')
expect(location.port).to.eq('8080')
expect(location.protocol).to.eq('http:')
......@@ -35,7 +35,7 @@ context('Location', function(){
it('cy.url() - get the current URL', function(){
// https://on.cypress.io/api/url
cy.url().should('eq', 'http://localhost:8080/commands/location')
cy.url().should('eq', 'https://example.cypress.io/commands/location')
})
......
context('Misc', function(){
beforeEach(function(){
cy.visit('http://localhost:8080/commands/misc')
cy.visit('https://example.cypress.io/commands/misc')
})
it('cy.end() - end the command chain', function(){
......
context('Navigation', function(){
beforeEach(function(){
cy
.visit('http://localhost:8080')
.visit('https://example.cypress.io')
.get('.navbar-nav').contains('Commands').click()
.get('.dropdown-menu').contains('Navigation').click()
})
......@@ -51,7 +51,7 @@ context('Navigation', function(){
cy.visit('http://www.warnerbros.com/archive/spacejam/movie/jam.htm')
// Pass options to the visit
cy.visit('http://localhost:8080/commands/navigation', {
cy.visit('https://example.cypress.io/commands/navigation', {
timeout: 50000, // increase total time for the visit to resolve
onBeforeLoad: function(contentWindow){
// contentWindow is the remote page's window object
......
context('Network Requests', function(){
beforeEach(function(){
cy.visit('http://localhost:8080/commands/network-requests')
cy.visit('https://example.cypress.io/commands/network-requests')
})
// **** Network Requests ****
......
context('Querying', function(){
beforeEach(function(){
cy.visit('http://localhost:8080/commands/querying')
cy.visit('https://example.cypress.io/commands/querying')
})
// **** Querying DOM Elements ****
......
context('Cypress.Server', function(){
beforeEach(function(){
cy.visit('http://localhost:8080/cypress-api/server')
cy.visit('https://example.cypress.io/cypress-api/server')
})
// **** Server ****
......
context('Traversal', function(){
beforeEach(function(){
cy.visit('http://localhost:8080/commands/traversal')
cy.visit('https://example.cypress.io/commands/traversal')
})
// **** Traversing DOM Elements ****
......
context('Utilities', function(){
beforeEach(function(){
cy.visit('http://localhost:8080/utilities')
cy.visit('https://example.cypress.io/utilities')
})
// **** Utilities ****
......
context('Viewport', function(){
beforeEach(function(){
cy.visit('http://localhost:8080/commands/viewport')
cy.visit('https://example.cypress.io/commands/viewport')
})
// **** Viewport ****
......
context('Waiting', function(){
beforeEach(function(){
cy.visit('http://localhost:8080/commands/waiting')
cy.visit('https://example.cypress.io/commands/waiting')
})
// **** Waiting ****
//
......
context('Window', function(){
beforeEach(function(){
cy.visit('http://localhost:8080/commands/window')
cy.visit('https://example.cypress.io/commands/window')
})
// **** Window ****
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment