From 3a7a82a7d15d7c897e61e543cf38ec979f353e6f Mon Sep 17 00:00:00 2001 From: Raju Udava Date: Tue, 23 Nov 2021 13:19:50 +0530 Subject: [PATCH] test(cypress): base-view verification DOM element corrections Signed-off-by: Raju Udava --- .../common/7a_create_project_from_excel.js | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/scripts/cypress/integration/common/7a_create_project_from_excel.js b/scripts/cypress/integration/common/7a_create_project_from_excel.js index 53eb7b026b..c3f4ab18f0 100644 --- a/scripts/cypress/integration/common/7a_create_project_from_excel.js +++ b/scripts/cypress/integration/common/7a_create_project_from_excel.js @@ -110,10 +110,12 @@ export const genTest = (type, xcdb) => { for (let i = 0; i < sheets.length; i++) { // verify if all sheet names are correct - cy.wrap(sheets[i]).find('.title').then((blk) => { - cy.log(blk.text().trim()) - expect(blk.text().trim()).to.equal(sheetList[i]) - }) + // cy.wrap(sheets[i]).find('.title').then((blk) => { + // cy.log(blk.text().trim()) + // expect(blk.text().trim()).to.equal(sheetList[i]) + // }) + + cy.wrap(sheets[i]).contains(sheetList[i]).should('exist') // for each sheet, expand to verify table names & their data types cy.wrap(sheets[i]).find('.mdi-chevron-down').click() @@ -209,10 +211,12 @@ export const genTest = (type, xcdb) => { for (let i = 0; i < sheets.length; i++) { // verify if all sheet names are correct - cy.wrap(sheets[i]).find('.title').then((blk) => { - cy.log(blk.text().trim()) - expect(blk.text().trim()).to.equal('Sheet1') - }) + // cy.wrap(sheets[i]).find('.title').then((blk) => { + // cy.log(blk.text().trim()) + // expect(blk.text().trim()).to.equal('Sheet1') + // }) + + cy.wrap(sheets[i]).contains('Sheet1').should('exist') // for each sheet, expand to verify table names & their data types cy.wrap(sheets[i]).find('.mdi-chevron-down').click()