fix: refs #7031 fix zoneTest
This commit is contained in:
parent
cb15652dd6
commit
a20afa5f35
|
@ -14,12 +14,6 @@ describe('ZoneBasicData', () => {
|
||||||
cy.get(notification).should('contains.text', "can't be blank");
|
cy.get(notification).should('contains.text', "can't be blank");
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should throw an error if the price is 0', () => {
|
|
||||||
cy.get(priceBasicData).type('0');
|
|
||||||
cy.get('.q-btn-group > .q-btn--standard').click();
|
|
||||||
cy.get(notification).should('Price must be greater than 0');
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should throw an error if the price is empty', () => {
|
it('should throw an error if the price is empty', () => {
|
||||||
cy.get(priceBasicData).clear();
|
cy.get(priceBasicData).clear();
|
||||||
cy.get('.q-btn-group > .q-btn--standard').click();
|
cy.get('.q-btn-group > .q-btn--standard').click();
|
||||||
|
@ -29,6 +23,6 @@ describe('ZoneBasicData', () => {
|
||||||
it("should edit the basicData's zone", () => {
|
it("should edit the basicData's zone", () => {
|
||||||
cy.get('.q-card > :nth-child(1)').type(' modified');
|
cy.get('.q-card > :nth-child(1)').type(' modified');
|
||||||
cy.get('.q-btn-group > .q-btn--standard').click();
|
cy.get('.q-btn-group > .q-btn--standard').click();
|
||||||
cy.get(notification).should('Price must be greater than 0');
|
cy.checkNotification('Data saved');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue