8583-workerE2ETest #1570

Merged
carlossa merged 37 commits from 8583-workerE2ETest into dev 2025-03-10 11:32:58 +00:00
4 changed files with 40 additions and 1 deletions
Showing only changes of commit 6c2b8e178f - Show all commits

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"]';
carlossa marked this conversation as resolved
Review

revisar

revisar
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');