Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,15 @@ type Props = {
const RichTextContent = ({ content, form }: Props) => {
return (
<Form form={form} initialValues={{ content }}>
<Form.Item name="content" data-testid="rich-text-documentation">
<Form.Item name="content">
<EditorContainer>
<Editor content={content} placeholder="Write some text here..." hideBorder />
<Editor
content={content}
placeholder="Write some text here..."
hideBorder
dataTestId="rich-text-documentation"
onChange={(newContent) => form.setFieldValue('content', newContent)}
/>
</EditorContainer>
</Form.Item>
</Form>
Expand Down
6 changes: 5 additions & 1 deletion smoke-test/tests/cypress/cypress/e2e/homeV3/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down
Loading