diff --git a/t/cypress/integration/t/commands.ts b/t/cypress/integration/t/commands.ts new file mode 100644 index 0000000000..1761941db1 --- /dev/null +++ b/t/cypress/integration/t/commands.ts @@ -0,0 +1,27 @@ +describe("visit", () => { + it("should visit staff", () => { + cy.visit("/"); + cy.title().should("eq", "Log in to Koha › Koha"); + }); +}); + +describe("login", () => { + it("should log in at the staff interface", () => { + cy.login(); + cy.title().should("eq", "Koha staff interface"); + }); +}); + +describe("visitOpac", () => { + it("should visit OPAC", () => { + cy.visitOpac("/"); + cy.title().should("eq", "Koha online catalog"); + }); +}); + +describe("loginOpac", () => { + it("should log in at the OPAC interface", () => { + cy.loginOpac(); + cy.title().should("eq", "Your summary › Koha online catalog"); + }); +});