|
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- -->
-
- <actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
- <actionGroup name="AttachImageActionGroup">
- <annotations>
- <description>Uploads the provided Image to Media Gallery.
- If you use this action group, you MUST add steps to delete the image in the "after" steps.</description>
- </annotations>
- <arguments>
- <argument name="Image"/>
- </arguments>
-
- <waitForElement selector="{{MediaGallerySection.BrowseUploadImage}}" stepKey="waitForUploadImageElement"/>
- <attachFile selector="{{MediaGallerySection.BrowseUploadImage}}" userInput="{{Image.value}}" stepKey="uploadImage"/>
- <waitForPageLoad stepKey="waitForPageLoad"/>
- <waitForPageLoad stepKey="waitForLoadingMaskToDisappear"/>
- <waitForElementVisible selector="{{MediaGallerySection.imageOrImageCopy(Image.fileName, Image.extension)}}" stepKey="waitForUploadImage"/>
- </actionGroup>
- </actionGroups>
|