refactor: refs #8581 remove unnecessary API intercepts in invoiceInDescriptor tests
This commit is contained in:
parent
664b167b2e
commit
dfc95d94cb
test/cypress/integration/invoiceIn
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue