Created
April 6, 2020 15:10
-
-
Save DennisDurairaj/8d2cc26c17bd73b3dce47b79df689800 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("Testing Fetching Weather Forecast", () => { | |
it("Searches weather for invalid city", () => { | |
cy.visit("http://localhost:3000"); | |
cy.get("[data-cy='cityName']").type("Chicago"); | |
cy.get("[data-cy='submitCity']").click(); | |
cy.get("[data-cy='notFound']").contains( "Sorry! City does not exist in database!" ); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment