fix(vehicleList.spec): refs #8441 ensure URL includes vehicle ID after adding a new vehicle
This commit is contained in:
parent
4b9e533ccd
commit
d86fb54917
|
@ -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);
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue