fix: refs #8583 tMutual, tNotes, TOperator

This commit is contained in:
Carlos Satorres 2025-02-20 08:21:43 +01:00
parent acc202386e
commit 6c2b8e178f
4 changed files with 40 additions and 1 deletions

View File

@ -177,6 +177,7 @@ watch(
:label="t('worker.operator.sizeLimit')"
v-model="row.sizeLimit"
lazy-rules
data-cy="sizeLimit"
/>
<VnInput
:label="t('worker.operator.isOnReservationMode')"

View File

@ -0,0 +1,18 @@
/// <reference types="cypress" />
describe('WorkerNotes', () => {
const userId = 1106;
const create = '[data-cy="vnTableCreateBtn"]';
const numberOfWagons = '[data-cy="numberOfWagons"]';
const linesLimit = '[data-cy="linesLimit"]';
const volumeLimit = '[data-cy="volumeLimit"]';
const sizeLimit = '[data-cy="sizeLimit"]';
beforeEach(() => {
cy.viewport(1280, 720);
cy.login('developer');
cy.visit(`/#/worker/${userId}/medical`);
});
it('Should load layout', () => {
cy.get('.q-card').should('be.visible');
});
});

View File

@ -0,0 +1,18 @@
/// <reference types="cypress" />
describe('WorkerNotes', () => {
const userId = 1106;
const addNote = '[data-cy="addNote"]';
const numberOfWagons = '[data-cy="numberOfWagons"]';
const linesLimit = '[data-cy="linesLimit"]';
const volumeLimit = '[data-cy="volumeLimit"]';
const sizeLimit = '[data-cy="sizeLimit"]';
beforeEach(() => {
cy.viewport(1280, 720);
cy.login('developer');
cy.visit(`/#/worker/${userId}/notes`);
});
it('Should load layout', () => {
cy.get('.q-card').should('be.visible');
});
});

View File

@ -1,10 +1,11 @@
/// <reference types="cypress" />
describe('WorkerLocker', () => {
describe('WorkerOperator', () => {
const userId = 1106;
const nWagons = '4';
const numberOfWagons = '[data-cy="numberOfWagons"]';
const linesLimit = '[data-cy="linesLimit"]';
const volumeLimit = '[data-cy="volumeLimit"]';
const sizeLimit = '[data-cy="sizeLimit"]';
beforeEach(() => {
cy.viewport(1280, 720);
cy.login('hr');
@ -15,6 +16,7 @@ describe('WorkerLocker', () => {
cy.get(numberOfWagons).type(nWagons);
cy.get(linesLimit).type('6');
cy.get(volumeLimit).type('3');
cy.get(sizeLimit).type('3');
cy.saveCard();
cy.checkNotification('Data saved');