fix: delete translates
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
This commit is contained in:
parent
c24062fccb
commit
108533d475
|
@ -45,7 +45,7 @@ const deallocatePDA = async (deviceProductionFk) => {
|
|||
<template>
|
||||
<QPage class="column items-center q-pa-md centerCard">
|
||||
<FetchData
|
||||
url="workers/getAvailablePDAs"
|
||||
url="workers/getAvailablePda"
|
||||
@on-fetch="(data) => (deviceProductions = data)"
|
||||
auto-load
|
||||
/>
|
||||
|
@ -83,7 +83,7 @@ const deallocatePDA = async (deviceProductionFk) => {
|
|||
<span>
|
||||
{{ row?.deviceProduction?.modelFk }}
|
||||
</span>
|
||||
<span>{{ t('Serial number') }}: </span>
|
||||
<span>{{ t('SIM serial number') }}: </span>
|
||||
<span>
|
||||
{{
|
||||
row?.deviceProduction?.serialNumber
|
||||
|
@ -138,6 +138,7 @@ const deallocatePDA = async (deviceProductionFk) => {
|
|||
:options="deviceProductions"
|
||||
option-label="id"
|
||||
option-value="id"
|
||||
id="deviceProductionFk"
|
||||
hide-selected
|
||||
>
|
||||
<template #option="scope">
|
||||
|
@ -157,6 +158,7 @@ const deallocatePDA = async (deviceProductionFk) => {
|
|||
<VnInput
|
||||
v-model="data.simSerialNumber"
|
||||
:label="t('SIM serial number')"
|
||||
id="simSerialNumber"
|
||||
use-input
|
||||
/>
|
||||
</VnRow>
|
||||
|
@ -187,9 +189,8 @@ const deallocatePDA = async (deviceProductionFk) => {
|
|||
<i18n>
|
||||
es:
|
||||
PDA deallocated: PDA desasignada
|
||||
Current SIM: SIM actual
|
||||
SIM serial number: Número de serie de la SIM
|
||||
Model: Modelo
|
||||
Serial number: Número de serie
|
||||
This PDA is already assigned to another user: Este PDA ya está asignado a otro usuario
|
||||
Add new device: Añadir nuevo dispositivo
|
||||
</i18n>
|
||||
|
|
|
@ -0,0 +1,21 @@
|
|||
describe('AgencyWorkCenter', () => {
|
||||
const deviceProductionField =
|
||||
'.vn-row > .q-field > .q-field__inner > .q-field__control > .q-field__control-container';
|
||||
beforeEach(() => {
|
||||
cy.viewport(1920, 1080);
|
||||
cy.login('developer');
|
||||
cy.visit(`/#/worker/1110/pda`);
|
||||
});
|
||||
|
||||
it('assign pda', () => {
|
||||
cy.get('.q-page-sticky > div > .q-btn > .q-btn__content > .q-icon').click();
|
||||
cy.get(deviceProductionField).type('{downArrow}{enter}');
|
||||
cy.get('.vn-row > #simSerialNumber').type('123{enter}');
|
||||
cy.get('.q-notification__message').should('have.text', 'Data created');
|
||||
});
|
||||
|
||||
it('delete pda', () => {
|
||||
cy.get('.q-card > .q-item > .q-item__section--side > .q-icon').click();
|
||||
cy.get('.q-notification__message').should('have.text', 'PDA deallocated');
|
||||
});
|
||||
});
|
Loading…
Reference in New Issue