Files
raven-test/e2e/tests/regression/1-smoke/8-server-operations.js
2021-12-17 23:59:24 +00:00

70 lines
2.4 KiB
JavaScript

// Basic smoke test, visit every form to ensure they load
describe("SMOKE OPERATIONS SECTION", () => {
it("Ops 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}`);
//################# OPERATIONS
cy.visit("/ops-backup");
cy.url().should("include", "/ops-backup");
cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=backupTable]");
cy.visit("/ops-server-state");
cy.url().should("include", "/ops-server-state");
cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=serverStateOpen]");
cy.visit("/ops-jobs");
cy.url().should("include", "/ops-jobs");
cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=jobsTable]");
cy.visit("/ops-log");
cy.url().should("include", "/ops-log");
cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=selectedLog]");
cy.visit("/ops-metrics");
cy.url().should("include", "/ops-metrics");
cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=selectedTimePeriod]");
cy.visit("/ops-profile");
cy.url().should("include", "/ops-profile");
cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=profileCard]");
cy.visit("/ops-notification-settings");
cy.url().should("include", "/ops-notification-settings");
cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=smtpDeliveryActive]");
cy.visit("/ops-notify-queue");
cy.url().should("include", "/ops-notify-queue");
cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=notifyQueueTable]");
cy.visit("/ops-view-configuration");
cy.url().should("include", "/ops-view-configuration");
cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=configCard]");
//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");
//-----------------------------------------------------
});
});