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

Issue #3085506: Change [ Feature: Content Management - Add hero slider to...

Issue #3085506: Change [ Feature: Content Management - Add hero slider to entity queue using entity queue form widget] Automated Functional Acceptance Testing
parent 0b4507c2
No related branches found
No related tags found
No related merge requests found
...@@ -1414,14 +1414,14 @@ JS; ...@@ -1414,14 +1414,14 @@ JS;
* *
* @Then /^the "([^"]*)" media browser should be open$/ * @Then /^the "([^"]*)" media browser should be open$/
*/ */
public function theMediaBrowserIsOpen($entity_browser_iframe_id) { public function theMediaBrowserIsOpen($entityBrowserIframeId) {
if (!$elem = $this->getSession()->getPage()->find('css', '.ui-dialog.ui-widget-content')) { if (!$elem = $this->getSession()->getPage()->find('css', '.ui-dialog.ui-widget-content')) {
throw new Exception('The media browser failed to open.'); throw new Exception('The media browser failed to open.');
} }
$radioButton = $this->getSession()->getPage()->find('css', "#$entity_browser_iframe_id"); $entityBrowserIframe = $this->getSession()->getPage()->find('css', "#$entityBrowserIframeId");
if (!$radioButton) { if (!$entityBrowserIframeId) {
throw new \Exception("$labelText is not found."); throw new \Exception("$entityBrowserIframeId is not found.");
} }
} }
......
...@@ -43,7 +43,7 @@ I want to be able to add and remove entities to any allowed entity queue. ...@@ -43,7 +43,7 @@ I want to be able to add and remove entities to any allowed entity queue.
And I wait for AJAX to finish And I wait for AJAX to finish
Then the "entity_browser_iframe_media_browser" media browser should be open Then the "entity_browser_iframe_media_browser" media browser should be open
When I switch to iframe "entity_browser_iframe_media_browser" When I switch to iframe "entity_browser_iframe_media_browser"
And wait max of 5s And wait 5s
Then I should see "Media name" Then I should see "Media name"
When I fill in "Flag Earth" for "Media name" When I fill in "Flag Earth" for "Media name"
And I press the "Search" button And I press the "Search" button
...@@ -75,7 +75,7 @@ I want to be able to add and remove entities to any allowed entity queue. ...@@ -75,7 +75,7 @@ I want to be able to add and remove entities to any allowed entity queue.
And I wait for AJAX to finish And I wait for AJAX to finish
Then the "entity_browser_iframe_media_browser" media browser should be open Then the "entity_browser_iframe_media_browser" media browser should be open
When I switch to iframe "entity_browser_iframe_media_browser" When I switch to iframe "entity_browser_iframe_media_browser"
And wait max of 5s And wait 5s
Then I should see "Media name" Then I should see "Media name"
When I fill in "Flag Earth" for "Media name" When I fill in "Flag Earth" for "Media name"
And I press the "Search" button And I press the "Search" button
......
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