diff --git a/test/cypress/integration/invoiceIn/invoiceInCorrective.spec.js b/test/cypress/integration/invoiceIn/invoiceInCorrective.spec.js index 30ca3b3a1..d85072804 100644 --- a/test/cypress/integration/invoiceIn/invoiceInCorrective.spec.js +++ b/test/cypress/integration/invoiceIn/invoiceInCorrective.spec.js @@ -52,4 +52,11 @@ describe('invoiceInCorrective', () => { cy.dataCy('invoiceInCorrective_reason').should('be.disabled'); }); }); + + it('should show/hide the section if it is a corrective invoice', () => { + cy.visit('/#/invoice-in/1/summary'); + cy.get('[data-cy="InvoiceInCorrective-menu-item"]').should('not.exist'); + cy.clicDescriptorAction(4); + cy.get('[data-cy="InvoiceInCorrective-menu-item"]').should('exist'); + }); });