← Back to team overview

mahara-contributors team mailing list archive

[Bug 1557200] Re: Allow for easier filling out of a tinymce form behat step

 

Already implemented.

@Given /^(?:|I )fill in "(?P<text>[^"]*)" in WYSIWYG editor(?:|
"(?P<iframe>[^"]*)")$/

Defined in function iFillInInWysiWYGEditor($text, $iframe = null) in
BehatForms.php

You can either use it with an iframe name, or without. If you use it
without an iframe name, then it uses the first TinyMCE editor currently
on the page. This is useful for filling in TinyMCE's that might have
dynamically generated unpredictable names. Or, for that matter, it's
useful in most situations, because we rarely have more than one TinyMCE
editor on a single page.

Example: I fill in "This is an interactive editor" in WYSIWYG editor

** Changed in: mahara
       Status: In Progress => Fix Released

** Tags added: behat

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1557200

Title:
  Allow for easier filling out of a tinymce form behat step

Status in Mahara:
  Fix Released

Bug description:
  Currently we have a long clumsy way to do it by finding out the id of
  the iframe, eg

  And I fill in "This is a description" in WYSIWYG editor
  "edit_interaction_description_ifr"

  It would be better if the step itself could find the right iframe and
  fill in the text

  eg: And I fill in "This is a description" in editor "Description"

  where 'Description' is the label for the editor

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1557200/+subscriptions


References