This commit is contained in:
93
e2e/tests/regression/smoke-admin-section-forms.js
Normal file
93
e2e/tests/regression/smoke-admin-section-forms.js
Normal file
@@ -0,0 +1,93 @@
|
||||
// Basic smoke test, visit every form to ensure they load
|
||||
|
||||
describe("SMOKE ADMIN SECTION", () => {
|
||||
it("Admin forms open without error", () => {
|
||||
cy.visit("/login");
|
||||
|
||||
cy.get("input[name=username]").clear().type(Cypress.env("adminusername"));
|
||||
|
||||
// {enter} causes the form to submit
|
||||
cy.get("input[name=password]")
|
||||
.clear()
|
||||
.type(`${Cypress.env("adminpassword")}{enter}`);
|
||||
|
||||
//################# ADMIN
|
||||
cy.visit("/adm-global-settings");
|
||||
cy.url().should("include", "/adm-global-settings");
|
||||
cy.get("[data-cy=generalerror]").should("not.exist");
|
||||
cy.get("[data-cy=filterCaseSensitive]");
|
||||
|
||||
cy.visit("/adm-global-select-templates");
|
||||
cy.url().should("include", "/adm-global-select-templates");
|
||||
cy.get("[data-cy=generalerror]").should("not.exist");
|
||||
cy.get("[data-cy=selectTemplate]");
|
||||
|
||||
cy.visit("/adm-global-logo");
|
||||
cy.url().should("include", "/adm-global-logo");
|
||||
cy.get("[data-cy=generalerror]").should("not.exist");
|
||||
cy.get("[data-cy=uploadSmall]");
|
||||
|
||||
cy.visit("/adm-global-seeds");
|
||||
cy.url().should("include", "/adm-global-seeds");
|
||||
cy.get("[data-cy=generalerror]").should("not.exist");
|
||||
cy.get("[data-cy=purchaseOrderNextSerial]");
|
||||
|
||||
cy.visit("/adm-license");
|
||||
cy.url().should("include", "/adm-license");
|
||||
cy.get("[data-cy=generalerror]").should("not.exist");
|
||||
cy.get("[data-cy=licenseForm]");
|
||||
|
||||
cy.visit("/adm-users");
|
||||
cy.url().should("include", "/adm-users");
|
||||
cy.get("[data-cy=generalerror]").should("not.exist");
|
||||
cy.get("[data-cy=usersTable]");
|
||||
|
||||
cy.visit("/adm-users/1");
|
||||
cy.url().should("include", "/adm-users/1");
|
||||
cy.get("[data-cy=generalerror]").should("not.exist");
|
||||
cy.get("[data-cy=name]");
|
||||
|
||||
cy.visit("/adm-translations");
|
||||
cy.url().should("include", "/adm-translations");
|
||||
cy.get("[data-cy=generalerror]").should("not.exist");
|
||||
cy.get("[data-cy=transTable]");
|
||||
|
||||
cy.visit("/adm-translations/1");
|
||||
cy.url().should("include", "/adm-translations/1");
|
||||
cy.get("[data-cy=generalerror]").should("not.exist");
|
||||
cy.get("[data-cy=name]");
|
||||
|
||||
cy.visit("/adm-report-templates");
|
||||
cy.url().should("include", "/adm-report-templates");
|
||||
cy.get("[data-cy=generalerror]").should("not.exist");
|
||||
cy.get("[data-cy=reportTemplatesTable]");
|
||||
|
||||
cy.visit("/report-edit/1");
|
||||
cy.url().should("include", "/report-edit/1");
|
||||
cy.get("[data-cy=generalerror]").should("not.exist");
|
||||
cy.get("[data-cy=viewChange]");
|
||||
|
||||
cy.visit("/adm-attachments");
|
||||
cy.url().should("include", "/adm-attachments");
|
||||
cy.get("[data-cy=generalerror]").should("not.exist");
|
||||
cy.get("[data-cy=attachTable]");
|
||||
|
||||
cy.visit("/adm-history");
|
||||
cy.url().should("include", "/adm-history");
|
||||
cy.get("[data-cy=generalerror]").should("not.exist");
|
||||
cy.get("[data-cy=historyTable]");
|
||||
|
||||
cy.visit("/adm-import");
|
||||
cy.url().should("include", "/adm-import");
|
||||
cy.get("[data-cy=generalerror]").should("not.exist");
|
||||
cy.get("[data-cy=ayaType]");
|
||||
|
||||
//LOGOUT
|
||||
cy.get("[data-cy=navicon]").click();
|
||||
cy.get("[data-cy=logout]").click();
|
||||
cy.url().should("include", "/login");
|
||||
cy.get("[data-cy=generalerror]").should("not.exist");
|
||||
|
||||
//-----------------------------------------------------
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user