0
0
Fork 0

fix: refs #7354 e2e tests

This commit is contained in:
Jon Elias 2024-09-02 13:44:25 +02:00
parent 709f434e5d
commit ea1e82939a
2 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
describe('ZoneCreate', () => { describe('ZoneBasicData', () => {
const notification = '.q-notification__message'; const notification = '.q-notification__message';
beforeEach(() => { beforeEach(() => {

View File

@ -21,7 +21,7 @@ describe('ZoneCreate', () => {
cy.fillInForm({ cy.fillInForm({
...data, ...data,
}); });
cy.get('input[aria-label="Close"]').type('1000'); cy.get('input[aria-label="Close"]').type('10:00');
cy.get('.q-mt-lg > .q-btn--standard').click(); cy.get('.q-mt-lg > .q-btn--standard').click();
cy.get(notification).should('contains.text', 'Agency cannot be blank'); cy.get(notification).should('contains.text', 'Agency cannot be blank');
}); });
@ -31,7 +31,7 @@ describe('ZoneCreate', () => {
...data, ...data,
Agency: { val: 'inhouse pickup', type: 'select' }, Agency: { val: 'inhouse pickup', type: 'select' },
}); });
cy.get('input[aria-label="Close"]').type('1000'); cy.get('input[aria-label="Close"]').type('10:00');
cy.get('.q-mt-lg > .q-btn--standard').click(); cy.get('.q-mt-lg > .q-btn--standard').click();
cy.get(notification).should('contains.text', 'Data created'); cy.get(notification).should('contains.text', 'Data created');
}); });