@foreachbe/cypress-tinymce

1.0.0 • Public • Published

GitHub package.json version Travis (.org) npm (scoped)

cypress-tincymce

Extra helper Cypress custom commands for easier interacting with TinyMCE.

commands

getTinyMce(id)

This will return the tinymce js instance for the given id.

setTinyMceContent(id, text)

This will set the content of the TinyMCE editor:

  cy.setTinyMceContent('someid', 'This is the new content');

getTinyMceContent(id)

This will return the content of the TinyMce editor for the given id.

  cy.getTinyMceContent('someid');

Installation

yarn add @foreachbe/cypress-tinymce -D

Add the following to your cypress/support/index file:

import '@foreachbe/cypress-tinymce'

Readme

Keywords

none

Package Sidebar

Install

npm i @foreachbe/cypress-tinymce

Weekly Downloads

1,536

Version

1.0.0

License

MIT

Unpacked Size

139 kB

Total Files

18

Last publish

Collaborators

  • jarrku
  • cbld