fix: refs #8583 tMutual, tNotes, TOperator
This commit is contained in:
parent
acc202386e
commit
6c2b8e178f
|
@ -177,6 +177,7 @@ watch(
|
||||||
:label="t('worker.operator.sizeLimit')"
|
:label="t('worker.operator.sizeLimit')"
|
||||||
v-model="row.sizeLimit"
|
v-model="row.sizeLimit"
|
||||||
lazy-rules
|
lazy-rules
|
||||||
|
data-cy="sizeLimit"
|
||||||
/>
|
/>
|
||||||
<VnInput
|
<VnInput
|
||||||
:label="t('worker.operator.isOnReservationMode')"
|
:label="t('worker.operator.isOnReservationMode')"
|
||||||
|
|
|
@ -0,0 +1,18 @@
|
||||||
|
/// <reference types="cypress" />
|
||||||
|
describe('WorkerNotes', () => {
|
||||||
|
const userId = 1106;
|
||||||
|
const create = '[data-cy="vnTableCreateBtn"]';
|
||||||
|
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('developer');
|
||||||
|
cy.visit(`/#/worker/${userId}/medical`);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('Should load layout', () => {
|
||||||
|
cy.get('.q-card').should('be.visible');
|
||||||
|
});
|
||||||
|
});
|
|
@ -0,0 +1,18 @@
|
||||||
|
/// <reference types="cypress" />
|
||||||
|
describe('WorkerNotes', () => {
|
||||||
|
const userId = 1106;
|
||||||
|
const addNote = '[data-cy="addNote"]';
|
||||||
|
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('developer');
|
||||||
|
cy.visit(`/#/worker/${userId}/notes`);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('Should load layout', () => {
|
||||||
|
cy.get('.q-card').should('be.visible');
|
||||||
|
});
|
||||||
|
});
|
|
@ -1,10 +1,11 @@
|
||||||
/// <reference types="cypress" />
|
/// <reference types="cypress" />
|
||||||
describe('WorkerLocker', () => {
|
describe('WorkerOperator', () => {
|
||||||
const userId = 1106;
|
const userId = 1106;
|
||||||
const nWagons = '4';
|
const nWagons = '4';
|
||||||
const numberOfWagons = '[data-cy="numberOfWagons"]';
|
const numberOfWagons = '[data-cy="numberOfWagons"]';
|
||||||
const linesLimit = '[data-cy="linesLimit"]';
|
const linesLimit = '[data-cy="linesLimit"]';
|
||||||
const volumeLimit = '[data-cy="volumeLimit"]';
|
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');
|
||||||
|
@ -15,6 +16,7 @@ describe('WorkerLocker', () => {
|
||||||
cy.get(numberOfWagons).type(nWagons);
|
cy.get(numberOfWagons).type(nWagons);
|
||||||
cy.get(linesLimit).type('6');
|
cy.get(linesLimit).type('6');
|
||||||
cy.get(volumeLimit).type('3');
|
cy.get(volumeLimit).type('3');
|
||||||
|
cy.get(sizeLimit).type('3');
|
||||||
cy.saveCard();
|
cy.saveCard();
|
||||||
|
|
||||||
cy.checkNotification('Data saved');
|
cy.checkNotification('Data saved');
|
||||||
|
|
Loading…
Reference in New Issue