This commit is contained in:
parent
2b3308bde7
commit
4c7653d77d
|
@ -1,11 +1,6 @@
|
||||||
/// <reference types="cypress" />
|
/// <reference types="cypress" />
|
||||||
describe('WorkerOperator', () => {
|
describe('WorkerOperator', () => {
|
||||||
const userId = 1106;
|
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(() => {
|
beforeEach(() => {
|
||||||
cy.viewport(1280, 720);
|
cy.viewport(1280, 720);
|
||||||
cy.login('hr');
|
cy.login('hr');
|
||||||
|
@ -13,10 +8,10 @@ describe('WorkerOperator', () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should fill the operator form', () => {
|
it('should fill the operator form', () => {
|
||||||
cy.dataCy('numberOfWagons').type(nWagons);
|
cy.dataCy('numberOfWagons').type('4');
|
||||||
cy.dataCy('linesLimit').type('6');
|
cy.dataCy('linesLimit').type('6');
|
||||||
cy.get('volumeLimit').type('3');
|
cy.dataCy('volumeLimit').type('3');
|
||||||
cy.get('sizeLimit').type('3');
|
cy.dataCy('sizeLimit').type('3');
|
||||||
cy.saveCard();
|
cy.saveCard();
|
||||||
|
|
||||||
cy.checkNotification('Data saved');
|
cy.checkNotification('Data saved');
|
||||||
|
|
Loading…
Reference in New Issue