Untitled
unknown
javascript
3 years ago
1.0 kB
5
Indexable
describe("Test navigation on page", () => { before(() => { cy.visit("http://localhost:3000"); cy.get("[data-cy='logIn']").click(); cy.url().should("include", "signin"); cy.get("[data-cy='e-post']").type("test@testest.test"); cy.get("[data-cy='password']").type("test123"); cy.get("[data-cy='logInButton']").click(); cy.wait(3000); }); it("Go to tickets page", () => { cy.get("[data-cy='allTickets']").click(); cy.url().should("include", "ticketOverview"); }); it("Go to sellticket", () => { cy.get("[data-cy='sellTicket']").click(); cy.url().should("include", "sellticket"); }); it("Go to register interest", () => { cy.get("[data-cy='regInterest']").click(); cy.url().should("include", "reginterest"); }); it("Go to events", () => { cy.get("[data-cy='events']").click(); cy.url().should("include", "/"); }); it("Go to about us", () => { cy.get("[data-cy='about']").click(); cy.url().should("include", "/"); }); });
Editor is loading...