Wait for ckeditor to load

pull/2487/head
jmontoyaa 9 years ago
parent 1d1833cdc6
commit ad5b2d24d3
  1. 3
      tests/behat/features/bootstrap/FeatureContext.php
  2. 1
      tests/behat/features/toolForum.feature

@ -281,6 +281,9 @@ class FeatureContext extends MinkContext
*/
public function iFillInWysiwygOnFieldWith($locator, $value)
{
// Just in case wait that ckeditor is loaded
$this->getSession()->wait(2000);
$el = $this->getSession()->getPage()->findField($locator);
$fieldId = $el->getAttribute('id');

@ -26,6 +26,7 @@ Feature: Forum tool
Given I am on "/main/forum/index.php?cidReq=TEMP"
And I follow "Forum Test"
And I follow "Create thread"
And wait for the page to be loaded
When I fill in the following:
| post_title | Thread One |
And I fill in ckeditor field "post_text" with "This is a the first thread in a forum for test"

Loading…
Cancel
Save