This commit is contained in:
@@ -6,10 +6,6 @@ WIFI change 5g channel to 52,56,60 and 2g channel to 8
|
||||
recheck before doing as it seems to vary, maybe someone else's is auto switching
|
||||
|
||||
|
||||
|
||||
todo: PickList, hide open button if disabled and show an active button so user can still click, that's not restricted when readonly
|
||||
required because readonly form of control disables button (or maybe disabled form of control disables button)
|
||||
|
||||
todo: Add "smoke" e2e test that logs in as admin and then opens *every* form in the program and confirms no error
|
||||
this is so when I make various changes or upgrade stuff I know that at the very least every form can open up without error or crashing
|
||||
|
||||
|
||||
@@ -97,7 +97,10 @@
|
||||
<!-- TOP LEVEL ACTION -->
|
||||
<template v-else>
|
||||
<div :key="item.key">
|
||||
<v-list-item :to="item.route">
|
||||
<v-list-item
|
||||
:to="item.route"
|
||||
:data-cy="!!$ay.dev ? item.testid : false"
|
||||
>
|
||||
<v-list-item-action v-if="item.icon">
|
||||
<v-icon>{{ item.icon }}</v-icon>
|
||||
</v-list-item-action>
|
||||
|
||||
@@ -127,7 +127,6 @@ export default {
|
||||
data: "ay-start-form-select-list"
|
||||
});
|
||||
},
|
||||
|
||||
editIcon: function() {
|
||||
if (!this.showEditIcon) {
|
||||
return null;
|
||||
|
||||
165
ayanova/tests/e2e/specs/smoke.js
Normal file
165
ayanova/tests/e2e/specs/smoke.js
Normal file
@@ -0,0 +1,165 @@
|
||||
// Basic smoke test, visit every form to ensure they load
|
||||
|
||||
describe("SMOKE", () => {
|
||||
it("About form works for all default languages", () => {
|
||||
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}`);
|
||||
|
||||
// we should be redirected to /dashboard
|
||||
cy.url().should("include", "/home-dashboard");
|
||||
|
||||
//go to every form and ensure it loads
|
||||
|
||||
cy.visit("/home-search");
|
||||
cy.url().should("include", "/home-search");
|
||||
cy.visit("/home-schedule");
|
||||
cy.url().should("include", "/home-schedule");
|
||||
cy.visit("/home-memos");
|
||||
cy.url().should("include", "/home-memos");
|
||||
cy.visit("/home-reminders");
|
||||
cy.url().should("include", "/home-reminders");
|
||||
cy.visit("/home-user-settings");
|
||||
cy.url().should("include", "/home-user-settings");
|
||||
cy.visit("/home-translation");
|
||||
cy.url().should("include", "/home-translation");
|
||||
cy.visit("/home-password");
|
||||
cy.url().should("include", "/home-password");
|
||||
cy.visit("/home-notify-subscriptions");
|
||||
cy.url().should("include", "/home-notify-subscriptions");
|
||||
cy.visit("/cust-customers");
|
||||
cy.url().should("include", "/cust-customers");
|
||||
cy.visit("/cust-headoffices");
|
||||
cy.url().should("include", "/cust-headoffices");
|
||||
cy.visit("/svc-schedule");
|
||||
cy.url().should("include", "/svc-schedule");
|
||||
cy.visit("/svc-workorders");
|
||||
cy.url().should("include", "/svc-workorders");
|
||||
cy.visit("/svc-workorder-templates");
|
||||
cy.url().should("include", "/svc-workorder-templates");
|
||||
cy.visit("/svc-quotes");
|
||||
cy.url().should("include", "/svc-quotes");
|
||||
cy.visit("/svc-quote-templates");
|
||||
cy.url().should("include", "/svc-quote-templates");
|
||||
cy.visit("/svc-pm-list");
|
||||
cy.url().should("include", "/svc-pm-list");
|
||||
cy.visit("/svc-pm-templates");
|
||||
cy.url().should("include", "/svc-pm-templates");
|
||||
cy.visit("/svc-units");
|
||||
cy.url().should("include", "/svc-units");
|
||||
cy.visit("/svc-unit-models");
|
||||
cy.url().should("include", "/svc-unit-models");
|
||||
cy.visit("/svc-loaners");
|
||||
cy.url().should("include", "/svc-loaners");
|
||||
cy.visit("/svc-contracts");
|
||||
cy.url().should("include", "/svc-contracts");
|
||||
cy.visit("/svc-csr-list");
|
||||
cy.url().should("include", "/svc-csr-list");
|
||||
|
||||
cy.visit("/inv-parts");
|
||||
cy.url().should("include", "/inv-parts");
|
||||
cy.visit("/inv-part-inventory");
|
||||
cy.url().should("include", "/inv-part-inventory");
|
||||
cy.visit("/inv-part-requests");
|
||||
cy.url().should("include", "/inv-part-requests");
|
||||
cy.visit("/inv-purchase-orders");
|
||||
cy.url().should("include", "/inv-purchase-orders");
|
||||
cy.visit("/inv-purchase-order-receipts");
|
||||
cy.url().should("include", "/inv-purchase-order-receipts");
|
||||
cy.visit("/inv-adjustments");
|
||||
cy.url().should("include", "/inv-adjustments");
|
||||
cy.visit("/vendors");
|
||||
cy.url().should("include", "/vendors");
|
||||
cy.visit("/acc-accounting");
|
||||
cy.url().should("include", "/acc-accounting");
|
||||
cy.visit("/adm-global-settings");
|
||||
cy.url().should("include", "/adm-global-settings");
|
||||
|
||||
cy.visit("/adm-global-select-templates");
|
||||
cy.url().should("include", "/adm-global-select-templates");
|
||||
cy.visit("/adm-license");
|
||||
cy.url().should("include", "/adm-license");
|
||||
cy.visit("/adm-users");
|
||||
cy.url().should("include", "/adm-users");
|
||||
cy.visit("/adm-translation");
|
||||
cy.url().should("include", "/adm-translation");
|
||||
cy.visit("/adm-report-templates");
|
||||
cy.url().should("include", "/adm-report-templates");
|
||||
cy.visit("/adm-attachments");
|
||||
cy.url().should("include", "/adm-attachments");
|
||||
cy.visit("/adm-history");
|
||||
cy.url().should("include", "/adm-history");
|
||||
cy.visit("/adm-statistics");
|
||||
cy.url().should("include", "/adm-statistics");
|
||||
|
||||
cy.visit("/ops-backup");
|
||||
cy.url().should("include", "/ops-backup");
|
||||
cy.visit("/ops-server-state");
|
||||
cy.url().should("include", "/ops-server-state");
|
||||
cy.visit("/ops-jobs");
|
||||
cy.url().should("include", "/ops-jobs");
|
||||
cy.visit("/ops-log");
|
||||
cy.url().should("include", "/ops-log");
|
||||
cy.visit("/ops-metrics");
|
||||
cy.url().should("include", "/ops-metrics");
|
||||
cy.visit("/ops-profile");
|
||||
cy.url().should("include", "/ops-profile");
|
||||
cy.visit("/ops-notification-settings");
|
||||
cy.url().should("include", "/ops-notification-settings");
|
||||
|
||||
cy.visit("/about");
|
||||
cy.url().should("include", "/about");
|
||||
cy.visit("/applog");
|
||||
cy.url().should("include", "/applog");
|
||||
cy.visit("/customize/Widget");
|
||||
cy.url().should("include", "/customize/Widget");
|
||||
cy.visit("/data-list-view/TestWidgetDataList/widget-list/0");
|
||||
cy.url().should(
|
||||
"include",
|
||||
"/data-list-view/TestWidgetDataList/widget-list"
|
||||
);
|
||||
cy.visit("/review/2/1");
|
||||
cy.url().should("include", "/review/2/1");
|
||||
cy.visit("/history/3/1");
|
||||
cy.url().should("include", "/history/3/1");
|
||||
|
||||
//TODO: REPORT
|
||||
|
||||
cy.visit("/widgets");
|
||||
cy.url().should("include", "/widgets");
|
||||
cy.visit("/widgets/0");
|
||||
cy.url().should("include", "/widgets/0");
|
||||
cy.visit("/NOTFOUND");
|
||||
cy.contains("404");
|
||||
|
||||
//LOGOUT MANAGER USER
|
||||
cy.get("[data-cy=navicon]").click();
|
||||
cy.get("[data-cy=logout]").click();
|
||||
cy.url().should("include", "/login");
|
||||
|
||||
//CUSTOMER PAGES
|
||||
cy.get("input[name=username]")
|
||||
.clear()
|
||||
.type("CustomerFull");
|
||||
cy.get("input[name=password]")
|
||||
.clear()
|
||||
.type("CustomerFull{enter}");
|
||||
cy.url().should("include", "/customer-csr-list");
|
||||
cy.visit("/customer-workorders");
|
||||
cy.url().should("include", "/customer-workorders");
|
||||
|
||||
//LOGOUT
|
||||
cy.get("[data-cy=navicon]").click();
|
||||
cy.get("[data-cy=logout]").click();
|
||||
cy.url().should("include", "/login");
|
||||
|
||||
//-----------------------------------------------------
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user