diff --git a/src/pages/Worker/Card/WorkerPda.vue b/src/pages/Worker/Card/WorkerPda.vue index 976469476..8e971a02c 100644 --- a/src/pages/Worker/Card/WorkerPda.vue +++ b/src/pages/Worker/Card/WorkerPda.vue @@ -71,52 +71,36 @@ function reloadData() { bordered :key="row.id" v-for="row of rows" - class="card q-pt-xs q-mb-sm" + class="card q-px-md q-mb-sm" > - - - - - - - - - - - - + + + + + + +
-.centerCard { - padding: 5%; - width: 100%; - max-width: 70%; - margin: 0 auto; -} -.label { - color: red; -} -.q-field { - height: 65px; +.icon { + display: flex; + justify-content: center; + align-items: center; + margin-top: 2%; + max-width: 4%; } es: + Model: Modelo + Serial number: Número de serie + Current SIM: SIM actual + Add new device: Añadir nuevo dispositivo + PDA deallocated: PDA desasignada Remove PDA: Eliminar PDA Do you want to remove this PDA?: ¿Desea eliminar este PDA? - PDA deallocated: PDA desasignada - SIM serial number: Número de serie de la SIM - Model: Modelo + You can only have one PDA: Solo puedes tener un PDA si no eres autonomo This PDA is already assigned to another user: Este PDA ya está asignado a otro usuario - Add new device: Añadir nuevo dispositivo diff --git a/test/cypress/integration/worker/workerPda.spec.js b/test/cypress/integration/worker/workerPda.spec.js index 9af994a70..e27127202 100644 --- a/test/cypress/integration/worker/workerPda.spec.js +++ b/test/cypress/integration/worker/workerPda.spec.js @@ -14,8 +14,17 @@ describe('WorkerPda', () => { cy.get('.q-notification__message').should('have.text', 'Data created'); }); + it('assign more than 1 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( + ':nth-child(1) > .q-notification__wrapper > .q-notification__content > .q-notification__message' + ).should('have.text', 'You can only have one PDA'); + }); + it('delete pda', () => { - cy.get('.q-card > .q-item > .q-item__section--side > .q-icon').click(); + cy.get('.icon > .q-icon').click(); cy.get( '.q-card__actions > .q-btn--unelevated > .q-btn__content > .block' ).click();