Skip to content

Commit

Permalink
Finalize the Acc table tests
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Liang <[email protected]>
  • Loading branch information
RyanL1997 committed Mar 23, 2024
1 parent a029c81 commit 1974317
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions .cypress/integration/flint_datasources/acceleration_table.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});
});

Expand Down

0 comments on commit 1974317

Please sign in to comment.