salix-front/test/cypress/integration/parking/parkingBasicData.spec.js

26 lines
932 B
JavaScript
Raw Normal View History

2024-03-08 09:32:41 +00:00
/// <reference types="cypress" />
describe('ParkingBasicData', () => {
const codeInput = 'form .q-card .q-input input';
const sectorSelect = 'form .q-card .q-select input';
const sectorOpt = '.q-menu .q-item';
beforeEach(() => {
cy.login('developer');
2025-01-31 09:29:47 +00:00
cy.visit(`/#/shelving/parking/1/basic-data`);
2024-03-08 09:32:41 +00:00
});
it('should edit the code and sector', () => {
cy.get(sectorSelect).type('First');
2024-03-08 09:32:41 +00:00
cy.get(sectorOpt).click();
cy.get(codeInput).eq(0).clear();
cy.get(codeInput).eq(0).type('900-002');
cy.dataCy('Picking order_input').clear().type(80230);
2024-03-08 09:32:41 +00:00
cy.saveCard();
cy.get('.q-notification__message').should('have.text', 'Data saved');
cy.get(sectorSelect).should('have.value', 'Second sector');
cy.get(codeInput).should('have.value', '900-002');
cy.dataCy('Picking order_input').should('have.value', 80230);
2024-03-08 09:32:41 +00:00
});
});