tinymce-docs icon indicating copy to clipboard operation
tinymce-docs copied to clipboard

TinyMCE Cypress testing

Open aymanapatel opened this issue 2 years ago • 3 comments

Hi Team,

I am trying to use Cypress for e2e automation. I am unable to insert content to TinyMCE Editor using cy.type method. Is there a documentation for using TinyMCE in Cypress?

aymanapatel avatar Jun 01 '22 13:06 aymanapatel

Ref: INT-2913

exalate-issue-sync[bot] avatar Jun 01 '22 13:06 exalate-issue-sync[bot]

To the best of my knowledge we have no documentation on working with Cypress. I will forward this to the tinymce-docs repo as that request is not relevant to the tinymce-react integration.

I have no experience with Cypress. To see if I could help I tried writing an e2e test that selected the editor and typed ( cy.get('div.tox-tinymce iframe').type('Hello') ) but as you reported nothing happened. Additionally when trying to review the steps of the test I found that Cypress would delete the editor iframe content leading to a completely broken editor. I have not found a workaround.

tiny-james avatar Jun 22 '22 06:06 tiny-james