Skip to content

[MFTF] Repetitive elements replaced by AdminOpenAttributeSetByNameActionGroup #35031

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 @@ -41,8 +41,10 @@
<fillField selector="{{AdminProductAttributeSetGridSection.filter}}" userInput="$$createAttributeSet.attribute_set_name$$" stepKey="fillAttributeSetName"/>
<click selector="{{AdminProductAttributeSetGridSection.searchBtn}}" stepKey="clickOnSearchButton"/>
<waitForPageLoad stepKey="waitForPageToLoad"/>
<click selector="{{AdminProductAttributeSetGridSection.AttributeSetName($$createAttributeSet.attribute_set_name$$)}}" stepKey="clickOnAttributeSet"/>
<waitForPageLoad stepKey="waitForAttributeSetEditPageToLoad"/>
<actionGroup ref="AdminOpenAttributeSetByNameActionGroup" stepKey="clickOnAttributeSet">
<argument name="attributeSetName" value="$$createAttributeSet.attribute_set_name$$"/>
</actionGroup>
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForAttributeSetEditPageToLoad"/>
<!--Assign Attribute to the Group and save the attribute set -->
<actionGroup ref="AssignAttributeToGroupActionGroup" stepKey="assignAttribute">
<argument name="group" value="Product Details"/>
Expand Down Expand Up @@ -71,8 +73,10 @@
<fillField selector="{{AdminProductAttributeSetGridSection.filter}}" userInput="$$createAttributeSet.attribute_set_name$$" stepKey="fillAttributeSetName1"/>
<click selector="{{AdminProductAttributeSetGridSection.searchBtn}}" stepKey="clickOnSearchButton1"/>
<waitForPageLoad stepKey="waitForPageToLoad1"/>
<click selector="{{AdminProductAttributeSetGridSection.AttributeSetName($$createAttributeSet.attribute_set_name$$)}}" stepKey="clickOnAttributeSet1"/>
<waitForPageLoad stepKey="waitForAttributeSetEditPageToLoad1"/>
<actionGroup ref="AdminOpenAttributeSetByNameActionGroup" stepKey="clickOnAttributeSet1">
<argument name="attributeSetName" value="$$createAttributeSet.attribute_set_name$$"/>
</actionGroup>
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForAttributeSetEditPageToLoad1"/>
<dontSee userInput="$$attribute.attribute_code$$" selector="{{AdminProductAttributeSetEditSection.groupTree}}" stepKey="dontSeeAttributeInAttributeGroupTree"/>
<dontSee userInput="$$attribute.attribute_code$$" selector="{{AdminProductAttributeSetEditSection.unassignedAttributesTree}}" stepKey="dontSeeAttributeInUnassignedAttributeTree"/>
</test>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
</after>
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin1"/>
<amOnPage url="{{AdminProductAttributeSetGridPage.url}}" stepKey="amOnAttributeSetPage"/>
<click selector="{{AdminProductAttributeSetGridSection.AttributeSetName('Default')}}" stepKey="chooseDefaultAttributeSet"/>
<waitForPageLoad stepKey="waitForAttributeSetPageLoad"/>
<actionGroup ref="AdminOpenAttributeSetByNameActionGroup" stepKey="chooseDefaultAttributeSet"/>
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForAttributeSetPageLoad"/>
<dragAndDrop selector1="{{UnassignedAttributes.ProductAttributeName('testattribute')}}" selector2="{{Group.FolderName('Product Details')}}" stepKey="moveProductAttributeToGroup"/>
<click selector="{{AttributeSetSection.Save}}" stepKey="saveAttributeSet"/>
<waitForLoadingMaskToDisappear stepKey="waitForLoadingMaskToDisappear" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
</after>
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin1"/>
<amOnPage url="{{AdminProductAttributeSetGridPage.url}}" stepKey="amOnAttributeSetPage"/>
<click selector="{{AdminProductAttributeSetGridSection.AttributeSetName('Default')}}" stepKey="chooseDefaultAttributeSet"/>
<waitForPageLoad stepKey="waitForAttributeSetPageLoad"/>
<actionGroup ref="AdminOpenAttributeSetByNameActionGroup" stepKey="chooseDefaultAttributeSet"/>
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForAttributeSetPageLoad"/>
<dragAndDrop selector1="{{UnassignedAttributes.ProductAttributeName('testattribute')}}" selector2="{{Group.FolderName('Product Details')}}" stepKey="moveProductAttributeToGroup"/>
<click selector="{{AttributeSetSection.Save}}" stepKey="saveAttributeSet"/>
<waitForLoadingMaskToDisappear stepKey="waitForLoadingMaskToDisappear" />
Expand Down