Skip to content

Instantly share code, notes, and snippets.

@DennisDurairaj
Created April 6, 2020 15:10
Show Gist options
  • Save DennisDurairaj/8d2cc26c17bd73b3dce47b79df689800 to your computer and use it in GitHub Desktop.
Save DennisDurairaj/8d2cc26c17bd73b3dce47b79df689800 to your computer and use it in GitHub Desktop.
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