mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-27 19:16:19 +00:00
test(cypress): excel import validation (draft/wip)
Signed-off-by: Raju Udava <sivadstala@gmail.com>
This commit is contained in:
@@ -321,6 +321,19 @@ export class _mainPage {
|
||||
getIFrameCell = (columnHeader, cellNumber) => {
|
||||
return cy.iframe().find(`tbody > :nth-child(${cellNumber}) > [data-col="${columnHeader}"]`)
|
||||
}
|
||||
|
||||
// https://docs.cypress.io/guides/core-concepts/variables-and-aliases#Sharing-Context
|
||||
getDatatype = (tableName, columnName) => {
|
||||
cy.window().then(win => {
|
||||
const col = win.$nuxt.$store.state.meta.metas[tableName].columns
|
||||
let dataType = ''
|
||||
col.forEach(element => {
|
||||
if(element.cn == columnName)
|
||||
dataType = element.uidt
|
||||
})
|
||||
cy.wrap(dataType).as('ncDatatype')
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user