diff --git a/docs/cypress/support/commands.js b/docs/cypress/support/commands.js
index cae33ce8ce..8428b64784 100644
--- a/docs/cypress/support/commands.js
+++ b/docs/cypress/support/commands.js
@@ -7,7 +7,7 @@
// commands for use throughout your tests.
//
// You can read more about custom commands here:
-// https://on.cypress.io/api/commands
+// https://on.cypress.io/cypress-commands
// ***********************************************
//
// Cypress.addParentCommand("login", function(email, password){
@@ -36,4 +36,4 @@
// .then(function(){
// log.snapshot().end()
// })
-// })
\ No newline at end of file
+// })
diff --git a/docs/readme.md b/docs/readme.md
index 924fa1ed39..4c327b765b 100644
--- a/docs/readme.md
+++ b/docs/readme.md
@@ -37,7 +37,7 @@ To link to a page on Guides:
To link to a page on API:
```md
-[and](https://on.cypress.io/api/$slug)
+[and](https://on.cypress.io/$slug)
```
#### Creating New Files
diff --git a/packages/driver/src/cypress/error_messages.coffee b/packages/driver/src/cypress/error_messages.coffee
index 3d5eb8801d..d7ec58da6b 100644
--- a/packages/driver/src/cypress/error_messages.coffee
+++ b/packages/driver/src/cypress/error_messages.coffee
@@ -251,7 +251,7 @@ module.exports = {
#{cmd('hover')} is not currently implemented.\n
However it is usually easy to workaround.\n
Read the following document for a detailed explanation.\n
- https://on.cypress.io/api/hover
+ https://on.cypress.io/hover
"""
invoke:
@@ -358,7 +358,7 @@ module.exports = {
Please go through the getter function: #{cmd(obj.name, "...")}
- #{if obj.url then "https://on.cypress.io/api/#{obj.name}" else ""}
+ #{if obj.url then "https://on.cypress.io/#{obj.name}" else ""}
"""
retry_timed_out: "Timed out retrying: {{error}}"
diff --git a/packages/driver/test/unit/cy/commands/actions/misc_spec.coffee b/packages/driver/test/unit/cy/commands/actions/misc_spec.coffee
index 81928da8d9..4cd88e3b98 100644
--- a/packages/driver/test/unit/cy/commands/actions/misc_spec.coffee
+++ b/packages/driver/test/unit/cy/commands/actions/misc_spec.coffee
@@ -10,7 +10,7 @@ describe "$Cypress.Cy Miscellaneous Commands", ->
it "throws when invoking", (done) ->
@cy.on "fail", (err) ->
expect(err.message).to.include "cy.hover() is not currently implemented."
- expect(err.message).to.include "https://on.cypress.io/api/hover"
+ expect(err.message).to.include "https://on.cypress.io/hover"
done()
@cy.get("button").hover()
diff --git a/packages/example/cypress/integration/example_spec.js b/packages/example/cypress/integration/example_spec.js
index 716bd49ec6..42644e7ce0 100644
--- a/packages/example/cypress/integration/example_spec.js
+++ b/packages/example/cypress/integration/example_spec.js
@@ -31,7 +31,7 @@ describe('Kitchen Sink', function(){
it('cy.should - assert that
is correct', function(){
- // https://on.cypress.io/api/visit
+ // https://on.cypress.io/visit
cy.visit('https://example.cypress.io')
// **** Making Assertions ****
@@ -41,10 +41,10 @@ describe('Kitchen Sink', function(){
// Chainers are available from Chai, Chai-jQuery, and Chai-Sinon.
// https://on.cypress.io/guides/making-assertions
//
- // https://on.cypress.io/api/should
- // https://on.cypress.io/api/and
+ // https://on.cypress.io/should
+ // https://on.cypress.io/and
- // https://on.cypress.io/api/title
+ // https://on.cypress.io/title
cy.title().should('include', 'Kitchen Sink')
// ↲ ↲ ↲
// subject chainer value
@@ -63,7 +63,7 @@ describe('Kitchen Sink', function(){
it('cy.get() - query DOM elements', function(){
- // https://on.cypress.io/api/get
+ // https://on.cypress.io/get
// We can get DOM elements by id
cy.get('#query-btn').should('contain', 'Button')
@@ -77,7 +77,7 @@ describe('Kitchen Sink', function(){
it('cy.contains() - query DOM elements with matching content', function(){
- // https://on.cypress.io/api/contains
+ // https://on.cypress.io/contains
cy
.get('.query-list')
.contains('bananas').should('have.class', 'third')
@@ -105,7 +105,7 @@ describe('Kitchen Sink', function(){
it('cy.within() - query DOM elements within a specific element', function(){
- // https://on.cypress.io/api/within
+ // https://on.cypress.io/within
cy.get('.query-form').within(function(){
cy
.get('input:first').should('have.attr', 'placeholder', 'Email')
@@ -115,7 +115,7 @@ describe('Kitchen Sink', function(){
it('cy.root() - query the root DOM element', function(){
- // https://on.cypress.io/api/root
+ // https://on.cypress.io/root
// By default, root is the document
cy.root().should('match', 'html')
@@ -139,109 +139,109 @@ describe('Kitchen Sink', function(){
it('cy.children() - get child DOM elements', function(){
- // https://on.cypress.io/api/children
+ // https://on.cypress.io/children
cy.get('.traversal-breadcrumb').children('.active').should('contain', 'Data')
})
it('cy.closest() - get closest ancestor DOM element', function(){
- // https://on.cypress.io/api/closest
+ // https://on.cypress.io/closest
cy.get('.traversal-badge').closest('ul').should('have.class', 'list-group')
})
it('cy.eq() - get a DOM element at a specific index', function(){
- // https://on.cypress.io/api/eq
+ // https://on.cypress.io/eq
cy.get('.traversal-list>li').eq(1).should('contain', 'siamese')
})
it('cy.filter() - get DOM elements that match the selector', function(){
- // https://on.cypress.io/api/filter
+ // https://on.cypress.io/filter
cy.get('.traversal-nav>li').filter('.active').should('contain', 'About')
})
it('cy.find() - get descendant DOM elements of the selector', function(){
- // https://on.cypress.io/api/find
+ // https://on.cypress.io/find
cy.get('.traversal-pagination').find('li').find('a').should('have.length', 7)
})
it('cy.first() - get first DOM element', function(){
- // https://on.cypress.io/api/first
+ // https://on.cypress.io/first
cy.get('.traversal-table td').first().should('contain', '1')
})
it('cy.last() - get last DOM element', function(){
- // https://on.cypress.io/api/last
+ // https://on.cypress.io/last
cy.get('.traversal-buttons .btn').last().should('contain', 'Submit')
})
it('cy.next() - get next sibling DOM element', function(){
- // https://on.cypress.io/api/next
+ // https://on.cypress.io/next
cy.get('.traversal-ul').contains('apples').next().should('contain', 'oranges')
})
it('cy.nextAll() - get all next sibling DOM elements', function(){
- // https://on.cypress.io/api/nextall
+ // https://on.cypress.io/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
+ // https://on.cypress.io/nextuntil
cy.get("#veggies").nextUntil("#nuts").should("have.length", 3)
})
it('cy.not() - remove DOM elements from set of DOM elements', function(){
- // https://on.cypress.io/api/not
+ // https://on.cypress.io/not
cy.get('.traversal-disabled .btn').not('[disabled]').should('not.contain', 'Disabled')
})
it('cy.parent() - get parent DOM element from set of DOM elements', function(){
- // https://on.cypress.io/api/parent
+ // https://on.cypress.io/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
+ // https://on.cypress.io/parents
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
+ // https://on.cypress.io/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
+ // https://on.cypress.io/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
+ // https://on.cypress.io/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
+ // https://on.cypress.io/prevUntil
cy.get(".foods-list").find("#nuts").prevUntil("#veggies")
})
it('cy.siblings() - get all sibling DOM elements from set of DOM elements', function(){
- // https://on.cypress.io/api/siblings
+ // https://on.cypress.io/siblings
cy.get('.traversal-pills .active').siblings().should('have.length', 2)
})
})
@@ -260,7 +260,7 @@ describe('Kitchen Sink', function(){
it('cy.type() - type into a DOM element', function(){
- // https://on.cypress.io/api/type
+ // https://on.cypress.io/type
cy
.get('.action-email')
.type('fake@email.com').should('have.value', 'fake@email.com')
@@ -297,7 +297,7 @@ describe('Kitchen Sink', function(){
it('cy.focus() - focus on a DOM element', function(){
- // https://on.cypress.io/api/focus
+ // https://on.cypress.io/focus
cy
.get('.action-focus').focus()
.should('have.class', 'focus')
@@ -306,7 +306,7 @@ describe('Kitchen Sink', function(){
it('cy.blur() - blur off a DOM element', function(){
- // https://on.cypress.io/api/blur
+ // https://on.cypress.io/blur
cy
.get('.action-blur').type('I\'m about to blur').blur()
.should('have.class', 'error')
@@ -316,7 +316,7 @@ describe('Kitchen Sink', function(){
it('cy.clear() - clears the value of an input or textarea element', function(){
- // https://on.cypress.io/api/clear
+ // https://on.cypress.io/clear
cy
.get('.action-clear').type('We are going to clear this text')
.should('have.value', 'We are going to clear this text')
@@ -326,7 +326,7 @@ describe('Kitchen Sink', function(){
it('cy.submit() - submit a form', function(){
- // https://on.cypress.io/api/submit
+ // https://on.cypress.io/submit
cy
.get('.action-form')
.find('[type="text"]').type('HALFOFF')
@@ -336,7 +336,7 @@ describe('Kitchen Sink', function(){
it('cy.click() - click on a DOM element', function(){
- // https://on.cypress.io/api/click
+ // https://on.cypress.io/click
cy.get('.action-btn').click()
// **** Click Position ****
@@ -395,7 +395,7 @@ describe('Kitchen Sink', function(){
// We have a listener on 'dblclick' event in our 'scripts.js'
// that hides the div and shows an input on double click
- // https://on.cypress.io/api/dblclick
+ // https://on.cypress.io/dblclick
cy
.get('.action-div').dblclick().should('not.be.visible')
.get('.action-input-hidden').should('be.visible')
@@ -406,7 +406,7 @@ describe('Kitchen Sink', function(){
// By default, cy.check() will check all
// matching checkbox or radio elements in succession, one after another
- // https://on.cypress.io/api/check
+ // https://on.cypress.io/check
cy
.get('.action-checkboxes [type="checkbox"]').not('[disabled]').check().should('be.checked')
@@ -447,7 +447,7 @@ describe('Kitchen Sink', function(){
// By default, cy.uncheck() will uncheck all matching
// checkbox elements in succession, one after another
- // https://on.cypress.io/api/uncheck
+ // https://on.cypress.io/uncheck
cy
.get('.action-check [type="checkbox"]')
.not('[disabled]')
@@ -486,7 +486,7 @@ describe('Kitchen Sink', function(){
it('cy.select() - select an option in a