test: refs #8441 update vehicle model name and ensure summary header visibility in vehicle list tests
gitea/salix-front/pipeline/pr-dev This commit is unstable Details

This commit is contained in:
Jose Antonio Tubau 2025-03-17 11:33:08 +01:00
parent 51e42a6dc8
commit a942b6648c
2 changed files with 3 additions and 3 deletions

View File

@ -10,7 +10,7 @@ describe('Vehicle list', () => {
const data = {
'Nº Plate': { val: '9465-LPA' },
'Trade Mark': { val: 'WAYNE INDUSTRIES' },
Model: { val: 'BATREMOLQUE' },
Model: { val: 'BATHAUL' },
Type: { val: 'remolque', type: 'select' },
Warehouse: { val: 'Warehouse One', type: 'select' },
Country: { val: 'Portugal', type: 'select' },
@ -40,8 +40,8 @@ describe('Vehicle list', () => {
cy.dataCy(selectors.saveFormBtn).should('be.visible').click();
cy.checkNotification('Data created');
cy.get(selectors.summaryHeader).should('contain', expected);
cy.url().should('include', summaryUrl);
cy.get(selectors.summaryHeader).should('contain', expected);
});
it('should open summary by clicking a vehicle', () => {

View File

@ -184,7 +184,7 @@ Cypress.Commands.add('fillInForm', (obj, form = '.q-form > .q-card') => {
cy.get('.q-time .q-time__link').contains(val.x).click();
break;
default:
cy.wrap(el).type(val);
cy.wrap(el).type(`{selectall}${val}`, { delay: 0 });
break;
}
});