refactor: refs #8581 remove unnecessary API intercepts in invoiceInDescriptor tests

This commit is contained in:
Jorge Penadés 2025-03-06 11:08:15 +01:00
parent 664b167b2e
commit dfc95d94cb
1 changed files with 0 additions and 4 deletions
test/cypress/integration/invoiceIn

View File

@ -74,8 +74,6 @@ describe('InvoiceInDescriptor', () => {
});
it('should navigate to the invoiceIn list', () => {
cy.intercept('GET', /api\/InvoiceIns\/1/).as('getCard');
cy.wait('@getCard');
cy.clicDescriptorAction(3);
cy.url().should('to.match', /invoice-in\/list\?table=\{.*supplierFk.+\}/);
});
@ -112,9 +110,7 @@ describe('InvoiceInDescriptor', () => {
describe('link', () => {
it('should open the supplier descriptor popup', () => {
cy.visit('/#/invoice-in/1/summary');
cy.intercept('GET', /InvoiceIns\/1.*/).as('getInvoice');
cy.intercept('GET', /Suppliers\/\d+/).as('getSupplier');
cy.wait('@getInvoice');
cy.dataCy('invoiceInDescriptor_supplier').then(($el) => {
const alias = $el.text().trim();