From bb2997fc65cf1b1d09703d3c1284fa1e6d29462d Mon Sep 17 00:00:00 2001 From: jorgep Date: Fri, 21 Feb 2025 17:37:26 +0100 Subject: [PATCH] refactor: refs #8581 remove undefined values --- test/cypress/integration/entry/entryDms.spec.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/test/cypress/integration/entry/entryDms.spec.js b/test/cypress/integration/entry/entryDms.spec.js index 47dcdba9e..c640fef81 100644 --- a/test/cypress/integration/entry/entryDms.spec.js +++ b/test/cypress/integration/entry/entryDms.spec.js @@ -15,22 +15,20 @@ describe('EntryDms', () => { }); cy.get('tbody > tr').then((value) => { - const u = undefined; - //Create and check if exist new row let newFileTd = Cypress.$(value).length; cy.get('.q-btn--standard > .q-btn__content > .block').click(); expect(value).to.have.length(newFileTd++); const newRowSelector = `tbody > :nth-child(${newFileTd})`; cy.waitForElement(newRowSelector); - cy.validateRow(newRowSelector, [u, u, u, u, u, 'ENTRADA ID 1']); + cy.validateRow(newRowSelector, [, , , , , 'ENTRADA ID 1']); //Edit new dms const newDescription = 'entry id 1 modified'; const textAreaSelector = '.q-textarea > .q-field__inner > .q-field__control > .q-field__control-container'; cy.get( - `tbody :nth-child(${newFileTd}) > .text-right > .no-wrap > :nth-child(2) > .q-btn > .q-btn__content > .q-icon` + `tbody :nth-child(${newFileTd}) > .text-right > .no-wrap > :nth-child(2) > .q-btn > .q-btn__content > .q-icon`, ).click(); cy.get(textAreaSelector).clear(); @@ -38,7 +36,7 @@ describe('EntryDms', () => { cy.saveCard(); cy.reload(); - cy.validateRow(newRowSelector, [u, u, u, u, u, newDescription]); + cy.validateRow(newRowSelector, [, , , , , newDescription]); }); }); });