diff --git a/cypress/support/commands.js b/cypress/support/commands.js index 2e2121b4e..6a1ec0a3e 100644 --- a/cypress/support/commands.js +++ b/cypress/support/commands.js @@ -470,8 +470,8 @@ Cypress.Commands.add('addUserToGroup', (userId, groupId) => { Cypress.Commands.add('removeColumn', (title) => { cy.get('.custom-table table tr th .cell').contains(title).click() - cy.get('.v-popper__popper ul.nc-button-group-content').last().get('button').last().click() - cy.get('.modal__content button').contains('Confirm').click() + cy.get('[data-cy="deleteColumnActionBtn"] button').click() + cy.get('[data-cy="confirmDialog"] button').contains('Confirm').click() }) // fill in a value in the 'create row' or 'edit row' model diff --git a/src/shared/components/ncTable/partials/TableHeaderColumnOptions.vue b/src/shared/components/ncTable/partials/TableHeaderColumnOptions.vue index eac1793b9..4cc76d1ce 100644 --- a/src/shared/components/ncTable/partials/TableHeaderColumnOptions.vue +++ b/src/shared/components/ncTable/partials/TableHeaderColumnOptions.vue @@ -110,6 +110,7 @@