test: refs #8441 ensure redirect completed before check summary title
gitea/salix-front/pipeline/pr-dev This commit is unstable Details

This commit is contained in:
Jose Antonio Tubau 2025-03-17 12:16:13 +01:00
parent a942b6648c
commit b0dd3879d0
1 changed files with 4 additions and 0 deletions

View File

@ -52,6 +52,7 @@ describe('Vehicle Invoice In', () => {
cy.get(selectors.firstRowSupplier).click();
cy.containContent(selectors.descriptorTitle, data.supplier);
cy.get(selectors.descriptorGoToSummaryBtn).click();
cy.url().should('include', '/supplier/1/summary');
cy.containContent(selectors.summaryTitle, data.supplier);
});
@ -61,6 +62,7 @@ describe('Vehicle Invoice In', () => {
cy.get(selectors.descriptorOpenSummaryBtn).click();
cy.containContent(selectors.summaryTitle, data.supplier);
cy.get(selectors.SummaryGoToSummaryBtn).click();
cy.url().should('include', '/supplier/1/summary');
cy.containContent(selectors.summaryTitle, data.supplier);
});
});
@ -70,6 +72,7 @@ describe('Vehicle Invoice In', () => {
cy.get(selectors.firstRowInvoice).click();
cy.containContent(selectors.descriptorTitle, data.invoice);
cy.get(selectors.descriptorGoToSummaryBtn).click();
cy.url().should('include', '/invoice-in/1/summary');
cy.containContent(selectors.summaryTitle, data.supplier);
});
@ -79,6 +82,7 @@ describe('Vehicle Invoice In', () => {
cy.get(selectors.descriptorOpenSummaryBtn).click();
cy.containContent(selectors.summaryTitle, data.supplier);
cy.get(selectors.SummaryGoToSummaryBtn).click();
cy.url().should('include', '/invoice-in/1/summary');
cy.containContent(selectors.summaryTitle, data.supplier);
});
});