[visual] Avoid pasting formatted content into a math container (#14475)
GitOrigin-RevId: e563e27bf80092df7b296878536ca2d4549c4d2a
This commit is contained in:
+3
-1
@@ -45,7 +45,9 @@ describe('<CodeMirrorEditor/> paste HTML in Visual mode', function () {
|
||||
cy.get('@content').trigger('paste', { clipboardData })
|
||||
|
||||
cy.get('@content').should('have.text', 'foo')
|
||||
cy.get('@get-data').should('have.been.calledOnceWithExactly', 'text/html')
|
||||
cy.get('@get-data').should('have.been.calledTwice')
|
||||
cy.get('@get-data').should('have.been.calledWithExactly', 'text/html')
|
||||
cy.get('@get-data').should('have.been.calledWithExactly', 'text/plain')
|
||||
})
|
||||
|
||||
it('handles a pasted bullet list', function () {
|
||||
|
||||
Reference in New Issue
Block a user