Skip to content

Commit 7ce75fe

Browse files
committed
MAGETWO-74012: [Github] ImportExport - Sample Files in own Modules #6553
1 parent 336af4a commit 7ce75fe

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

app/code/Magento/Catalog/Test/Mftf/ActionGroup/AdminProductAttributeActionGroup.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,10 @@
3636
<click selector="{{AdminProductAttributeGridSection.attributeCode(attributeCode)}}" stepKey="clickRowToEdit"/>
3737
<waitForPageLoad stepKey="waitForColorAttributePageLoad"/>
3838
</actionGroup>
39+
<!--Save product attribute and see success message-->
40+
<actionGroup name="SaveProductAttribute">
41+
<scrollToTopOfPage stepKey="scrollToTop"/>
42+
<click selector="{{AdminMainActionsSection.save}}" stepKey="clickSaveAttribute"/>
43+
<see selector="{{AdminMessagesSection.success}}" userInput="You saved the product attribute." stepKey="seeSuccessMessage"/>
44+
</actionGroup>
3945
</actionGroups>

app/code/Magento/LayeredNavigation/Test/Mftf/Test/StorefrontCheckingResultsOfFiltersTest.xml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
<click selector="{{AdminProductAttributeSetGridSection.deleteOptionByName('Black')}}" stepKey="deleteOption5"/>
3838

3939
<!--Save attribute-->
40-
<click selector="{{AdminMainActionsSection.save}}" stepKey="clickSaveColorAttribute"/>
40+
<actionGroup ref="SaveProductAttribute" stepKey="clickSaveColorAttribute"/>
4141

4242
<!--Delete Category-->
4343
<deleteData createDataKey="createCategory" stepKey="deleteCategory"/>
@@ -87,7 +87,7 @@
8787
<waitForElementVisible selector="{{AdminNewAttributePanelSection.isDefault('5')}}" time="30" stepKey="waitForOptionRow5"/>
8888
<fillField selector="{{AdminNewAttributePanelSection.optionAdminValue('4')}}" userInput="{{ColorProductAttribute5.name}}" stepKey="fillAdminLabel5"/>
8989
<!--Save attribute-->
90-
<click selector="{{AdminMainActionsSection.save}}" stepKey="clickSaveAttribute"/>
90+
<actionGroup ref="SaveProductAttribute" stepKey="clickSaveAttribute"/>
9191

9292
<!--Create 'material' attribute:-->
9393
<amOnPage url="{{ProductAttributePage.url}}" stepKey="goToNewProductAttributePage"/>
@@ -122,9 +122,7 @@
122122
<selectOption selector="{{AttributePropertiesSection.useInLayeredNavigation}}" userInput="1" stepKey="selectUseInLayeredNavigation"/>
123123

124124
<!--Save attribute-->
125-
<click selector="{{AdminNewAttributePanel.saveAttribute}}" stepKey="clickSaveNewAttribute"/>
126-
<waitForPageLoad stepKey="waitForSavingNewAttribute"/>
127-
<see userInput="You saved the product attribute." stepKey="seeSuccessMessage"/>
125+
<actionGroup ref="SaveProductAttribute" stepKey="clickSaveNewAttribute"/>
128126
<click selector="{{AdminUserGridSection.resetButton}}" stepKey="clickResetButton"/>
129127

130128
<!--Create attribute set-->
@@ -204,8 +202,7 @@
204202
<dragAndDrop selector1="{{AdminNewAttributePanelSection.attributeName('cotton')}}" selector2="{{AdminNewAttributePanelSection.attributeName('fabric')}}" stepKey="selectMaterialsSimple"/>
205203

206204
<!-- Save the product -->
207-
<click selector="{{AdminProductFormActionSection.saveButton}}" stepKey="saveSimpleProduct"/>
208-
<see selector="{{AdminProductMessagesSection.successMessage}}" userInput="You saved the product." stepKey="assertSuccessSimpleProduct"/>
205+
<actionGroup ref="saveProductForm" stepKey="saveSimpleProduct"/>
209206

210207
<!--Clear caches-->
211208
<magentoCLI command="cache:flush" stepKey="flushCache"/>

0 commit comments

Comments
 (0)