20 lines
536 B
JavaScript
20 lines
536 B
JavaScript
/// <reference types="cypress" />
|
|
describe('WorkerOperator', () => {
|
|
const userId = 1106;
|
|
beforeEach(() => {
|
|
cy.viewport(1280, 720);
|
|
cy.login('hr');
|
|
cy.visit(`/#/worker/${userId}/operator`);
|
|
});
|
|
|
|
it('should fill the operator form', () => {
|
|
cy.dataCy('numberOfWagons').type('4');
|
|
cy.dataCy('linesLimit').type('6');
|
|
cy.dataCy('volumeLimit').type('3');
|
|
cy.dataCy('sizeLimit').type('3');
|
|
cy.saveCard();
|
|
|
|
cy.checkNotification('Data saved');
|
|
});
|
|
});
|