salix-front/test/cypress/integration/wagon/wagonCreate.spec.js

24 lines
983 B
JavaScript
Raw Normal View History

2023-03-22 13:42:29 +00:00
describe('WagonCreate', () => {
beforeEach(() => {
cy.viewport(1280, 720);
cy.login('developer');
2025-01-03 10:11:04 +00:00
cy.visit('/#/wagon');
2023-03-22 13:42:29 +00:00
});
it('should create and delete a new wagon', () => {
2025-01-03 10:11:04 +00:00
cy.dataCy('vnTableCreateBtn').click();
2024-09-24 07:35:34 +00:00
cy.get(
2025-02-04 14:39:34 +00:00
'.grid-create > [label="Label"] > .q-field > .q-field__inner > .q-field__control > .q-field__control-container > [data-cy="Label_input"]',
2025-01-03 10:11:04 +00:00
).type('1234');
2024-09-24 07:35:34 +00:00
cy.get(
2025-02-04 14:39:34 +00:00
'.grid-create > [label="Plate"] > .q-field > .q-field__inner > .q-field__control > .q-field__control-container > [data-cy="Plate_input"]',
2025-01-03 10:11:04 +00:00
).type('1234ABCD');
2024-09-24 07:02:35 +00:00
cy.get(
2025-02-04 14:39:34 +00:00
'.grid-create > [label="Volume"] > .q-field > .q-field__inner > .q-field__control > .q-field__control-container > [data-cy="Volume_input"]',
2025-01-03 10:11:04 +00:00
).type('100');
cy.dataCy('Type_select').type('{downarrow}{enter}');
2025-02-04 14:39:34 +00:00
cy.get('[title="Remove"] > .q-btn__content > .q-icon').click();
2023-03-22 13:42:29 +00:00
});
});