diff --git a/packages/nc-gui/components/smartsheet/Grid.vue b/packages/nc-gui/components/smartsheet/Grid.vue index c9b81b0e1e..4b001cb8a7 100644 --- a/packages/nc-gui/components/smartsheet/Grid.vue +++ b/packages/nc-gui/components/smartsheet/Grid.vue @@ -798,20 +798,11 @@ const closeAddColumnDropdown = (scrollToLastCol = false) => { } const confirmDeleteRow = (row: number) => { - Modal.confirm({ - title: `Do you want to delete this row?`, - wrapClassName: 'nc-modal-row-delete', - okText: 'Yes', - okType: 'danger', - cancelText: 'No', - onOk() { - try { - deleteRow(row) - } catch (e: any) { - message.error(e.message) - } - }, - }) + try { + deleteRow(row) + } catch (e: any) { + message.error(e.message) + } } const deleteSelectedRangeOfRows = () => { diff --git a/tests/playwright/pages/Dashboard/Grid/index.ts b/tests/playwright/pages/Dashboard/Grid/index.ts index 1f78a2fb02..dedbdd956e 100644 --- a/tests/playwright/pages/Dashboard/Grid/index.ts +++ b/tests/playwright/pages/Dashboard/Grid/index.ts @@ -157,7 +157,7 @@ export class GridPage extends BasePage { // Click text=Delete Row await this.rootPage.locator('text=Delete Row').click(); - await this.rootPage.locator('text=Yes').click(); + // todo: improve selector await this.rootPage .locator('span.ant-dropdown-menu-title-content > nc-project-menu-item')