MT#55492 add data-cy for fax settings, sendfax and destination creation

Change-Id: I885d619c12fbca05dad3cc03968b1b22f9d4837b
pull/18/head
Nico Schedel 3 years ago
parent 7f1094b8dd
commit 48993e8f7b

@ -17,6 +17,7 @@
v-if="value" v-if="value"
v-model="form.destination" v-model="form.destination"
:label="$t('Destination Number')" :label="$t('Destination Number')"
data-cy="sendfax-destinationnumber"
@submit="sendFax" @submit="sendFax"
@error="error" @error="error"
/> />
@ -26,12 +27,14 @@
map-options map-options
:options="$faxQualityOptions" :options="$faxQualityOptions"
:label="$t('Quality')" :label="$t('Quality')"
data-cy="sendfax-quality"
/> />
<q-input <q-input
v-model="form.pageHeader" v-model="form.pageHeader"
clearable clearable
type="text" type="text"
:label="$t('Page Header')" :label="$t('Page Header')"
data-cy="sendfax-pageheader"
:error="$v.form.pageHeader.$error" :error="$v.form.pageHeader.$error"
:error-message="pageHeaderErrorMessage" :error-message="pageHeaderErrorMessage"
@input="$v.form.pageHeader.$touch" @input="$v.form.pageHeader.$touch"
@ -44,6 +47,7 @@
:max-height="100" :max-height="100"
:min-rows="10" :min-rows="10"
:label="$t('Content')" :label="$t('Content')"
data-cy="sendfax-content"
:error="$v.form.data.$error" :error="$v.form.data.$error"
:error-message="dataErrorMessage" :error-message="dataErrorMessage"
@input="$v.form.data.$touch" @input="$v.form.data.$touch"
@ -52,6 +56,7 @@
<csc-input-file <csc-input-file
accept=".pdf,.tif,.tiff,.txt,.ps" accept=".pdf,.tif,.tiff,.txt,.ps"
@file-selected="toggleFileSelected" @file-selected="toggleFileSelected"
data-cy="sendfax-fileinput"
/> />
</q-card-section> </q-card-section>
<q-card-actions> <q-card-actions>
@ -61,6 +66,7 @@
icon="clear" icon="clear"
color="default" color="default"
:label="$t('Cancel')" :label="$t('Cancel')"
data-cy="sendfax-cancel"
@click="resetFormData" @click="resetFormData"
/> />
<q-btn <q-btn
@ -69,6 +75,7 @@
icon="send" icon="send"
:disable="formDisabled" :disable="formDisabled"
:label="$t('Send')" :label="$t('Send')"
data-cy="sendfax-confirm"
@click="sendFax" @click="sendFax"
/> />
</q-card-actions> </q-card-actions>

@ -8,6 +8,7 @@
v-model="data.destination" v-model="data.destination"
icon="email" icon="email"
:label="$t('Destination Email')" :label="$t('Destination Email')"
data-cy="destination-email"
:disable="disabled" :disable="disabled"
:readonly="loading" :readonly="loading"
:error="$v.data.destination.$error" :error="$v.data.destination.$error"
@ -28,6 +29,7 @@
:disable="loading" :disable="loading"
:readonly="loading" :readonly="loading"
:label="$t('File Type')" :label="$t('File Type')"
data-cy="destinaton-filetype"
:options="fileTypeOptions" :options="fileTypeOptions"
@input="updatePropertyData('filetype')" @input="updatePropertyData('filetype')"
/> />
@ -38,18 +40,21 @@
<q-toggle <q-toggle
v-model="data.incoming" v-model="data.incoming"
:label="$t('Deliver Incoming Faxes')" :label="$t('Deliver Incoming Faxes')"
data-cy="destinaton-deliver-incoming"
:disable="loading" :disable="loading"
@input="updatePropertyData('incoming')" @input="updatePropertyData('incoming')"
/> />
<q-toggle <q-toggle
v-model="data.outgoing" v-model="data.outgoing"
:label="$t('Deliver Outgoing Faxes')" :label="$t('Deliver Outgoing Faxes')"
data-cy="destinaton-deliver-outgoing"
:disable="loading" :disable="loading"
@input="updatePropertyData('outgoing')" @input="updatePropertyData('outgoing')"
/> />
<q-toggle <q-toggle
v-model="data.status" v-model="data.status"
:label="$t('Receive Reports')" :label="$t('Receive Reports')"
data-cy="destinaton-receive-reports"
:disable="loading" :disable="loading"
@input="updatePropertyData('status')" @input="updatePropertyData('status')"
/> />
@ -65,6 +70,7 @@
icon="clear" icon="clear"
:disable="loading" :disable="loading"
:label="$t('Cancel')" :label="$t('Cancel')"
data-cy="destinaton-cancel-creation"
@click="cancel()" @click="cancel()"
/> />
<q-btn <q-btn
@ -74,6 +80,7 @@
:loading="loading" :loading="loading"
:disable="$v.data.$invalid || loading" :disable="$v.data.$invalid || loading"
:label="$t('Create destination')" :label="$t('Create destination')"
data-cy="destinaton-creation-confirm"
@click="save()" @click="save()"
/> />
</div> </div>

@ -9,6 +9,7 @@
<q-toggle <q-toggle
v-model="faxToMailSettings.active" v-model="faxToMailSettings.active"
:label="$t('Active')" :label="$t('Active')"
data-cy="faxtomail-enable"
:disable="!dataLoaded" :disable="!dataLoaded"
@input="setChangedData('active', !faxServerSettings.active)" @input="setChangedData('active', !faxServerSettings.active)"
/> />
@ -27,6 +28,7 @@
<csc-input-saveable <csc-input-saveable
v-model.trim="faxToMailSettings.name" v-model.trim="faxToMailSettings.name"
:label="$t('Name in Fax Header for Sendfax')" :label="$t('Name in Fax Header for Sendfax')"
data-cy="sendfax-faxheader-name"
:disable="!dataLoaded" :disable="!dataLoaded"
:loading="loadingFaxServerSettings" :loading="loadingFaxServerSettings"
:value-changed="nameChanged" :value-changed="nameChanged"
@ -40,6 +42,7 @@
<q-toggle <q-toggle
v-model="faxToMailSettings.t38" v-model="faxToMailSettings.t38"
:label="$t('T38')" :label="$t('T38')"
data-cy="faxtomail-t38"
:disable="!dataLoaded" :disable="!dataLoaded"
@input="setChangedData('t38', !faxServerSettings.t38)" @input="setChangedData('t38', !faxServerSettings.t38)"
/> />
@ -58,6 +61,7 @@
<q-toggle <q-toggle
v-model="faxToMailSettings.ecm" v-model="faxToMailSettings.ecm"
:label="$t('ECM')" :label="$t('ECM')"
data-cy="faxtomail-ecm"
:disable="!dataLoaded" :disable="!dataLoaded"
@input="setChangedData('ecm', !faxServerSettings.ecm)" @input="setChangedData('ecm', !faxServerSettings.ecm)"
/> />
@ -85,6 +89,7 @@
flat flat
color="primary" color="primary"
icon="add" icon="add"
data-cy="destination-add"
:disable="!dataLoaded || showAddNewDestination" :disable="!dataLoaded || showAddNewDestination"
@click="openAddNewDestination" @click="openAddNewDestination"
> >

@ -26,6 +26,7 @@
flat flat
dense dense
icon="apps" icon="apps"
data-cy="appsicon-more"
color="primary" color="primary"
> >
<csc-popup-menu> <csc-popup-menu>
@ -33,6 +34,7 @@
icon="description" icon="description"
color="primary" color="primary"
:label="$t('Send Fax')" :label="$t('Send Fax')"
data-cy="send-fax"
@click="showSendFax()" @click="showSendFax()"
/> />
</csc-popup-menu> </csc-popup-menu>

Loading…
Cancel
Save