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
gitea/salix-front/pipeline/pr-dev This commit is unstable
Details
This commit is contained in:
parent
51e42a6dc8
commit
a942b6648c
|
@ -10,7 +10,7 @@ describe('Vehicle list', () => {
|
||||||
const data = {
|
const data = {
|
||||||
'Nº Plate': { val: '9465-LPA' },
|
'Nº Plate': { val: '9465-LPA' },
|
||||||
'Trade Mark': { val: 'WAYNE INDUSTRIES' },
|
'Trade Mark': { val: 'WAYNE INDUSTRIES' },
|
||||||
Model: { val: 'BATREMOLQUE' },
|
Model: { val: 'BATHAUL' },
|
||||||
Type: { val: 'remolque', type: 'select' },
|
Type: { val: 'remolque', type: 'select' },
|
||||||
Warehouse: { val: 'Warehouse One', type: 'select' },
|
Warehouse: { val: 'Warehouse One', type: 'select' },
|
||||||
Country: { val: 'Portugal', type: 'select' },
|
Country: { val: 'Portugal', type: 'select' },
|
||||||
|
@ -40,8 +40,8 @@ describe('Vehicle list', () => {
|
||||||
cy.dataCy(selectors.saveFormBtn).should('be.visible').click();
|
cy.dataCy(selectors.saveFormBtn).should('be.visible').click();
|
||||||
|
|
||||||
cy.checkNotification('Data created');
|
cy.checkNotification('Data created');
|
||||||
cy.get(selectors.summaryHeader).should('contain', expected);
|
|
||||||
cy.url().should('include', summaryUrl);
|
cy.url().should('include', summaryUrl);
|
||||||
|
cy.get(selectors.summaryHeader).should('contain', expected);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should open summary by clicking a vehicle', () => {
|
it('should open summary by clicking a vehicle', () => {
|
||||||
|
|
|
@ -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();
|
cy.get('.q-time .q-time__link').contains(val.x).click();
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
cy.wrap(el).type(val);
|
cy.wrap(el).type(`{selectall}${val}`, { delay: 0 });
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue