diff --git a/packages/nc-gui/components/smartsheet/expanded-form/Header.vue b/packages/nc-gui/components/smartsheet/expanded-form/Header.vue
index 8e0a5d6faa..0f41903f53 100644
--- a/packages/nc-gui/components/smartsheet/expanded-form/Header.vue
+++ b/packages/nc-gui/components/smartsheet/expanded-form/Header.vue
@@ -200,7 +200,7 @@ const onConfirmDeleteRowClick = async () => {
{{ $t('general.close') }}
diff --git a/tests/playwright/pages/Dashboard/ExpandedForm/index.ts b/tests/playwright/pages/Dashboard/ExpandedForm/index.ts
index 538c2e4ff7..fa66bebd0c 100644
--- a/tests/playwright/pages/Dashboard/ExpandedForm/index.ts
+++ b/tests/playwright/pages/Dashboard/ExpandedForm/index.ts
@@ -133,7 +133,7 @@ export class ExpandedFormPage extends BasePage {
}
async close() {
- await this.get().locator('button:has-text("Close")').last().click();
+ await this.get().locator('.nc-close-form').last().click();
}
async openChildCard(param: { column: string; title: string }) {