From d7db03e7f3e50b53d2395401c7188959d636e460 Mon Sep 17 00:00:00 2001 From: Chris Collins Date: Mon, 20 Oct 2025 22:04:34 -0500 Subject: [PATCH 1/2] fix modules cypress test --- .../app/homeV3/modules/documentation/RichTextContent.tsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/datahub-web-react/src/app/homeV3/modules/documentation/RichTextContent.tsx b/datahub-web-react/src/app/homeV3/modules/documentation/RichTextContent.tsx index 054e0fa3dd7ef..b72ac736b33f5 100644 --- a/datahub-web-react/src/app/homeV3/modules/documentation/RichTextContent.tsx +++ b/datahub-web-react/src/app/homeV3/modules/documentation/RichTextContent.tsx @@ -20,9 +20,14 @@ type Props = { const RichTextContent = ({ content, form }: Props) => { return (
- + - + From 3ea1f91d94e68663b1cb860ec14096a2e367c584 Mon Sep 17 00:00:00 2001 From: Victor Tarasevich Date: Tue, 21 Oct 2025 14:26:16 +0300 Subject: [PATCH 2/2] fix modules.acryl.js --- .../app/homeV3/modules/documentation/RichTextContent.tsx | 3 ++- smoke-test/tests/cypress/cypress/e2e/homeV3/utils.js | 6 +++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/datahub-web-react/src/app/homeV3/modules/documentation/RichTextContent.tsx b/datahub-web-react/src/app/homeV3/modules/documentation/RichTextContent.tsx index b72ac736b33f5..c20b2393393d3 100644 --- a/datahub-web-react/src/app/homeV3/modules/documentation/RichTextContent.tsx +++ b/datahub-web-react/src/app/homeV3/modules/documentation/RichTextContent.tsx @@ -26,7 +26,8 @@ const RichTextContent = ({ content, form }: Props) => { content={content} placeholder="Write some text here..." hideBorder - dataTestId='"rich-text-documentation"' + dataTestId="rich-text-documentation" + onChange={(newContent) => form.setFieldValue('content', newContent)} />
diff --git a/smoke-test/tests/cypress/cypress/e2e/homeV3/utils.js b/smoke-test/tests/cypress/cypress/e2e/homeV3/utils.js index b110714ebe4f6..c8c51edc88233 100644 --- a/smoke-test/tests/cypress/cypress/e2e/homeV3/utils.js +++ b/smoke-test/tests/cypress/cypress/e2e/homeV3/utils.js @@ -158,7 +158,11 @@ export function createDocumentationModule(name, text) { clickFirstAddModuleButton(); cy.getWithTestId("add-documentation-module").click(); cy.getWithTestId("module-name").should("be.visible").type(name); - cy.getWithTestId("rich-text-documentation").should("be.visible").type(text); + cy.getWithTestId("rich-text-documentation") + .should("be.visible") + .within(() => { + cy.get(".remirror-editor-wrapper").type(text); + }); cy.getWithTestId("create-update-module-button").click(); }