Browse Source

test(cypress): base-view verification DOM element corrections

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

20
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++) { for (let i = 0; i < sheets.length; i++) {
// verify if all sheet names are correct // verify if all sheet names are correct
cy.wrap(sheets[i]).find('.title').then((blk) => { // cy.wrap(sheets[i]).find('.title').then((blk) => {
cy.log(blk.text().trim()) // cy.log(blk.text().trim())
expect(blk.text().trim()).to.equal(sheetList[i]) // 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 // 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()
@ -209,10 +211,12 @@ export const genTest = (type, xcdb) => {
for (let i = 0; i < sheets.length; i++) { for (let i = 0; i < sheets.length; i++) {
// verify if all sheet names are correct // verify if all sheet names are correct
cy.wrap(sheets[i]).find('.title').then((blk) => { // cy.wrap(sheets[i]).find('.title').then((blk) => {
cy.log(blk.text().trim()) // cy.log(blk.text().trim())
expect(blk.text().trim()).to.equal('Sheet1') // 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 // 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()

Loading…
Cancel
Save