This commit is contained in:
2020-10-19 23:10:11 +00:00
parent ed2ee8cdeb
commit 458e84eff3
11 changed files with 24 additions and 12 deletions

View File

@@ -13,6 +13,7 @@
:singleSelect="false"
:reload="reload"
v-on:selection-change="handleSelected"
:data-cy="!!$ay.dev ? 'attachTable' : false"
>
</gz-data-table>

View File

@@ -9,6 +9,7 @@
:singleSelect="false"
:reload="reload"
v-on:selection-change="handleSelected"
:data-cy="!!$ay.dev ? 'historyTable' : false"
>
</gz-data-table>
</div>

View File

@@ -9,6 +9,7 @@
:singleSelect="false"
:reload="reload"
v-on:selection-change="handleSelected"
:data-cy="!!$ay.dev ? 'reportTemplatesTable' : false"
>
</gz-data-table>
<v-file-input

View File

@@ -75,6 +75,7 @@
:sort-by="['created']"
:sort-desc="[true]"
:header-props="{ sortByText: $ay.t('Sort') }"
:data-cy="!!$ay.dev ? 'backupTable' : false"
>
<template v-slot:[`item.actions`]="{ item }">
<v-btn icon :href="item.url">

View File

@@ -15,6 +15,7 @@
:sort-by="['created']"
:sort-desc="[true]"
:header-props="{ sortByText: $ay.t('Sort') }"
:data-cy="!!$ay.dev ? 'jobsTable' : false"
>
<template v-slot:[`item.actions`]="{ item }">
<v-btn icon :href="item.url">

View File

@@ -11,6 +11,7 @@
@input="logSelected"
append-outer-icon="$ayiSync"
@click:append-outer="getDataFromApi"
:data-cy="!!$ay.dev ? 'selectedLog' : false"
>
</v-select>
</v-col>

View File

@@ -10,6 +10,7 @@
append-outer-icon="$ayiSync"
@click:append-outer="getDataFromApi"
@input="timePeriodChanged"
:data-cy="!!$ay.dev ? 'selectedTimePeriod' : false"
></v-select>
</v-col>

View File

@@ -54,6 +54,7 @@
form().serverErrors(this, 'smtpDeliveryActive')
"
@change="fieldValueChanged('smtpDeliveryActive')"
:data-cy="!!$ay.dev ? 'smtpDeliveryActive' : false"
></v-checkbox>
</v-col>
<v-col cols="12" sm="6" lg="4" xl="3">

View File

@@ -7,7 +7,7 @@
</v-btn>
</v-col>
<v-col cols="12">
<v-card elevation="4">
<v-card elevation="4" :data-cy="!!$ay.dev ? 'profileCard' : false">
<v-card :height="cardHeight">
<iframe
id="profileFrame"

View File

@@ -13,7 +13,11 @@
:disabled="formState.readOnly"
@change="fieldValueChanged('serverState')"
>
<v-radio :label="$ay.t('ServerStateOpen')" value="Open"></v-radio>
<v-radio
:label="$ay.t('ServerStateOpen')"
value="Open"
:data-cy="!!$ay.dev ? 'serverStateOpen' : false"
></v-radio>
<v-radio
:label="$ay.t('ServerStateOps')"
value="OpsOnly"

View File

@@ -161,43 +161,43 @@ describe("SMOKE", () => {
cy.visit("/adm-report-templates");
cy.url().should("include", "/adm-report-templates");
cy.get("[data-cy=underconstruction]");
cy.get("[data-cy=reportTemplatesTable]");
cy.visit("/adm-attachments");
cy.url().should("include", "/adm-attachments");
cy.get("[data-cy=underconstruction]");
cy.get("[data-cy=attachTable]");
cy.visit("/adm-history");
cy.url().should("include", "/adm-history");
cy.get("[data-cy=underconstruction]");
cy.get("[data-cy=historyTable]");
cy.visit("/ops-backup");
cy.url().should("include", "/ops-backup");
cy.get("[data-cy=underconstruction]");
cy.get("[data-cy=backupTable]");
cy.visit("/ops-server-state");
cy.url().should("include", "/ops-server-state");
cy.get("[data-cy=underconstruction]");
cy.get("[data-cy=serverStateOpen]");
cy.visit("/ops-jobs");
cy.url().should("include", "/ops-jobs");
cy.get("[data-cy=underconstruction]");
cy.get("[data-cy=jobsTable]");
cy.visit("/ops-log");
cy.url().should("include", "/ops-log");
cy.get("[data-cy=underconstruction]");
cy.get("[data-cy=selectedLog]");
cy.visit("/ops-metrics");
cy.url().should("include", "/ops-metrics");
cy.get("[data-cy=underconstruction]");
cy.get("[data-cy=selectedTimePeriod]");
cy.visit("/ops-profile");
cy.url().should("include", "/ops-profile");
cy.get("[data-cy=underconstruction]");
cy.get("[data-cy=profileCard]");
cy.visit("/ops-notification-settings");
cy.url().should("include", "/ops-notification-settings");
cy.get("[data-cy=underconstruction]");
cy.get("[data-cy=smtpDeliveryActive]");
cy.visit("/about");
cy.url().should("include", "/about");