fix(vehicleList.spec): refs #8441 ensure URL includes vehicle ID after adding a new vehicle

This commit is contained in:
Jose Antonio Tubau 2025-04-11 10:39:59 +02:00
parent 4b9e533ccd
commit d86fb54917
1 changed files with 4 additions and 1 deletions

View File

@ -42,9 +42,12 @@ describe('Vehicle list', () => {
cy.wait('@postRequest').then((interception) => {
expect(interception.response.statusCode).to.eq(200);
cy.url().should(
'include',
`vehicle/${interception.response.body.id}/summary`,
);
});
cy.location().should('match', summaryUrlRegex);
cy.containContent(selectors.descriptorTitle, expected);
});