Skip to content

[MFTF] Repetitive elements replaced by AdminOpenAttributeSetGridPageActionGroup #35029

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 1 commit 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 @@ -25,8 +25,8 @@
<actionGroup ref="AdminLogoutActionGroup" stepKey="amOnLogoutPage"/>
</after>
<!-- Create a new attribute set -->
<amOnPage url="{{AdminProductAttributeSetGridPage.url}}" stepKey="goToAttributeSets"/>
<waitForPageLoad stepKey="wait1"/>
<actionGroup ref="AdminOpenAttributeSetGridPageActionGroup" stepKey="goToAttributeSets"/>
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="wait1"/>
<click selector="{{AdminProductAttributeSetGridSection.addAttributeSetBtn}}" stepKey="clickAddAttributeSet"/>
<fillField selector="{{AdminProductAttributeSetSection.name}}" userInput="{{ProductAttributeFrontendLabel.label}}" stepKey="fillName"/>
<selectOption selector="{{AdminProductAttributeSetSection.basedOn}}" userInput="Default" stepKey="selectDefaultSet"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
<magentoCron groups="index" stepKey="reindexInvalidatedIndices"/>
</after>

<amOnPage url="{{AdminProductAttributeSetGridPage.url}}" stepKey="goToAttributeSets"/>
<waitForPageLoad stepKey="waitForPageLoad"/>
<actionGroup ref="AdminOpenAttributeSetGridPageActionGroup" stepKey="goToAttributeSets"/>
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForPageLoad"/>
<actionGroup ref="GoToAttributeSetByNameActionGroup" stepKey="filterProductAttributeSetGridByLabel">
<argument name="name" value="$$createAttributeSet.attribute_set_name$$"/>
</actionGroup>
Expand All @@ -47,8 +47,8 @@
</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="AdminOpenAttributeSetGridPageActionGroup" stepKey="goToAttributeSets2"/>
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForPageLoad2"/>

<!-- Assert an attribute in the group-->
<actionGroup ref="GoToAttributeSetByNameActionGroup" stepKey="filterProductAttributeSetGridByLabel2">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
</after>

<!-- Filter product attribute set by attribute set name -->
<amOnPage url="{{AdminProductAttributeSetGridPage.url}}" stepKey="amOnAttributeSetPage"/>
<actionGroup ref="AdminOpenAttributeSetGridPageActionGroup" stepKey="amOnAttributeSetPage"/>
<actionGroup ref="FilterProductAttributeSetGridByAttributeSetNameActionGroup" stepKey="filterProductAttrSetGridByAttrSetName">
<argument name="name" value="$$createAttributeSet.attribute_set_name$$"/>
</actionGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
</after>

<!-- Filter product attribute set by attribute set name -->
<amOnPage url="{{AdminProductAttributeSetGridPage.url}}" stepKey="amOnAttributeSetPage"/>
<actionGroup ref="AdminOpenAttributeSetGridPageActionGroup" stepKey="amOnAttributeSetPage"/>
<actionGroup ref="FilterProductAttributeSetGridByAttributeSetNameActionGroup" stepKey="filterProductAttrSetGridByAttrSetName">
<argument name="name" value="$$createAttributeSet.attribute_set_name$$"/>
</actionGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
</after>

<!-- Navigate to Stores > Attributes > Attribute Set -->
<amOnPage url="{{AdminProductAttributeSetGridPage.url}}" stepKey="goToAttributeSetPage"/>
<waitForPageLoad stepKey="waitForPageLoad"/>
<actionGroup ref="AdminOpenAttributeSetGridPageActionGroup" stepKey="goToAttributeSetPage"/>
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForPageLoad"/>

<!-- Search and open Attribute Set from preconditions -->
<actionGroup ref="GoToAttributeSetByNameActionGroup" stepKey="searchAttribute">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@

<after>
<!-- Delete the new attribute set -->
<amOnPage url="{{AdminProductAttributeSetGridPage.url}}" stepKey="goToAttributeSets"/>
<waitForPageLoad stepKey="wait1"/>
<actionGroup ref="AdminOpenAttributeSetGridPageActionGroup" stepKey="goToAttributeSets"/>
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="wait1"/>
<fillField selector="{{AdminProductAttributeSetGridSection.filter}}" userInput="{{ProductAttributeFrontendLabel.label}}" stepKey="filterByName"/>
<click selector="{{AdminProductAttributeSetGridSection.searchBtn}}" stepKey="clickSearch"/>
<click selector="{{AdminProductAttributeSetGridSection.nthRow('1')}}" stepKey="clickFirstRow"/>
Expand All @@ -39,8 +39,8 @@
</after>

<!-- Create a new attribute set -->
<amOnPage url="{{AdminProductAttributeSetGridPage.url}}" stepKey="goToAttributeSets"/>
<waitForPageLoad stepKey="wait1"/>
<actionGroup ref="AdminOpenAttributeSetGridPageActionGroup" stepKey="goToAttributeSets"/>
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="wait1"/>
<click selector="{{AdminProductAttributeSetGridSection.addAttributeSetBtn}}" stepKey="clickAddAttributeSet"/>
<fillField selector="{{AdminProductAttributeSetSection.name}}" userInput="{{ProductAttributeFrontendLabel.label}}" stepKey="fillName"/>
<selectOption selector="{{AdminProductAttributeSetSection.basedOn}}" userInput="Default" stepKey="selectDefaultSet"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<deleteData createDataKey="createCategory" stepKey="deleteCategory"/>
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
</after>
<amOnPage url="{{AdminProductAttributeSetGridPage.url}}" stepKey="goToAttributeSetsPage"/>
<actionGroup ref="AdminOpenAttributeSetGridPageActionGroup" stepKey="goToAttributeSetsPage"/>
<fillField selector="{{AdminProductAttributeSetGridSection.filter}}" userInput="$$createAttributeSet.attribute_set_name$$" stepKey="filterByAttributeName"/>
<!-- Filter the grid to find created below attribute set -->
<click selector="{{AdminProductAttributeSetGridSection.searchBtn}}" stepKey="clickSearch"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
<magentoCron groups="index" stepKey="reindexInvalidatedIndices"/>
</after>
<!-- Open Product Attribute Set Page -->
<amOnPage url="{{AdminProductAttributeSetGridPage.url}}" stepKey="goToAttributeSets"/>
<waitForPageLoad stepKey="waitForProductAttributeSetPageToLoad"/>
<actionGroup ref="AdminOpenAttributeSetGridPageActionGroup" stepKey="goToAttributeSets"/>
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForProductAttributeSetPageToLoad"/>
<click selector="{{AdminProductAttributeSetGridSection.resetFilter}}" stepKey="clickOnResetFilter"/>
<!-- Filter created Product Attribute Set -->
<fillField selector="{{AdminProductAttributeSetGridSection.filter}}" userInput="$$createAttributeSet.attribute_set_name$$" stepKey="fillAttributeSetName"/>
Expand Down Expand Up @@ -65,8 +65,8 @@
</actionGroup>
<see selector="{{AdminProductAttributeGridSection.FirstRow}}" userInput="We couldn't find any records." stepKey="seeEmptyRow"/>
<!-- Verify Attribute is not present in Product Attribute Set Page -->
<amOnPage url="{{AdminProductAttributeSetGridPage.url}}" stepKey="goToAttributeSets1"/>
<waitForPageLoad stepKey="waitForProductAttributeSetPageToLoad1"/>
<actionGroup ref="AdminOpenAttributeSetGridPageActionGroup" stepKey="goToAttributeSets1"/>
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForProductAttributeSetPageToLoad1"/>
<click selector="{{AdminProductAttributeSetGridSection.resetFilter}}" stepKey="clickOnResetFilter1"/>
<fillField selector="{{AdminProductAttributeSetGridSection.filter}}" userInput="$$createAttributeSet.attribute_set_name$$" stepKey="fillAttributeSetName1"/>
<click selector="{{AdminProductAttributeSetGridSection.searchBtn}}" stepKey="clickOnSearchButton1"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
<magentoCron groups="index" stepKey="reindexInvalidatedIndices"/>
</after>
<!-- Open Product Attribute Set Page -->
<amOnPage url="{{AdminProductAttributeSetGridPage.url}}" stepKey="goToAttributeSets"/>
<waitForPageLoad stepKey="waitForProductAttributeSetPageToLoad"/>
<actionGroup ref="AdminOpenAttributeSetGridPageActionGroup" stepKey="goToAttributeSets"/>
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForProductAttributeSetPageToLoad"/>
<click selector="{{AdminProductAttributeSetGridSection.resetFilter}}" stepKey="clickOnResetFilter"/>
<!--Select Default Product Attribute Set -->
<fillField selector="{{AdminProductAttributeSetGridSection.filter}}" userInput="Default" stepKey="fillAttributeSetName"/>
Expand Down Expand Up @@ -70,8 +70,8 @@
</actionGroup>
<see stepKey="seeEmptyRow" selector="{{AdminProductAttributeGridSection.FirstRow}}" userInput="We couldn't find any records."/>
<!-- Verify Attribute is not present in Product Attribute Set Page -->
<amOnPage url="{{AdminProductAttributeSetGridPage.url}}" stepKey="goToAttributeSets1"/>
<waitForPageLoad stepKey="waitForProductAttributeSetPageToLoad1"/>
<actionGroup ref="AdminOpenAttributeSetGridPageActionGroup" stepKey="goToAttributeSets1"/>
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForProductAttributeSetPageToLoad1"/>
<click selector="{{AdminProductAttributeSetGridSection.resetFilter}}" stepKey="clickOnResetFilter1"/>
<fillField selector="{{AdminProductAttributeSetGridSection.filter}}" userInput="Default" stepKey="fillAttributeSetName1"/>
<click selector="{{AdminProductAttributeSetGridSection.searchBtn}}" stepKey="clickOnSearchButton1"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<magentoCron groups="index" stepKey="reindexInvalidatedIndices"/>
</after>
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin1"/>
<amOnPage url="{{AdminProductAttributeSetGridPage.url}}" stepKey="amOnAttributeSetPage"/>
<actionGroup ref="AdminOpenAttributeSetGridPageActionGroup" stepKey="amOnAttributeSetPage"/>
<click selector="{{AdminProductAttributeSetGridSection.AttributeSetName('Default')}}" stepKey="chooseDefaultAttributeSet"/>
<waitForPageLoad stepKey="waitForAttributeSetPageLoad"/>
<dragAndDrop selector1="{{UnassignedAttributes.ProductAttributeName('testattribute')}}" selector2="{{Group.FolderName('Product Details')}}" stepKey="moveProductAttributeToGroup"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<magentoCron groups="index" stepKey="reindexInvalidatedIndices"/>
</after>
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin1"/>
<amOnPage url="{{AdminProductAttributeSetGridPage.url}}" stepKey="amOnAttributeSetPage"/>
<actionGroup ref="AdminOpenAttributeSetGridPageActionGroup" stepKey="amOnAttributeSetPage"/>
<click selector="{{AdminProductAttributeSetGridSection.AttributeSetName('Default')}}" stepKey="chooseDefaultAttributeSet"/>
<waitForPageLoad stepKey="waitForAttributeSetPageLoad"/>
<dragAndDrop selector1="{{UnassignedAttributes.ProductAttributeName('testattribute')}}" selector2="{{Group.FolderName('Product Details')}}" stepKey="moveProductAttributeToGroup"/>
Expand Down