mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-28 07:25:41 +00:00
test(cypress): base-view verification DOM element corrections
Signed-off-by: Raju Udava <sivadstala@gmail.com>
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user