Skip to content

Commit ccd72a4

Browse files
committed
MAGETWO-92454: "Use Default Value" Checkbox value for product with changed website scope
- Add some waitForPageLoads to make test more robust
1 parent 910fc17 commit ccd72a4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

dev/tests/acceptance/tests/functional/Magento/FunctionalTest/Catalog/Test/AdminMultipleWebsitesUseDefaultValuesTest.xml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/testSchema.xsd">
1111
<test name="AdminMultipleWebsitesUseDefaultValuesTest">
1212
<annotations>
13+
<features value="Catalog"/>
1314
<title value="Use Default Value checkboxes should be checked for new website scope"/>
1415
<description value="Use Default Value checkboxes for product attribute should be checked for new website scope"/>
1516
<severity value="MAJOR"/>
@@ -18,7 +19,7 @@
1819
</annotations>
1920
<after>
2021
<actionGroup ref="AdminDeleteWebsiteActionGroup" stepKey="deleteSecondWebsite">
21-
<argument name="websiteName" value="Second Website"/>
22+
<argument name="websiteName" value="Second Website"/>
2223
</actionGroup>
2324
<amOnPage url="admin/admin/auth/logout/" stepKey="amOnLogoutPage"/>
2425
</after>
@@ -35,6 +36,7 @@
3536

3637
<!--Create Store view -->
3738
<amOnPage url="{{AdminSystemStorePage.url}}" stepKey="amOnAdminSystemStorePage"/>
39+
<waitForPageLoad stepKey="waitForSystemStorePage"/>
3840
<click selector="{{AdminStoresMainActionsSection.createStoreViewButton}}" stepKey="createStoreViewButton"/>
3941
<waitForPageLoad stepKey="waitForProductPageLoad"/>
4042
<selectOption userInput="Second Store" selector="{{AdminNewStoreSection.storeGrpDropdown}}" stepKey="selectStoreGroup"/>
@@ -49,6 +51,7 @@
4951

5052
<!--Create a Simple Product -->
5153
<amOnPage url="{{AdminProductIndexPage.url}}" stepKey="navigateToCatalogProductGrid"/>
54+
<waitForPageLoad stepKey="waitForProductGrid"/>
5255
<click selector="{{AdminProductGridActionSection.addProductToggle}}" stepKey="clickAddProductDropdown"/>
5356
<click selector="{{AdminProductGridActionSection.addSimpleProduct}}" stepKey="clickAddSimpleProduct"/>
5457
<fillField userInput="{{_defaultProduct.name}}" selector="{{AdminProductFormSection.productName}}" stepKey="fillProductName"/>
@@ -67,7 +70,6 @@
6770
<click selector="{{AdminProductFormActionSection.changeStoreButton}}" stepKey="clickStoreviewSwitcher"/>
6871
<click selector="{{AdminProductFormActionSection.selectStoreView('Second Store View')}}" stepKey="chooseStoreView"/>
6972
<click selector="{{AdminConfirmationModalSection.ok}}" stepKey="acceptStoreSwitchingMessage"/>
70-
<!--<waitForPageLoad stepKey="waitForStoreViewSwitched"/>-->
7173
<waitForPageLoad time="30" stepKey="waitForPageLoad9"/>
7274
<see userInput="Second Store View" selector="{{AdminMainActionsSection.storeSwitcher}}" stepKey="seeNewStoreViewName"/>
7375

0 commit comments

Comments
 (0)