diff --git a/test/cypress/integration/wagon/wagonCreate.spec.js b/test/cypress/integration/wagon/wagonCreate.spec.js index 501375d8c..ce3723e54 100644 --- a/test/cypress/integration/wagon/wagonCreate.spec.js +++ b/test/cypress/integration/wagon/wagonCreate.spec.js @@ -8,16 +8,16 @@ describe('WagonCreate', () => { 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"]' + '.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"]' + '.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"]' + '.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(); + + cy.get('[title="Remove"] > .q-btn__content > .q-icon').click(); }); }); diff --git a/test/cypress/integration/wagon/wagonType/wagonTypeCreate.spec.js b/test/cypress/integration/wagon/wagonType/wagonTypeCreate.spec.js index 0ad98e597..343c1c127 100644 --- a/test/cypress/integration/wagon/wagonType/wagonTypeCreate.spec.js +++ b/test/cypress/integration/wagon/wagonType/wagonTypeCreate.spec.js @@ -6,14 +6,10 @@ describe('WagonTypeCreate', () => { cy.waitForElement('.q-page', 6000); }); - it('should create a new wagon type', () => { + it('should create a new wagon type and then delete it', () => { cy.get('.q-page-sticky > div > .q-btn').click(); cy.get('input').first().type('Example for testing'); cy.get('button[type="submit"]').click(); - }); - it('delete a wagon type', () => { - cy.get( - '[to="/null/2"] > .q-card > .column > [title="Remove"] > .q-btn__content > .q-icon' - ).click(); + cy.get('[title="Remove"] > .q-btn__content > .q-icon').first().click(); }); });