From f2ae231efb4f032c58b284d84206dccadce97175 Mon Sep 17 00:00:00 2001 From: Jon Date: Tue, 24 Sep 2024 09:35:34 +0200 Subject: [PATCH] fix: missing code --- .../integration/wagon/wagonCreate.spec.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/test/cypress/integration/wagon/wagonCreate.spec.js b/test/cypress/integration/wagon/wagonCreate.spec.js index 881e51f42..cd248d1bb 100644 --- a/test/cypress/integration/wagon/wagonCreate.spec.js +++ b/test/cypress/integration/wagon/wagonCreate.spec.js @@ -18,6 +18,22 @@ describe('WagonCreate', () => { // Save cy.get('button[type="submit"]').click(); + // Check data has been saved successfully + cy.waitForElement('.q-card'); + + cy.get( + '[to="/null/1"] > .q-card > .no-padding > .q-py-none > .cursor-text' + ).should('have.text', '1234'); + cy.get( + '[to="/null/1"] > .q-card > .no-padding > .q-pr-lg > :nth-child(1) > .vn-label-value > .value > :nth-child(1) > .row > span' + ).should('have.text', '1234ABCD'); + cy.get( + '[to="/null/1"] > .q-card > .no-padding > .q-pr-lg > :nth-child(2) > .vn-label-value > .value > :nth-child(1) > .row > span' + ).should('have.text', '100'); + cy.get( + '[to="/null/1"] > .q-card > .no-padding > .q-pr-lg > :nth-child(3) > .vn-label-value > .value > :nth-child(1) > .row > span' + ).should('have.text', 'Wagon Type #1'); + // Delete wagon type created cy.get( '[to="/null/2"] > .q-card > .column > [title="Remove"] > .q-btn__content > .q-icon'