diff --git a/superset-frontend/cypress-base/cypress/integration/dashboard/editmode.test.ts b/superset-frontend/cypress-base/cypress/integration/dashboard/editmode.test.ts index ee799bcdfad8..f072bc8f54e1 100644 --- a/superset-frontend/cypress-base/cypress/integration/dashboard/editmode.test.ts +++ b/superset-frontend/cypress-base/cypress/integration/dashboard/editmode.test.ts @@ -243,17 +243,17 @@ describe('Dashboard edit', () => { .click(); // add new markdown component - dragComponent('Markdown', 'new-component', false); + dragComponent('Text', 'new-component', false); - cy.get('[data-test="dashboard-markdown-editor"]') + cy.getBySel('dashboard-markdown-editor') .should( 'have.text', - '✨Markdown✨Markdown✨MarkdownClick here to edit markdown', + '✨Header 1✨Header 2✨Header 3Click here to learn more about markdown formatting', ) - .click(); + .click(10, 10); cy.getBySel('dashboard-component-chart-holder').contains( - 'Click here to edit [markdown](https://bit.ly/1dQOfRK)', + 'Click here to learn more about [markdown formatting](https://bit.ly/1dQOfRK)', ); cy.getBySel('dashboard-markdown-editor').click().type('Test resize'); diff --git a/superset-frontend/src/dashboard/components/gridComponents/Markdown.jsx b/superset-frontend/src/dashboard/components/gridComponents/Markdown.jsx index 31fae65c462a..79fccfadc976 100644 --- a/superset-frontend/src/dashboard/components/gridComponents/Markdown.jsx +++ b/superset-frontend/src/dashboard/components/gridComponents/Markdown.jsx @@ -69,13 +69,13 @@ const propTypes = { const defaultProps = {}; -const MARKDOWN_PLACE_HOLDER = `# ✨Markdown -## ✨Markdown -### ✨Markdown +const MARKDOWN_PLACE_HOLDER = `# ✨Header 1 +## ✨Header 2 +### ✨Header 3
-Click here to edit [markdown](https://bit.ly/1dQOfRK)`; +Click here to learn more about [markdown formatting](https://bit.ly/1dQOfRK)`; const MARKDOWN_ERROR_MESSAGE = t('This markdown component has an error.'); diff --git a/superset-frontend/src/dashboard/components/gridComponents/new/NewMarkdown.jsx b/superset-frontend/src/dashboard/components/gridComponents/new/NewMarkdown.jsx index f16b4b55f42d..236b52f3b2a5 100644 --- a/superset-frontend/src/dashboard/components/gridComponents/new/NewMarkdown.jsx +++ b/superset-frontend/src/dashboard/components/gridComponents/new/NewMarkdown.jsx @@ -27,8 +27,8 @@ export default function DraggableNewDivider() { ); }