Browse Source

test(cypress/stability): wait for DOM element instead of wait

Signed-off-by: Raju Udava <sivadstala@gmail.com>
pull/810/head
Raju Udava 3 years ago
parent
commit
3db9ea504a
  1. 6
      scripts/cypress/integration/common/7a_create_project_from_excel.js

6
scripts/cypress/integration/common/7a_create_project_from_excel.js

@ -119,7 +119,11 @@ export const genTest = (type, xcdb) => {
// for each sheet, expand to verify table names & their data types // for each sheet, expand to verify table names & their data types
cy.wrap(sheets[i]).find('.mdi-chevron-down').click() cy.wrap(sheets[i]).find('.mdi-chevron-down').click()
cy.wait(1000)
// wait for 4 DOM rows to become visible, corresponding to 4 column names in excel
// change to avoid static wait
cy.get('.v-data-table').find('tr:visible').should('have.length', 4)
cy.get('.v-data-table').find('tr:visible').then((row) => { cy.get('.v-data-table').find('tr:visible').then((row) => {
for (let j = 1; j < row.length; j++) { for (let j = 1; j < row.length; j++) {

Loading…
Cancel
Save