Bug 40346: Add tests
Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 7733e6441f)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
This commit is contained in:
parent
7ebd00b12f
commit
21c3d61b03
|
|
@ -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");
|
||||
});
|
||||
});
|
||||
Loading…
Reference in New Issue