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

24 lines
1.0 KiB
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-01-03 10:11:04 +00:00
'.grid-create > [label="Label"] > .q-field > .q-field__inner > .q-field__control > .q-field__control-container > [data-cy="Label_input"]'
).type('1234');
2024-09-24 07:35:34 +00:00
cy.get(
2025-01-03 10:11:04 +00:00
'.grid-create > [label="Plate"] > .q-field > .q-field__inner > .q-field__control > .q-field__control-container > [data-cy="Plate_input"]'
).type('1234ABCD');
2024-09-24 07:02:35 +00:00
cy.get(
2025-01-03 10:11:04 +00:00
'.grid-create > [label="Volume"] > .q-field > .q-field__inner > .q-field__control > .q-field__control-container > [data-cy="Volume_input"]'
).type('100');
cy.dataCy('Type_select').type('{downarrow}{enter}');
// // Delete wagon type created
cy.get('[to="/null/1"] > .q-card > .column > [title="Remove"]').click();
2023-03-22 13:42:29 +00:00
});
});