Skip to content
Snippets Groups Projects
Commit d8426149 authored by Rajab Natshah's avatar Rajab Natshah
Browse files

Issue #3120794: Fix Automated Functional Acceptance Testings

parent 641450fd
No related branches found
No related tags found
No related merge requests found
...@@ -269,8 +269,7 @@ class VarbaseContext extends RawDrupalContext implements SnippetAcceptingContext ...@@ -269,8 +269,7 @@ class VarbaseContext extends RawDrupalContext implements SnippetAcceptingContext
* @Then /^the editor media browser should be open$/ * @Then /^the editor media browser should be open$/
*/ */
public function theEitorMediaBrowserIsOpen() { public function theEitorMediaBrowserIsOpen() {
if (!$elem = $this->getSession()->getPage()->find('css', '.ui-dialog.media-wrapper')
if (!$this->getSession()->getPage()->find('css', '.ui-dialog.media-wrapper')
|| !$this->getSession()->getPage()->find('css', '.ui-dialog.media-wrapper .media-browser-panes')) { || !$this->getSession()->getPage()->find('css', '.ui-dialog.media-wrapper .media-browser-panes')) {
throw new \Exception('The editor media browser failed to open.'); throw new \Exception('The editor media browser failed to open.');
} }
......
...@@ -47,10 +47,13 @@ So that it will show up under that rich text field without having to upload the ...@@ -47,10 +47,13 @@ So that it will show up under that rich text field without having to upload the
Then I should see "Test Basic page to embed existing files" Then I should see "Test Basic page to embed existing files"
When I click "Edit" in the "Test Basic page to embed existing files" row When I click "Edit" in the "Test Basic page to embed existing files" row
And I wait And I wait
And I wait for 5 seconds
Then I should see "Edit Basic page Test Basic page to embed existing files" Then I should see "Edit Basic page Test Basic page to embed existing files"
When I move focus to "Body" rich text editor field When I move focus to "Body" rich text editor field
And I click the editor media browser command button And I click the editor media browser command button
And I wait
And I wait for AJAX to finish And I wait for AJAX to finish
And I wait
And I wait for 5 seconds And I wait for 5 seconds
Then the editor media browser should be open Then the editor media browser should be open
When I switch to iframe "entity_browser_iframe_editor_media_browser" When I switch to iframe "entity_browser_iframe_editor_media_browser"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment