From fea006f043c10c162aac154923fceebffa3df66d Mon Sep 17 00:00:00 2001 From: Ryan Liang Date: Fri, 22 Mar 2024 19:03:03 -0700 Subject: [PATCH] Finalize the Acc table tests Signed-off-by: Ryan Liang --- .../acceleration_table.spec.js | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/.cypress/integration/flint_datasources/acceleration_table.spec.js b/.cypress/integration/flint_datasources/acceleration_table.spec.js index fd4f97abe..fefa8ea73 100644 --- a/.cypress/integration/flint_datasources/acceleration_table.spec.js +++ b/.cypress/integration/flint_datasources/acceleration_table.spec.js @@ -142,29 +142,21 @@ describe('Acceleration Table test', () => { }); }); - it('Checks rows for "Skipping Index" type and verifies Destination Index column content', () => { + it('Checks rows for "Skipping index" type and verifies Destination Index column content', () => { goToAccelerationTable(); - let conditionMet = false; - - cy.get('tbody tr') + cy.get('tbody') + .find('tr') .each(($row) => { cy.wrap($row) .find('td') .eq(2) .invoke('text') - .then((typeText) => { - if (typeText.trim() === TYPE_SI) { - conditionMet = true; + .then((text) => { + if (text.includes(TYPE_SI)) { cy.wrap($row).find('td').eq(6).should('contain.text', EMPTY_CONTENT); } }); - }) - .then(() => { - expect( - conditionMet, - 'Expected to find at least one row with "Skipping Index" type and specific Destination Index content' - ).to.be.true; }); });