fix: delete translates
gitea/salix-front/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Pablo Natek 2024-05-16 12:57:35 +02:00
parent c24062fccb
commit 108533d475
2 changed files with 26 additions and 4 deletions

View File

@ -45,7 +45,7 @@ const deallocatePDA = async (deviceProductionFk) => {
<template> <template>
<QPage class="column items-center q-pa-md centerCard"> <QPage class="column items-center q-pa-md centerCard">
<FetchData <FetchData
url="workers/getAvailablePDAs" url="workers/getAvailablePda"
@on-fetch="(data) => (deviceProductions = data)" @on-fetch="(data) => (deviceProductions = data)"
auto-load auto-load
/> />
@ -83,7 +83,7 @@ const deallocatePDA = async (deviceProductionFk) => {
<span> <span>
{{ row?.deviceProduction?.modelFk }}&nbsp; {{ row?.deviceProduction?.modelFk }}&nbsp;
</span> </span>
<span>{{ t('Serial number') }}: </span> <span>{{ t('SIM serial number') }}: </span>
<span> <span>
{{ {{
row?.deviceProduction?.serialNumber row?.deviceProduction?.serialNumber
@ -138,6 +138,7 @@ const deallocatePDA = async (deviceProductionFk) => {
:options="deviceProductions" :options="deviceProductions"
option-label="id" option-label="id"
option-value="id" option-value="id"
id="deviceProductionFk"
hide-selected hide-selected
> >
<template #option="scope"> <template #option="scope">
@ -157,6 +158,7 @@ const deallocatePDA = async (deviceProductionFk) => {
<VnInput <VnInput
v-model="data.simSerialNumber" v-model="data.simSerialNumber"
:label="t('SIM serial number')" :label="t('SIM serial number')"
id="simSerialNumber"
use-input use-input
/> />
</VnRow> </VnRow>
@ -187,9 +189,8 @@ const deallocatePDA = async (deviceProductionFk) => {
<i18n> <i18n>
es: es:
PDA deallocated: PDA desasignada PDA deallocated: PDA desasignada
Current SIM: SIM actual SIM serial number: Número de serie de la SIM
Model: Modelo Model: Modelo
Serial number: Número de serie
This PDA is already assigned to another user: Este PDA ya está asignado a otro usuario This PDA is already assigned to another user: Este PDA ya está asignado a otro usuario
Add new device: Añadir nuevo dispositivo Add new device: Añadir nuevo dispositivo
</i18n> </i18n>

View File

@ -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');
});
});