diff --git a/plugins/document-resources/src/components/NewDocumentHeader.svelte b/plugins/document-resources/src/components/NewDocumentHeader.svelte
index d5cd006232..0c5c823162 100644
--- a/plugins/document-resources/src/components/NewDocumentHeader.svelte
+++ b/plugins/document-resources/src/components/NewDocumentHeader.svelte
@@ -14,17 +14,29 @@
-->
diff --git a/tests/sanity/tests/model/documents/documents-page.ts b/tests/sanity/tests/model/documents/documents-page.ts
index c1f9a6fea9..18e97d7da4 100644
--- a/tests/sanity/tests/model/documents/documents-page.ts
+++ b/tests/sanity/tests/model/documents/documents-page.ts
@@ -27,7 +27,7 @@ export class DocumentsPage extends CommonPage {
this.popupCreateDocument = new DocumentCreatePopup(page)
this.popupMoveDocument = new DocumentMovePopup(page)
- this.buttonCreateDocument = page.locator('div[data-float="navigator"] button[type="submit"]')
+ this.buttonCreateDocument = page.locator('div[data-float="navigator"] button[id="new-document"]')
this.divTeamspacesParent = page.locator('div#tree-teamspaces').locator('xpath=..')
this.buttonCreateTeamspace = page.locator('div#tree-teamspaces > button')
this.inputModalNewTeamspaceTitle = page.locator(