Created
March 19, 2020 01:15
-
-
Save ryanjyost/84bb6563fc24ce0c00df362ae8502abd to your computer and use it in GitHub Desktop.
sixth
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("Cypress Tutorial", function() { | |
beforeEach(function() { | |
cy.server(); | |
cy.route("/200?**").as("fakeNetworkRequest"); | |
cy.visit("http://localhost:3000"); | |
cy.wait("@fakeNetworkRequest"); | |
}); | |
it("works", function() { | |
cy.findByText("Learn React"); | |
}); | |
it("has a link pointing to the react website", function() { | |
cy.verifyLink("Learn React", "https://reactjs.org"); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment