Browse Source

test(cypress): fix colname toast validation

Signed-off-by: Raju Udava <sivadstala@gmail.com>
pull/865/head
Raju Udava 3 years ago
parent
commit
439c06a141
  1. 2
      scripts/cypress/integration/common/1b_table_column_operations.js
  2. 2
      scripts/cypress/integration/common/4f_grid_view_share.js
  3. 4
      scripts/cypress/support/page_objects/mainPage.js

2
scripts/cypress/integration/common/1b_table_column_operations.js

@ -23,7 +23,7 @@ export const genTest = (type, xcdb) => {
it('Create Table Column', () => {
cy.get(`.project-tab:contains(${name}):visible`).should('exist')
mainPage.addColumn(colName)
mainPage.addColumn(colName, name)
cy.get(`th:contains(${colName})`).should('exist');
})

2
scripts/cypress/integration/common/4f_grid_view_share.js

@ -527,7 +527,7 @@ export const genTest = (type, xcdb) => {
cy.wait(1000)
// add column
mainPage.addColumn('dummy')
mainPage.addColumn('dummy', 'Country')
cy.wait(5000)
// visit public view

4
scripts/cypress/support/page_objects/mainPage.js

@ -150,11 +150,11 @@ export class _mainPage {
return cy.get('.xc-row-table').find('tr').eq(rowIndex)
}
addColumn = (colName) => {
addColumn = (colName, tableName) => {
cy.get('.v-window-item--active .nc-grid tr > th:last button').click({ force: true });
cy.get('.nc-column-name-input input', { timeout: 3000 }).clear().type(colName)
cy.get('.nc-col-create-or-edit-card').contains('Save').click()
cy.toastWait(`Update table.${colName} successful`)
cy.toastWait(`Update table.${tableName} successful`)
}
addColumnWithType = (colName, colType) => {

Loading…
Cancel
Save