Skip to content

Commit 7001415

Browse files
committed
MAGETWO-66442: Changes in default scope not effect product images in other scopes
- Update automated test
1 parent 30f5c61 commit 7001415

File tree

2 files changed

+4
-18
lines changed

2 files changed

+4
-18
lines changed

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

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -215,18 +215,6 @@
215215
<waitForElementNotVisible selector="{{AdminProductFormAdvancedPricingSection.specialPrice}}" stepKey="waitForCloseModalWindow"/>
216216
</actionGroup>
217217

218-
<!--Select Product In Websites-->
219-
<actionGroup name="SelectProductInWebsitesActionGroup">
220-
<arguments>
221-
<argument name="website" type="string"/>
222-
</arguments>
223-
<scrollTo selector="{{CreateProductSection.productInWebsite}}" stepKey="ScrollToWebsites"/>
224-
<click selector="{{CreateProductSection.productInWebsite}}" stepKey="ClickTpOpenProductInWebsite"/>
225-
<waitForPageLoad stepKey="waitForPageOpened"/>
226-
<click selector="{{CreateProductSection.isSelected(website)}}" stepKey="SelectWebsite"/>
227-
<click selector="{{CreateProductSection.saveButton}}" stepKey="clickSaveProduct"/>
228-
</actionGroup>
229-
230218
<!--Switch to New Store view-->
231219
<actionGroup name="SwitchToTheNewStoreView">
232220
<arguments>

app/code/Magento/Catalog/Test/Mftf/Test/AdminRemoveImageAffectsAllScopesTest.xml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
-->
88

99
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10-
xsi:noNamespaceSchemaLocation="../../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/testSchema.xsd">
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
1111
<test name="AdminRemoveImageAffectsAllScopesTest">
1212
<annotations>
1313
<features value="Catalog"/>
@@ -65,7 +65,7 @@
6565
</actionGroup>
6666
<deleteData createDataKey="category" stepKey="deletePreReqCategory"/>
6767
<deleteData createDataKey="product" stepKey="deleteFirstProduct"/>
68-
<amOnPage url="{{AdminLogoutPage.url}}" stepKey="amOnLogoutPage"/>
68+
<actionGroup ref="logout" stepKey="logout"/>
6969
</after>
7070

7171
<!--Create product-->
@@ -86,13 +86,11 @@
8686
<actionGroup ref="addProductImage" stepKey="addSecondImageForProduct">
8787
<argument name="image" value="MagentoLogo"/>
8888
</actionGroup>
89-
9089
<!--"Product in Websites": select both Websites-->
91-
<actionGroup ref="SelectProductInWebsitesActionGroup" stepKey="selectFirstWebsite">
90+
<actionGroup ref="ProductSetWebsite" stepKey="ProductSetWebsite1">
9291
<argument name="website" value="FirstWebSite"/>
9392
</actionGroup>
94-
95-
<actionGroup ref="SelectProductInWebsitesActionGroup" stepKey="selectSecondWebsite">
93+
<actionGroup ref="ProductSetWebsite" stepKey="ProductSetWebsite2">
9694
<argument name="website" value="SecondWebSite"/>
9795
</actionGroup>
9896

0 commit comments

Comments
 (0)