diff --git a/tests/features/bootstrap/VarbaseContext.php b/tests/features/bootstrap/VarbaseContext.php index fb053f9a60df28711e06e9213383e419af79dda2..119bcacc14dc09f58d862f7b4e6b1e9672bba641 100644 --- a/tests/features/bootstrap/VarbaseContext.php +++ b/tests/features/bootstrap/VarbaseContext.php @@ -1414,14 +1414,14 @@ JS; * * @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')) { throw new Exception('The media browser failed to open.'); } - $radioButton = $this->getSession()->getPage()->find('css', "#$entity_browser_iframe_id"); - if (!$radioButton) { - throw new \Exception("$labelText is not found."); + $entityBrowserIframe = $this->getSession()->getPage()->find('css', "#$entityBrowserIframeId"); + if (!$entityBrowserIframeId) { + throw new \Exception("$entityBrowserIframeId is not found."); } } diff --git a/tests/features/varbase/step2-apply-tests/05-content-management/05-03-add-hero-slider-to-entityqueue-using-entityqueue-form-widget.feature b/tests/features/varbase/step2-apply-tests/05-content-management/05-03-add-hero-slider-to-entityqueue-using-entityqueue-form-widget.feature index a0312432ec0d6ee690ebae9d7042bf5d478e9902..d00caf5bcc2cf887fa59d0d9480b68218697aa63 100644 --- a/tests/features/varbase/step2-apply-tests/05-content-management/05-03-add-hero-slider-to-entityqueue-using-entityqueue-form-widget.feature +++ b/tests/features/varbase/step2-apply-tests/05-content-management/05-03-add-hero-slider-to-entityqueue-using-entityqueue-form-widget.feature @@ -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 Then the "entity_browser_iframe_media_browser" media browser should be open When I switch to iframe "entity_browser_iframe_media_browser" - And wait max of 5s + And wait 5s Then I should see "Media name" When I fill in "Flag Earth" for "Media name" 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. And I wait for AJAX to finish Then the "entity_browser_iframe_media_browser" media browser should be open When I switch to iframe "entity_browser_iframe_media_browser" - And wait max of 5s + And wait 5s Then I should see "Media name" When I fill in "Flag Earth" for "Media name" And I press the "Search" button