fix: refs #8583 worker mutual e2e
This commit is contained in:
parent
d2d5b5235b
commit
661e35abd8
|
@ -47,6 +47,10 @@ const columns = [
|
|||
url: 'centers',
|
||||
fields: ['id', 'name'],
|
||||
},
|
||||
columnCreate: {
|
||||
component: 'select',
|
||||
url: 'medicalCenters',
|
||||
},
|
||||
},
|
||||
{
|
||||
align: 'left',
|
||||
|
|
|
@ -1,11 +1,13 @@
|
|||
/// <reference types="cypress" />
|
||||
describe('WorkerMutual', () => {
|
||||
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"]';
|
||||
const saveBtn = '.q-mt-lg > .q-btn--standard';
|
||||
const medicalReview = {
|
||||
Date: { val: '01-01-2001', type: 'date' },
|
||||
'Formation Center': { val: '1', type: 'select' },
|
||||
Invoice: { val: '24532' },
|
||||
Amount: { val: '540' },
|
||||
};
|
||||
beforeEach(() => {
|
||||
cy.viewport(1280, 720);
|
||||
cy.login('developer');
|
||||
|
@ -13,7 +15,9 @@ describe('WorkerMutual', () => {
|
|||
cy.get('.q-page-sticky > div > .q-btn').click();
|
||||
});
|
||||
|
||||
it('Should load layout', () => {
|
||||
cy.get('.q-card').should('be.visible');
|
||||
it('should create a medical Review', () => {
|
||||
cy.fillInForm(medicalReview);
|
||||
cy.get(saveBtn).click();
|
||||
cy.checkNotification('Data created');
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue