forked from verdnatura/salix-front
fix: refs #7354 e2e tests
This commit is contained in:
parent
709f434e5d
commit
ea1e82939a
|
@ -1,4 +1,4 @@
|
||||||
describe('ZoneCreate', () => {
|
describe('ZoneBasicData', () => {
|
||||||
const notification = '.q-notification__message';
|
const notification = '.q-notification__message';
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
|
|
@ -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');
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue