-
Notifications
You must be signed in to change notification settings - Fork 9.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8237 from magento-gl/Hammer_247_beta1_scope_17042023
Hammer 247 beta1 scope 17042023
- Loading branch information
Showing
22 changed files
with
798 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
59 changes: 59 additions & 0 deletions
59
app/code/Magento/Catalog/Test/Mftf/Test/StorefrontProductImageSlideTest.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
--> | ||
|
||
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd"> | ||
<test name="StorefrontProductImageSlideTest"> | ||
<annotations> | ||
<features value="Catalog"/> | ||
<stories value="Product Image"/> | ||
<title value="Product image should be visible and slide left or right on frontend in mobile"/> | ||
<description value="Product image should be visible and slide left or right on frontend in mobile"/> | ||
<group value="Catalog"/> | ||
<severity value="AVERAGE"/> | ||
<testCaseId value="AC-8441"/> | ||
</annotations> | ||
<before> | ||
<resizeWindow width="800" height="700" stepKey="resizeWindowToMobileView"/> | ||
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/> | ||
</before> | ||
<after> | ||
<resizeWindow width="1280" height="1024" stepKey="resizeWindowToDesktop"/> | ||
<actionGroup ref="DeleteProductBySkuActionGroup" stepKey="deleteProduct"> | ||
<argument name="sku" value="{{SimpleProduct.sku}}"/> | ||
</actionGroup> | ||
<actionGroup ref="ClearFiltersAdminDataGridActionGroup" stepKey="clearFilter"/> | ||
<actionGroup ref="AdminLogoutActionGroup" stepKey="logoutAsAdmin"/> | ||
</after> | ||
|
||
<!--Create product--> | ||
<actionGroup ref="AdminOpenNewProductFormPageActionGroup" stepKey="openNewProductPage"/> | ||
<actionGroup ref="FillMainProductFormActionGroup" stepKey="fillSimpleProductMain"> | ||
<argument name="product" value="SimpleProduct"/> | ||
</actionGroup> | ||
|
||
<!-- Add image to product --> | ||
<actionGroup ref="AddProductImageActionGroup" stepKey="addImageForSimpleProduct"> | ||
<argument name="image" value="TestImageWithDotInFilename"/> | ||
</actionGroup> | ||
<actionGroup ref="AddProductImageActionGroup" stepKey="addImageForSimpleProduct2"> | ||
<argument name="image" value="TestImageWithDotInFilename"/> | ||
</actionGroup> | ||
<actionGroup ref="SaveProductFormActionGroup" stepKey="saveSimpleProduct"/> | ||
|
||
<!-- Assert product in storefront product page --> | ||
<actionGroup ref="AssertProductNameAndSkuInStorefrontProductPageActionGroup" stepKey="assertProductInStorefrontProductPage"> | ||
<argument name="product" value="SimpleProduct"/> | ||
</actionGroup> | ||
|
||
<click selector="{{StorefrontProductMediaSection.fotoramaImageThumbnail('2')}}" stepKey="clickForFullScreenImage1"/> | ||
<wait stepKey="waitForImageScroll" time="2"/> | ||
<waitForElementVisible selector="{{StorefrontProductMediaSection.imagePrevButton}}" stepKey="waitPrevButton"/> | ||
<seeElement selector="{{StorefrontProductMediaSection.imagePrevButton}}" stepKey="seePrevButton"/> | ||
</test> | ||
</tests> |
Oops, something went wrong.