fix: refs #8583 dataCy operator
gitea/salix-front/pipeline/pr-dev This commit is unstable Details

This commit is contained in:
Carlos Satorres 2025-03-07 07:32:53 +01:00
parent 2b3308bde7
commit 4c7653d77d
1 changed files with 3 additions and 8 deletions

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