describe('WagonCreate', () => { beforeEach(() => { cy.viewport(1280, 720); cy.login('developer'); cy.visit('/#/wagon'); }); it('should create and delete a new wagon', () => { cy.dataCy('vnTableCreateBtn').click(); cy.get( '.grid-create > [label="Label"] > .q-field > .q-field__inner > .q-field__control > .q-field__control-container > [data-cy="Label_input"]' ).type('1234'); cy.get( '.grid-create > [label="Plate"] > .q-field > .q-field__inner > .q-field__control > .q-field__control-container > [data-cy="Plate_input"]' ).type('1234ABCD'); cy.get( '.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(); }); });