Skip to content

Commit 092a147

Browse files
committed
MAGETWO-89145: Build Stabilization
Add executeJs call to click media gallery accept folder OK button
1 parent bebcefd commit 092a147

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

dev/tests/acceptance/tests/functional/Magento/FunctionalTest/Cms/ActionGroup/SelectImageFromMediaStorageActionGroup.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@
2828
<fillField selector="{{MediaGallerySection.FolderName}}" userInput="{{ImageFolder.name}}" stepKey="fillFolderName" />
2929
<click selector="{{MediaGallerySection.AcceptFolderName}}" stepKey="acceptFolderName" />
3030
<wait time="2" stepKey="waitForModalToTransitionOffScreenAndUnloadItself" />
31-
<conditionalClick selector="{{MediaGallerySection.AcceptFolderName}}" dependentSelector="{{MediaGallerySection.AcceptFolderName}}" visible="true" stepKey="acceptFolderNameInCaseFirstClickDidNotWork" />
32-
<waitForElementNotVisible selector="{{MediaGallerySection.FolderName}}" stepKey="waitUntilFolderCreationModalIsUnloaded" />
31+
<executeJS function="jQuery('{{MediaGallerySection.AcceptFolderName}}').click()" stepKey="clickMediaGalleryOKButtonProgrammaticallyWithJQuery"/>
3332
<waitForLoadingMaskToDisappear stepKey="waitForLoading3" />
3433
<waitForPageLoad stepKey="waitForLoadingArrowToExpand" time="15" />
3534
<conditionalClick selector="{{MediaGallerySection.StorageRootArrow}}" dependentSelector="{{MediaGallerySection.checkIfArrowExpand}}" stepKey="clickArrowIfClosed" visible="true"/>

0 commit comments

Comments
 (0)