From 37f00d2fdc47f696584a2070008f32a2a76e828a Mon Sep 17 00:00:00 2001 From: mertmit Date: Wed, 6 Sep 2023 15:36:05 +0300 Subject: [PATCH] fix: small issue with header Signed-off-by: mertmit --- .../smartsheet/expanded-form/Header.vue | 26 ++++++++++++++----- .../pages/Dashboard/ExpandedForm/index.ts | 2 +- 2 files changed, 21 insertions(+), 7 deletions(-) diff --git a/packages/nc-gui/components/smartsheet/expanded-form/Header.vue b/packages/nc-gui/components/smartsheet/expanded-form/Header.vue index 83046ec0c5..991daa19e2 100644 --- a/packages/nc-gui/components/smartsheet/expanded-form/Header.vue +++ b/packages/nc-gui/components/smartsheet/expanded-form/Header.vue @@ -127,12 +127,18 @@ const onConfirmDeleteRowClick = async () => { /> - + {{ $t('general.save') }} - + - + - -

Are you sure you want to delete this row?

-
+ +
+
Delete row ?
+ +
Are you sure you want to delete this row?
+
+
+ {{ $t('general.cancel') }} + {{ $t('general.confirm') }} +
+
diff --git a/tests/playwright/pages/Dashboard/ExpandedForm/index.ts b/tests/playwright/pages/Dashboard/ExpandedForm/index.ts index 50d93d846b..2d159e6bb8 100644 --- a/tests/playwright/pages/Dashboard/ExpandedForm/index.ts +++ b/tests/playwright/pages/Dashboard/ExpandedForm/index.ts @@ -51,7 +51,7 @@ export class ExpandedFormPage extends BasePage { async clickDeleteRow() { await this.click3DotsMenu('Delete Row'); - await this.rootPage.locator('.ant-btn-primary:has-text("OK")').click(); + await this.rootPage.locator('.ant-btn-primary:has-text("Confirm")').click(); } async isDisabledDuplicateRow() {