25 lines
749 B
JavaScript
25 lines
749 B
JavaScript
/// <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');
|
|
cy.visit(`/#/worker/${userId}/operator`);
|
|
});
|
|
|
|
it('should fill the operator form', () => {
|
|
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');
|
|
});
|
|
});
|