Created
September 28, 2017 04:24
-
-
Save kobvel/d0983fef8703adb7a73e24feabd20dae to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe('My First Test', function() { | |
it("clicking 'root' shows the right headings", function() { | |
cy.visit('https://example.cypress.io') | |
cy.contains('root').click() | |
// Should be on a new URL which includes '/commands/querying' | |
cy.url().should('include', '/commands/querying') | |
// Should find the main header "Querying" | |
cy.get('h1').should('contain', 'Querying') | |
// Should also find a sub-header about the contains command | |
cy.get('h4').should('contain', 'cy.contains()') | |
}) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment