Skip to content

[WIP][MTFT] Introduced AmOnPageActionGroup #33330

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: 2.4-develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,10 @@
</actionGroup>
<!-- Add product to Wish List -->
<comment userInput="Add product to Wish List" stepKey="commentAddProductToWishList"/>
<amOnPage url="{{StorefrontProductPage.url($$createProduct.custom_attributes[url_key]$$)}}" stepKey="amOnBundleProductPage"/>
<waitForPageLoad stepKey="waitForProductPage"/>
<actionGroup ref="AmOnPageActionGroup" stepKey="amOnBundleProductPage">
<argument name="url" value="{{StorefrontProductPage.url($$createProduct.custom_attributes[url_key]$$)}}"/>
</actionGroup>
<comment userInput="Adding the comment to replace waitForPageLoad tag for preserving Backward Compatibility" stepKey="waitForProductPage"/>
<actionGroup ref="StorefrontCustomerAddProductToWishlistActionGroup" stepKey="addToWishlistProduct">
<argument name="productVar" value="$$createProduct$$"/>
</actionGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@
</after>

<!--Create bundle product-->
<amOnPage url="{{AdminProductCreatePage.url(BundleProduct.set, BundleProduct.type)}}" stepKey="goToBundleProductCreationPage"/>
<waitForPageLoad stepKey="waitForBundleProductCreationPage"/>
<actionGroup ref="AmOnPageActionGroup" stepKey="goToBundleProductCreationPage">
<argument name="url" value="{{AdminProductCreatePage.url(BundleProduct.set, BundleProduct.type)}}"/>
</actionGroup>
<comment userInput="Adding the comment to replace waitForPageLoad tag for preserving Backward Compatibility" stepKey="waitForBundleProductCreationPage"/>
<conditionalClick selector="{{AdminProductFormBundleSection.bundleItemsToggle}}" dependentSelector="{{AdminProductFormBundleSection.bundleItemsToggle}}" visible="false" stepKey="conditionallyOpenSectionBundleItems"/>
<click selector="{{AdminProductFormBundleSection.addOption}}" stepKey="clickAddOption3"/>
<waitForElementVisible selector="{{AdminProductFormBundleSection.bundleOptionXTitle('0')}}" stepKey="waitForBundleOptions"/>
Expand Down Expand Up @@ -72,8 +74,10 @@
<seeElement selector="{{AdminCategoryMessagesSection.SuccessMessage}}" stepKey="deleteMessage"/>

<!--Testing deletion of product-->
<amOnPage url="{{BundleProduct.urlKey}}.html" stepKey="GoToProductPageAgain"/>
<waitForPageLoad stepKey="WaitForProductPageToLoadToShowElement"/>
<actionGroup ref="AmOnPageActionGroup" stepKey="GoToProductPageAgain">
<argument name="url" value="{{BundleProduct.urlKey}}.html"/>
</actionGroup>
<comment userInput="Adding the comment to replace waitForPageLoad tag for preserving Backward Compatibility" stepKey="WaitForProductPageToLoadToShowElement"/>
<dontSeeElement selector="{{StorefrontBundledSection.bundleProductName}}" stepKey="LookingForNameOfProductTwo"/>
</test>
</tests>
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,10 @@
</after>

<!--Go to bundle product creation page-->
<amOnPage url="{{AdminProductCreatePage.url(BundleProduct.set, BundleProduct.type)}}" stepKey="goToBundleProductCreationPage" />
<waitForPageLoad stepKey="waitForBundleProductCreatePageToLoad"/>
<actionGroup ref="AmOnPageActionGroup" stepKey="goToBundleProductCreationPage">
<argument name="url" value="{{AdminProductCreatePage.url(BundleProduct.set, BundleProduct.type)}}"/>
</actionGroup>
<comment userInput="Adding the comment to replace waitForPageLoad tag for preserving Backward Compatibility" stepKey="waitForBundleProductCreatePageToLoad"/>

<!--Create bundle product-->
<conditionalClick selector="{{AdminProductFormBundleSection.bundleItemsToggle}}" dependentSelector="{{AdminProductFormBundleSection.bundleItemsToggle}}" visible="false" stepKey="conditionallyOpenSectionBundleItems"/>
Expand Down Expand Up @@ -70,8 +72,10 @@

<!--Creating Second bundle product-->
<!--Go to bundle product creation page-->
<amOnPage url="{{AdminProductCreatePage.url(BundleProduct.set, BundleProduct.type)}}" stepKey="goToBundleProductCreationPage2" />
<waitForPageLoad stepKey="waitForBundleProductCreatePageToLoad2"/>
<actionGroup ref="AmOnPageActionGroup" stepKey="goToBundleProductCreationPage2">
<argument name="url" value="{{AdminProductCreatePage.url(BundleProduct.set, BundleProduct.type)}}"/>
</actionGroup>
<comment userInput="Adding the comment to replace waitForPageLoad tag for preserving Backward Compatibility" stepKey="waitForBundleProductCreatePageToLoad2"/>

<!--Create bundle product 2-->
<conditionalClick selector="{{AdminProductFormBundleSection.bundleItemsToggle}}" dependentSelector="{{AdminProductFormBundleSection.bundleItemsToggle}}" visible="false" stepKey="conditionallyOpenSectionBundleItems2"/>
Expand Down Expand Up @@ -123,12 +127,17 @@
<actionGroup ref="ClearPageCacheActionGroup" stepKey="ClearPageCaches"/>

<!--Testing deletion of products-->
<amOnPage url="{{BundleProduct.urlKey}}.html" stepKey="GoToProductPageAgain"/>
<waitForPageLoad stepKey="WaitForProductPageToLoadToShowElement"/>
<actionGroup ref="AmOnPageActionGroup" stepKey="GoToProductPageAgain">
<argument name="url" value="{{BundleProduct.urlKey}}.html"/>
</actionGroup>
<comment userInput="Adding the comment to replace waitForPageLoad tag for preserving Backward Compatibility" stepKey="WaitForProductPageToLoadToShowElement"/>

<dontSeeElement stepKey="LookingForNameOfProduct" selector="{{StorefrontBundledSection.bundleProductName}}"/>
<seeElement stepKey="LookingForPageNotFoundMessage" selector="{{StorefrontBundledSection.pageNotFound}}"/>
<amOnPage url="{{BundleProduct.urlKey2}}.html" stepKey="GoToProductPageAgain2"/>
<waitForPageLoad stepKey="WaitForProductPageToLoadToShowElement2"/>
<actionGroup ref="AmOnPageActionGroup" stepKey="GoToProductPageAgain2">
<argument name="url" value="{{BundleProduct.urlKey2}}.html"/>
</actionGroup>
<comment userInput="Adding the comment to replace waitForPageLoad tag for preserving Backward Compatibility" stepKey="WaitForProductPageToLoadToShowElement2"/>
<dontSeeElement stepKey="LookingForNameOfProduct2" selector="{{StorefrontBundledSection.bundleProductName}}"/>
<seeElement stepKey="LookingForPageNotFoundMessage2" selector="{{StorefrontBundledSection.pageNotFound}}"/>
</test>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
</after>
<!-- go to bundle product creation page-->
<amOnPage url="{{AdminProductCreatePage.url(BundleProduct.set, BundleProduct.type)}}" stepKey="goToBundleProductCreationPage" />
<waitForPageLoad stepKey="waitForBundleProductCreatePageToLoad"/>
<actionGroup ref="AmOnPageActionGroup" stepKey="goToBundleProductCreationPage">
<argument name="url" value="{{AdminProductCreatePage.url(BundleProduct.set, BundleProduct.type)}}"/>
</actionGroup>
<comment userInput="Adding the comment to replace waitForPageLoad tag for preserving Backward Compatibility" stepKey="waitForBundleProductCreatePageToLoad"/>

<!-- Add two bundle items -->
<conditionalClick selector="{{AdminProductFormBundleSection.bundleItemsToggle}}" dependentSelector="{{AdminProductFormBundleSection.bundleItemsToggle}}" visible="false" stepKey="conditionallyOpenSectionBundleItems"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,10 @@
</after>

<!--Go to bundle product creation page-->
<amOnPage url="{{AdminProductCreatePage.url(BundleProduct.set, BundleProduct.type)}}" stepKey="goToBundleProductCreationPage" />
<waitForPageLoad stepKey="waitForBundleProductCreatePageToLoad"/>
<actionGroup ref="AmOnPageActionGroup" stepKey="goToBundleProductCreationPage">
<argument name="url" value="{{AdminProductCreatePage.url(BundleProduct.set, BundleProduct.type)}}"/>
</actionGroup>
<comment userInput="Adding the comment to replace waitForPageLoad tag for preserving Backward Compatibility" stepKey="waitForBundleProductCreatePageToLoad"/>

<!--Create bundle product-->
<conditionalClick selector="{{AdminProductFormBundleSection.bundleItemsToggle}}" dependentSelector="{{AdminProductFormBundleSection.bundleItemsToggle}}" visible="false" stepKey="conditionallyOpenSectionBundleItems"/>
Expand Down Expand Up @@ -67,8 +69,10 @@

<!--Creating Second bundle product-->
<!--Go to bundle product creation page-->
<amOnPage url="{{AdminProductCreatePage.url(BundleProduct.set, BundleProduct.type)}}" stepKey="goToBundleProductCreationPage2" />
<waitForPageLoad stepKey="waitForBundleProductCreatePageToLoad2"/>
<actionGroup ref="AmOnPageActionGroup" stepKey="goToBundleProductCreationPage2">
<argument name="url" value="{{AdminProductCreatePage.url(BundleProduct.set, BundleProduct.type)}}"/>
</actionGroup>
<comment userInput="Adding the comment to replace waitForPageLoad tag for preserving Backward Compatibility" stepKey="waitForBundleProductCreatePageToLoad2"/>

<!--Create bundle product 2-->
<conditionalClick selector="{{AdminProductFormBundleSection.bundleItemsToggle}}" dependentSelector="{{AdminProductFormBundleSection.bundleItemsToggle}}" visible="false" stepKey="conditionallyOpenSectionBundleItems2"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@
<actionGroup ref="AdminLogoutActionGroup" stepKey="amOnLogoutPage"/>
</after>
<!--Go to bundle product creation page-->
<amOnPage url="{{AdminProductCreatePage.url(BundleProduct.set, BundleProduct.type)}}" stepKey="goToBundleProductCreationPage" />
<waitForPageLoad stepKey="waitForBundleProductCreatePageToLoad"/>
<actionGroup ref="AmOnPageActionGroup" stepKey="goToBundleProductCreationPage">
<argument name="url" value="{{AdminProductCreatePage.url(BundleProduct.set, BundleProduct.type)}}"/>
</actionGroup>
<comment userInput="Adding the comment to replace waitForPageLoad tag for preserving Backward Compatibility" stepKey="waitForBundleProductCreatePageToLoad"/>

<!--Categories-->
<click selector="{{AdminProductFormBundleSection.categoriesDropDown}}" stepKey="dropDownCategories"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,10 @@
<actionGroup ref="SaveImageActionGroup" stepKey="insertImage"/>
<actionGroup ref="FillOutUploadImagePopupActionGroup" stepKey="fillOutUploadImagePopup" />
<actionGroup ref="AdminSaveCategoryActionGroup" stepKey="saveCatalog"/>
<amOnPage url="/{{SimpleSubCategory.urlKey}}.html" stepKey="goToCategoryFrontPage"/>
<waitForPageLoad stepKey="waitForPageLoad2"/>
<actionGroup ref="AmOnPageActionGroup" stepKey="goToCategoryFrontPage">
<argument name="url" value="/{{SimpleSubCategory.urlKey}}.html"/>
</actionGroup>
<comment userInput="Adding the comment to replace waitForPageLoad tag for preserving Backward Compatibility" stepKey="waitForPageLoad2"/>
<seeElement selector="{{StorefrontCategoryMainSection.mediaDescription(ImageUpload3.content)}}" stepKey="assertMediaDescription"/>
<seeElementInDOM selector="{{StorefrontCategoryMainSection.imageSource(ImageUpload3.fileName)}}" stepKey="assertMediaSource"/>
<after>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,20 @@
<comment userInput="Adding the comment to replace CliIndexerReindexActionGroup action group ('indexer:reindex' commands) for preserving Backward Compatibility" stepKey="reindex"/>
<comment userInput="Adding the comment to replace CliCacheFlushActionGroup action group ('cache:flush' command) for preserving Backward Compatibility" stepKey="flushCache"/>
<!--Verify product is visible in category front page -->
<amOnPage url="$$createCategory.custom_attributes[url_key]$$.html" stepKey="openCategoryStoreFrontPage"/>
<waitForPageLoad stepKey="waitForCategoryPageToLoad"/>
<actionGroup ref="AmOnPageActionGroup" stepKey="openCategoryStoreFrontPage">
<argument name="url" value="$$createCategory.custom_attributes[url_key]$$.html"/>
</actionGroup>
<comment userInput="Adding the comment to replace waitForPageLoad tag for preserving Backward Compatibility" stepKey="waitForCategoryPageToLoad"/>

<seeElement selector="{{StorefrontHeaderSection.NavigationCategoryByName(SimpleSubCategory.name)}}" stepKey="seeCategoryInFrontPage"/>
<click selector="{{StorefrontHeaderSection.NavigationCategoryByName(SimpleSubCategory.name)}}" stepKey="clickOnCategory"/>
<see selector="{{StorefrontCategoryMainSection.productName}}" userInput="{{SimpleProduct.name}}" stepKey="seeProductNameInCategoryPage"/>
<!--Verify Product In Store Front-->
<amOnPage url="$$createSimpleProduct.custom_attributes[url_key]$$.html" stepKey="goToStorefrontPage"/>
<waitForPageLoad stepKey="waitForProductFrontPageToLoad"/>
<actionGroup ref="AmOnPageActionGroup" stepKey="goToStorefrontPage">
<argument name="url" value="$$createSimpleProduct.custom_attributes[url_key]$$.html"/>
</actionGroup>
<comment userInput="Adding the comment to replace waitForPageLoad tag for preserving Backward Compatibility" stepKey="waitForProductFrontPageToLoad"/>

<see selector="{{StorefrontProductInfoMainSection.productName}}" userInput="{{SimpleProduct.name}}" stepKey="seeProductNameInStoreFront"/>
<see selector="{{StorefrontProductInfoMainSection.productPrice}}" userInput="{{SimpleProduct.price}}" stepKey="seeProductPriceInStoreFront"/>
<actionGroup ref="StorefrontAssertProductSkuOnProductPageActionGroup" stepKey="seeProductSkuInStoreFront">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@
</after>

<!-- Go to default attribute set edit page -->
<amOnPage url="{{AdminProductAttributeSetEditPage.url}}/{{AddToDefaultSet.attributeSetId}}/" stepKey="onAttributeSetEdit"/>
<actionGroup ref="AmOnPageActionGroup" stepKey="onAttributeSetEdit">
<argument name="url" value="{{AdminProductAttributeSetEditPage.url}}/{{AddToDefaultSet.attributeSetId}}/"/>
</actionGroup>
<!-- Assert created attribute in unassigned section -->
<see userInput="$$attribute.attribute_code$$" selector="{{AdminProductAttributeSetEditSection.unassignedAttributesTree}}" stepKey="seeAttributeInUnassigned"/>
<!-- Assign attribute to a group -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@
<createData entity="CatalogAttributeSet" stepKey="createAttributeSet"/>

<actionGroup ref="AdminLoginActionGroup" stepKey="login"/>
<amOnPage url="{{AdminProductAttributeSetEditPage.url}}/$$createAttributeSet.attribute_set_id$$/" stepKey="onAttributeSetEdit"/>
<actionGroup ref="AmOnPageActionGroup" stepKey="onAttributeSetEdit">
<argument name="url" value="{{AdminProductAttributeSetEditPage.url}}/$$createAttributeSet.attribute_set_id$$/"/>
</actionGroup>
<actionGroup ref="AssignAttributeToGroupActionGroup" stepKey="assignAttributeToGroup">
<argument name="group" value="Product Details"/>
<argument name="attribute" value="$$createProductAttribute.attribute_code$$"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,10 @@
<actionGroup ref="AdminSaveCategoryActionGroup" stepKey="saveSubCategory"/>
<seeElement selector="{{AdminCategoryMessagesSection.SuccessMessage}}" stepKey="seeSuccessMessage"/>
<!-- Verify Parent Category and Sub category is not visible in navigation menu -->
<amOnPage url="$$createCategory.custom_attributes[url_key]$$/{{SimpleSubCategory.urlKey}}.html" stepKey="openCategoryStoreFrontPage"/>
<waitForPageLoad stepKey="waitForCategoryStoreFrontPageToLoad"/>
<actionGroup ref="AmOnPageActionGroup" stepKey="openCategoryStoreFrontPage">
<argument name="url" value="$$createCategory.custom_attributes[url_key]$$/{{SimpleSubCategory.urlKey}}.html"/>
</actionGroup>
<comment userInput="Adding the comment to replace waitForPageLoad tag for preserving Backward Compatibility" stepKey="waitForCategoryStoreFrontPageToLoad"/>
<dontSeeElement selector="{{StorefrontHeaderSection.NavigationCategoryByName($$createCategory.name$$)}}" stepKey="dontSeeCategoryOnStoreNavigationBar"/>
<dontSeeElement selector="{{StorefrontHeaderSection.NavigationCategoryByName(SimpleSubCategory.name)}}" stepKey="dontSeeSubCategoryOnStoreNavigation"/>
</test>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,11 @@
<magentoCron groups="index" stepKey="reindexInvalidatedIndices"/>
</after>

<amOnPage url="{{AdminProductAttributeSetGridPage.url}}" stepKey="goToAttributeSets"/>
<waitForPageLoad stepKey="waitForPageLoad"/>
<actionGroup ref="AmOnPageActionGroup" stepKey="goToAttributeSets">
<argument name="url" value="{{AdminProductAttributeSetGridPage.url}}"/>
</actionGroup>
<comment userInput="Adding the comment to replace waitForPageLoad tag for preserving Backward Compatibility" stepKey="waitForPageLoad"/>

<actionGroup ref="GoToAttributeSetByNameActionGroup" stepKey="filterProductAttributeSetGridByLabel">
<argument name="name" value="$$createAttributeSet.attribute_set_name$$"/>
</actionGroup>
Expand All @@ -47,9 +50,10 @@
</actionGroup>
<see userInput="$$createProductAttribute.attribute_code$$" selector="{{AdminProductAttributeSetEditSection.groupTree}}" stepKey="seeAttributeInGroup"/>
<actionGroup ref="SaveAttributeSetActionGroup" stepKey="SaveAttributeSet"/>
<amOnPage url="{{AdminProductAttributeSetGridPage.url}}" stepKey="goToAttributeSets2"/>
<waitForPageLoad stepKey="waitForPageLoad2"/>

<actionGroup ref="AmOnPageActionGroup" stepKey="goToAttributeSets2">
<argument name="url" value="{{AdminProductAttributeSetGridPage.url}}"/>
</actionGroup>
<comment userInput="Adding the comment to replace waitForPageLoad tag for preserving Backward Compatibility" stepKey="waitForPageLoad2"/>
<!-- Assert an attribute in the group-->
<actionGroup ref="GoToAttributeSetByNameActionGroup" stepKey="filterProductAttributeSetGridByLabel2">
<argument name="name" value="$$createAttributeSet.attribute_set_name$$"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,10 @@
<see selector="{{AdminProductAttributeGridSection.isComparableColumn}}" userInput="Yes" stepKey="seeComparableColumn"/>

<!--Verify Product Attribute is present in Category Store Front Page -->
<amOnPage url="$$createCategory.custom_attributes[url_key]$$.html" stepKey="goToStorefrontPage"/>
<waitForPageLoad stepKey="waitForProductFrontPageToLoad"/>
<actionGroup ref="AmOnPageActionGroup" stepKey="goToStorefrontPage">
<argument name="url" value="$$createCategory.custom_attributes[url_key]$$.html"/>
</actionGroup>
<comment userInput="Adding the comment to replace waitForPageLoad tag for preserving Backward Compatibility" stepKey="waitForProductFrontPageToLoad"/>
<click selector="{{StorefrontHeaderSection.NavigationCategoryByName(SimpleSubCategory.name)}}" stepKey="clickOnCategory"/>
<waitForPageLoad stepKey="waitForPageToLoad"/>
<click selector="{{StorefrontCategoryMainSection.productLink}}" stepKey="openSearchedProduct"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@
</after>

<!-- Filter product attribute set by attribute set name -->
<amOnPage url="{{AdminProductAttributeSetGridPage.url}}" stepKey="amOnAttributeSetPage"/>
<actionGroup ref="AmOnPageActionGroup" stepKey="amOnAttributeSetPage">
<argument name="url" value="{{AdminProductAttributeSetGridPage.url}}"/>
</actionGroup>
<actionGroup ref="FilterProductAttributeSetGridByAttributeSetNameActionGroup" stepKey="filterProductAttrSetGridByAttrSetName">
<argument name="name" value="$$createAttributeSet.attribute_set_name$$"/>
</actionGroup>
Expand Down
Loading