fix: refs #8600 fixed e2e

This commit is contained in:
Jon Elias 2025-02-24 14:28:34 +01:00
parent a08e944dbb
commit dab2ccde97
3 changed files with 11 additions and 6 deletions

View File

@ -1,5 +1,5 @@
/// <reference types="cypress" />
describe.skip('InvoiceOut summary', () => {
describe('InvoiceOut summary', () => {
const transferInvoice = {
Client: { val: 'employee', type: 'select' },
Type: { val: 'Error in customer data', type: 'select' },

View File

@ -33,8 +33,8 @@ describe('ZoneCalendar', () => {
cy.get(addEventBtn).click();
cy.dataCy('ZoneEventInclusionRangeRadio').click();
cy.get('.flex > .q-gutter-x-sm > :nth-child(1)').click();
cy.get(from).type('01/01/2001');
cy.get(to).type('31/01/2001');
cy.dataCy('From_inputDate').type('01/01/2001');
cy.dataCy('To_inputDate').type('31/01/2001');
cy.get(submitBtn).click();
cy.get(deleteBtn).click();
cy.dataCy('VnConfirm_confirm').click();
@ -47,5 +47,10 @@ describe('ZoneCalendar', () => {
'.q-current-day > .q-calendar-month__day--content > [data-cy="ZoneCalendarDay"]',
).click();
cy.get('.q-mt-lg > .q-btn--standard').click();
cy.get(
'.q-current-day > .q-calendar-month__day--content > [data-cy="ZoneCalendarDay"]',
).click();
cy.get('.q-mt-lg > :nth-child(2)').click();
cy.dataCy('VnConfirm_confirm').click();
});
});

View File

@ -1,6 +1,6 @@
describe('ZoneWarehouse', () => {
const data = {
Warehouse: { val: 'Warehouse One', type: 'select' },
Warehouse: { val: 'Warehouse Two', type: 'select' },
};
const dataError = 'The introduced warehouse already exists';
const saveBtn = '.q-btn--standard > .q-btn__content > .block';
@ -8,12 +8,12 @@ describe('ZoneWarehouse', () => {
beforeEach(() => {
cy.viewport(1280, 720);
cy.login('developer');
cy.visit(`/#/zone/2/warehouses`);
cy.visit(`/#/zone/1/warehouses`);
});
it('should throw an error if the warehouse chosen is already put in the zone', () => {
cy.addBtnClick();
cy.dataCy('Warehouse_select').type('Warehouse Two{enter}');
cy.dataCy('Warehouse_select').type('Warehouse One{enter}');
cy.get(saveBtn).click();
cy.checkNotification(dataError);
});