8583-workerE2ETest #1570

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

View File

@ -1,11 +1,6 @@
/// <reference types="cypress" />
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');
@ -13,10 +8,10 @@ describe('WorkerOperator', () => {
});
it('should fill the operator form', () => {
cy.dataCy('numberOfWagons').type(nWagons);
cy.dataCy('numberOfWagons').type('4');
cy.dataCy('linesLimit').type('6');
cy.get('volumeLimit').type('3');
cy.get('sizeLimit').type('3');
cy.dataCy('volumeLimit').type('3');
cy.dataCy('sizeLimit').type('3');
cy.saveCard();
cy.checkNotification('Data saved');