From dca2941f4ba8463187dd893fcbbcf2b04f414adb Mon Sep 17 00:00:00 2001 From: Rajab Natshah <rajabn@gmail.com> Date: Sat, 5 Oct 2019 16:04:47 +0300 Subject: [PATCH] Issue #3085506: Change [ Feature: Content Management - Add hero slider to entity queue using entity queue form widget] Automated Functional Acceptance Testing --- tests/features/bootstrap/VarbaseContext.php | 8 ++++---- ...r-to-entityqueue-using-entityqueue-form-widget.feature | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/features/bootstrap/VarbaseContext.php b/tests/features/bootstrap/VarbaseContext.php index fb053f9a..119bcacc 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 a0312432..d00caf5b 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 -- GitLab