All forms as of today are exercised by "smoke" test and this commit

This commit is contained in:
2020-10-20 16:28:46 +00:00
parent bb33521216
commit 83891eb3ac
8 changed files with 45 additions and 4 deletions

View File

@@ -18,6 +18,7 @@
show-size show-size
:label="$ay.t('SmallLogo')" :label="$ay.t('SmallLogo')"
:rules="rules" :rules="rules"
:data-cy="!!$ay.dev ? 'uploadSmall' : false"
></v-file-input> ></v-file-input>
<v-btn color="primary" text @click="remove('small')">{{ <v-btn color="primary" text @click="remove('small')">{{
$ay.t("Delete") $ay.t("Delete")

View File

@@ -17,6 +17,7 @@
group group
@change="onViewChange" @change="onViewChange"
mandatory mandatory
:data-cy="!!$ay.dev ? 'viewChange' : false"
> >
<v-btn value="properties"> <v-btn value="properties">
{{ $ay.t("ReportEditorProperties") }} {{ $ay.t("ReportEditorProperties") }}

View File

@@ -13,6 +13,7 @@
:sort-by="['name']" :sort-by="['name']"
show-select show-select
:header-props="{ sortByText: $ay.t('Sort') }" :header-props="{ sortByText: $ay.t('Sort') }"
:data-cy="!!$ay.dev ? 'custUsersTable' : false"
> >
<template v-slot:[`item.active`]="{ item }"> <template v-slot:[`item.active`]="{ item }">
<v-simple-checkbox v-model="item.active" disabled></v-simple-checkbox> <v-simple-checkbox v-model="item.active" disabled></v-simple-checkbox>

View File

@@ -3,12 +3,17 @@
<v-row> <v-row>
<gz-error :errorBoxMessage="formState.errorBoxMessage"></gz-error> <gz-error :errorBoxMessage="formState.errorBoxMessage"></gz-error>
<v-col rows="12"> <v-col rows="12">
<div class="text-center text-h4" v-if="obj.length == 0"> <div
class="text-center text-h4"
v-if="obj.length == 0"
:data-cy="!!$ay.dev ? 'notifications' : false"
>
<span>{{ $ay.t("NoData") }}</span> <span>{{ $ay.t("NoData") }}</span>
</div> </div>
<v-timeline <v-timeline
:dense="$vuetify.breakpoint.smAndDown" :dense="$vuetify.breakpoint.smAndDown"
v-if="obj.length > 0" v-if="obj.length > 0"
:data-cy="!!$ay.dev ? 'notifications' : false"
> >
<v-timeline-item <v-timeline-item
v-for="i in obj" v-for="i in obj"

View File

@@ -14,6 +14,7 @@
:label="$ay.t('UserList')" :label="$ay.t('UserList')"
ref="userPickList" ref="userPickList"
@input="checkSave()" @input="checkSave()"
:data-cy="!!$ay.dev ? 'pickListSelectedUserId' : false"
></gz-pick-list> </v-col ></gz-pick-list> </v-col
><v-col cols="1"> ><v-col cols="1">
<v-btn @click="addSelected()"> <v-btn @click="addSelected()">

View File

@@ -14,6 +14,7 @@
:disable-filtering="true" :disable-filtering="true"
hide-default-footer hide-default-footer
:header-props="{ sortByText: $ay.t('Sort') }" :header-props="{ sortByText: $ay.t('Sort') }"
:data-cy="!!$ay.dev ? 'notifyQueueTable' : false"
> >
<template v-slot:[`item.actions`]="{ item }"> <template v-slot:[`item.actions`]="{ item }">
<v-icon small class="mr-2" @click="deleteItem(item)"> <v-icon small class="mr-2" @click="deleteItem(item)">

View File

@@ -2,7 +2,7 @@
<v-row v-if="this.formState.ready" align="start" justify="center"> <v-row v-if="this.formState.ready" align="start" justify="center">
<gz-error :errorBoxMessage="formState.errorBoxMessage"></gz-error> <gz-error :errorBoxMessage="formState.errorBoxMessage"></gz-error>
<v-col cols="12" md="7"> <v-col cols="12" md="7">
<v-card> <v-card :data-cy="!!$ay.dev ? 'configCard' : false">
<v-list two-line> <v-list two-line>
<v-list-item> <v-list-item>
<v-list-item-content> <v-list-item-content>

View File

@@ -47,6 +47,18 @@ describe("SMOKE", () => {
cy.url().should("include", "/home-notify-subscriptions"); cy.url().should("include", "/home-notify-subscriptions");
cy.get("[data-cy=subsTable]"); cy.get("[data-cy=subsTable]");
cy.visit("/home-notify-subscriptions/0");
cy.url().should("include", "/home-notify-subscriptions/0");
cy.get("[data-cy=eventType]");
cy.visit("/home-notifications");
cy.url().should("include", "/home-notifications");
cy.get("[data-cy=notifications]");
cy.visit("/home-notify-direct");
cy.url().should("include", "/home-notify-direct");
cy.get("[data-cy=pickListSelectedUserId]");
cy.visit("/cust-customers"); cy.visit("/cust-customers");
cy.url().should("include", "/cust-customers"); cy.url().should("include", "/cust-customers");
cy.get("[data-cy=underconstruction]"); cy.get("[data-cy=underconstruction]");
@@ -55,6 +67,10 @@ describe("SMOKE", () => {
cy.url().should("include", "/cust-headoffices"); cy.url().should("include", "/cust-headoffices");
cy.get("[data-cy=underconstruction]"); cy.get("[data-cy=underconstruction]");
cy.visit("/cust-users");
cy.url().should("include", "/cust-users");
cy.get("[data-cy=custUsersTable]");
cy.visit("/svc-schedule"); cy.visit("/svc-schedule");
cy.url().should("include", "/svc-schedule"); cy.url().should("include", "/svc-schedule");
cy.get("[data-cy=underconstruction]"); cy.get("[data-cy=underconstruction]");
@@ -143,6 +159,10 @@ describe("SMOKE", () => {
cy.url().should("include", "/adm-global-select-templates"); cy.url().should("include", "/adm-global-select-templates");
cy.get("[data-cy=selectTemplate]"); cy.get("[data-cy=selectTemplate]");
cy.visit("/adm-global-logo");
cy.url().should("include", "/adm-global-logo");
cy.get("[data-cy=uploadSmall]");
cy.visit("/adm-license"); cy.visit("/adm-license");
cy.url().should("include", "/adm-license"); cy.url().should("include", "/adm-license");
cy.get("[data-cy=licenseCard]"); cy.get("[data-cy=licenseCard]");
@@ -163,6 +183,10 @@ describe("SMOKE", () => {
cy.url().should("include", "/adm-report-templates"); cy.url().should("include", "/adm-report-templates");
cy.get("[data-cy=reportTemplatesTable]"); cy.get("[data-cy=reportTemplatesTable]");
cy.visit("/report-edit/1");
cy.url().should("include", "/report-edit/1");
cy.get("[data-cy=viewChange]");
cy.visit("/adm-attachments"); cy.visit("/adm-attachments");
cy.url().should("include", "/adm-attachments"); cy.url().should("include", "/adm-attachments");
cy.get("[data-cy=attachTable]"); cy.get("[data-cy=attachTable]");
@@ -199,6 +223,14 @@ describe("SMOKE", () => {
cy.url().should("include", "/ops-notification-settings"); cy.url().should("include", "/ops-notification-settings");
cy.get("[data-cy=smtpDeliveryActive]"); cy.get("[data-cy=smtpDeliveryActive]");
cy.visit("/ops-notify-queue");
cy.url().should("include", "/ops-notify-queue");
cy.get("[data-cy=notifyQueueTable]");
cy.visit("/ops-view-configuration");
cy.url().should("include", "/ops-view-configuration");
cy.get("[data-cy=configCard]");
cy.visit("/about"); cy.visit("/about");
cy.url().should("include", "/about"); cy.url().should("include", "/about");
cy.get("[data-cy=versionCard]"); cy.get("[data-cy=versionCard]");
@@ -226,8 +258,6 @@ describe("SMOKE", () => {
cy.url().should("include", "/history/3/1"); cy.url().should("include", "/history/3/1");
cy.get("[data-cy=timeLine]"); cy.get("[data-cy=timeLine]");
//TODO: REPORT
cy.visit("/widgets"); cy.visit("/widgets");
cy.url().should("include", "/widgets"); cy.url().should("include", "/widgets");
cy.get("[data-cy=widgetsTable]"); cy.get("[data-cy=widgetsTable]");
@@ -251,6 +281,7 @@ describe("SMOKE", () => {
cy.get("input[name=password]") cy.get("input[name=password]")
.clear() .clear()
.type("CustomerFull{enter}"); .type("CustomerFull{enter}");
cy.url().should("include", "/customer-csr-list"); cy.url().should("include", "/customer-csr-list");
cy.get("[data-cy=underconstruction]"); cy.get("[data-cy=underconstruction]");