forked from verdnatura/salix-front
Merge branch '8410-improveModuleSearchbar' of https://gitea.verdnatura.es/verdnatura/salix-front into 8410-improveModuleSearchbar
This commit is contained in:
commit
39d6e818f5
|
@ -226,6 +226,7 @@ const createInvoiceInCorrection = async () => {
|
||||||
v-ripple
|
v-ripple
|
||||||
clickable
|
clickable
|
||||||
@click="triggerMenu('correct')"
|
@click="triggerMenu('correct')"
|
||||||
|
data-cy="createCorrectiveItem"
|
||||||
>
|
>
|
||||||
<QItemSection
|
<QItemSection
|
||||||
>{{ t('invoiceIn.descriptorMenu.createCorrective') }}...</QItemSection
|
>{{ t('invoiceIn.descriptorMenu.createCorrective') }}...</QItemSection
|
||||||
|
|
|
@ -1,8 +1,5 @@
|
||||||
/// <reference types="cypress" />
|
/// <reference types="cypress" />
|
||||||
// https://redmine.verdnatura.es/issues/8419
|
describe('InvoiceInCorrective', () => {
|
||||||
describe.skip('InvoiceInCorrective', () => {
|
|
||||||
const createCorrective = '.q-menu > .q-list > :nth-child(6) > .q-item__section';
|
|
||||||
const rectificativeSection = '.q-drawer-container .q-list > a:nth-child(6)';
|
|
||||||
const saveDialog = '.q-card > .q-card__actions > .q-btn--standard ';
|
const saveDialog = '.q-card > .q-card__actions > .q-btn--standard ';
|
||||||
|
|
||||||
it('should create a correcting invoice', () => {
|
it('should create a correcting invoice', () => {
|
||||||
|
@ -13,13 +10,13 @@ describe.skip('InvoiceInCorrective', () => {
|
||||||
|
|
||||||
cy.openActionsDescriptor();
|
cy.openActionsDescriptor();
|
||||||
|
|
||||||
cy.get(createCorrective).click();
|
cy.dataCy('createCorrectiveItem').click();
|
||||||
cy.get(saveDialog).click();
|
cy.get(saveDialog).click();
|
||||||
cy.wait('@corrective').then((interception) => {
|
cy.wait('@corrective').then((interception) => {
|
||||||
const correctingId = interception.response.body;
|
const correctingId = interception.response.body;
|
||||||
cy.url().should('include', `/invoice-in/${correctingId}/summary`);
|
cy.url().should('include', `/invoice-in/${correctingId}/summary`);
|
||||||
|
cy.visit(`/#/invoice-in/${correctingId}/corrective`);
|
||||||
});
|
});
|
||||||
cy.get(rectificativeSection).click();
|
|
||||||
cy.get('tbody > tr:visible').should('have.length', 1);
|
cy.get('tbody > tr:visible').should('have.length', 1);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -14,17 +14,16 @@ describe('ZoneWarehouse', () => {
|
||||||
|
|
||||||
it('should throw an error if the warehouse chosen is already put in the zone', () => {
|
it('should throw an error if the warehouse chosen is already put in the zone', () => {
|
||||||
cy.addBtnClick();
|
cy.addBtnClick();
|
||||||
cy.selectOption('[data-cy="Warehouse_select"]', 'Warehouse Two');
|
cy.dataCy('Warehouse_select').type('Warehouse Two{enter}');
|
||||||
cy.get(saveBtn).click();
|
cy.get(saveBtn).click();
|
||||||
cy.checkNotification(dataError);
|
cy.checkNotification(dataError);
|
||||||
});
|
});
|
||||||
// https://redmine.verdnatura.es/issues/8425
|
|
||||||
it.skip('should create & remove a warehouse', () => {
|
it('should create & remove a warehouse', () => {
|
||||||
cy.addBtnClick();
|
cy.addBtnClick();
|
||||||
cy.fillInForm(data);
|
cy.fillInForm(data);
|
||||||
cy.get(saveBtn).click();
|
cy.get(saveBtn).click();
|
||||||
cy.get('.q-mt-lg > .q-btn--standard').click();
|
cy.get('.q-mt-lg > .q-btn--standard').click();
|
||||||
|
|
||||||
cy.get('tbody > :nth-child(2) > :nth-child(2) > .q-icon').click();
|
cy.get('tbody > :nth-child(2) > :nth-child(2) > .q-icon').click();
|
||||||
cy.get('[title="Confirm"]').click();
|
cy.get('[title="Confirm"]').click();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue