salix-front/test/cypress/integration/worker/workerMutual.spec.js

24 lines
698 B
JavaScript

/// <reference types="cypress" />
describe('WorkerMutual', () => {
const userId = 1106;
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');
cy.visit(`/#/worker/${userId}/medical`);
cy.addCard();
});
it('should create a medical Review', () => {
cy.fillInForm(medicalReview);
cy.get(saveBtn).click();
cy.checkNotification('Data created');
});
});