Merge pull request 'fix: refs #7031 add test e2e' (!1049) from 7031-zonePrice into dev
gitea/salix-front/pipeline/head This commit looks good
Details
gitea/salix-front/pipeline/head This commit looks good
Details
Reviewed-on: #1049 Reviewed-by: Alex Moreno <alexm@verdnatura.es> Reviewed-by: Jon Elias <jon@verdnatura.es>
This commit is contained in:
commit
79c1709618
|
@ -1,5 +1,6 @@
|
|||
describe('ZoneBasicData', () => {
|
||||
const notification = '.q-notification__message';
|
||||
const priceBasicData = '[data-cy="Price_input"]';
|
||||
|
||||
beforeEach(() => {
|
||||
cy.viewport(1280, 720);
|
||||
|
@ -13,9 +14,15 @@ describe('ZoneBasicData', () => {
|
|||
cy.get(notification).should('contains.text', "can't be blank");
|
||||
});
|
||||
|
||||
it('should throw an error if the price is empty', () => {
|
||||
cy.get(priceBasicData).clear();
|
||||
cy.get('.q-btn-group > .q-btn--standard').click();
|
||||
cy.get(notification).should('contains.text', 'cannot be blank');
|
||||
});
|
||||
|
||||
it("should edit the basicData's zone", () => {
|
||||
cy.get('.q-card > :nth-child(1)').type(' modified');
|
||||
cy.get('.q-btn-group > .q-btn--standard').click();
|
||||
cy.get(notification).should('contains.text', 'Data saved');
|
||||
cy.checkNotification('Data saved');
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue