Skip to content

Commit

Permalink
Home Page and search page testing done
Browse files Browse the repository at this point in the history
  • Loading branch information
BhJaipal committed Feb 24, 2024
1 parent e862131 commit f61b4a7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions frontend/cypress/e2e/snip-hub-test/start.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,8 @@ describe('Start', () => {
cy.get("input#search").type("hello").should("have.value", "hello");
cy.get("button#search-btn").click().location("href").should("contain", "http://localhost:3000/search/hello");
})
it("Go to search page and come back", () => {
cy.get("input#search").type("hello{enter}").location("href").should("contain", "http://localhost:3000/search/hello");
cy.get("button#go-back").click().location("pathname").should("eq", "/");
})
})

0 comments on commit f61b4a7

Please sign in to comment.