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

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

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

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

Loading…
Cancel
Save