Skip to content

Commit 9e7b4c0

Browse files
committed
MAGETWO-91545: 404 Error not found page issue in change status and update attribute from product grid
- addressed CR comments
1 parent 6feedb2 commit 9e7b4c0

File tree

1 file changed

+29
-30
lines changed

1 file changed

+29
-30
lines changed

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

Lines changed: 29 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -18,45 +18,44 @@
1818
<testCaseId value="MAGETWO-91436"/>
1919
<group value="product"/>
2020
</annotations>
21+
<before>
22+
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
23+
<!--Create new website -->
24+
<actionGroup ref="AdminCreateWebsiteActionGroup" stepKey="createAdditionalWebsite">
25+
<argument name="newWebsiteName" value="Second Website"/>
26+
<argument name="websiteCode" value="second_website"/>
27+
</actionGroup>
28+
29+
<!--Create new Store Group -->
30+
<actionGroup ref="AdminCreateNewStoreGroupActionGroup" stepKey="createNewStore">
31+
<argument name="website" value="Second Website"/>
32+
<argument name="storeGroupName" value="Second Store"/>
33+
<argument name="storeGroupCode" value="second_store"/>
34+
</actionGroup>
2135

36+
<!--Create Store view -->
37+
<amOnPage url="{{AdminSystemStorePage.url}}" stepKey="amOnAdminSystemStorePage"/>
38+
<click selector="{{AdminStoresMainActionsSection.createStoreViewButton}}" stepKey="createStoreViewButton"/>
39+
<waitForPageLoad stepKey="waitForProductPageLoad"/>
40+
<selectOption userInput="Second Store" selector="{{AdminNewStoreSection.storeGrpDropdown}}" stepKey="selectStoreGroup"/>
41+
<fillField userInput="Second Store View" selector="{{AdminNewStoreSection.storeNameTextField}}" stepKey="fillStoreViewName"/>
42+
<fillField userInput="second_store_view" selector="{{AdminNewStoreSection.storeCodeTextField}}" stepKey="fillStoreViewCode"/>
43+
<selectOption userInput="1" selector="{{AdminNewStoreSection.statusDropdown}}" stepKey="enableStoreViewStatus"/>
44+
<click selector="{{AdminStoresMainActionsSection.saveButton}}" stepKey="clickStoreViewSaveButton"/>
45+
<waitForElementVisible selector="{{AdminNewStoreSection.acceptNewStoreViewCreation}}" stepKey="waitForAcceptNewStoreViewCreationModal" />
46+
<conditionalClick selector="{{AdminNewStoreSection.acceptNewStoreViewCreation}}" dependentSelector="{{AdminNewStoreSection.acceptNewStoreViewCreation}}" visible="true" stepKey="AcceptNewStoreViewCreation"/>
47+
<waitForElementVisible selector="{{AdminStoresGridSection.storeFilterTextField}}" stepKey="waitForPageReolad"/>
48+
<see userInput="You saved the store view." stepKey="seeSaveMessage" />
49+
</before>
2250
<after>
2351
<actionGroup ref="ResetWebUrlOptions" stepKey="resetUrlOption"/>
2452
<actionGroup ref="AdminDeleteWebsiteActionGroup" stepKey="deleteTestWebsite">
2553
<argument name="websiteName" value="Second Website"/>
2654
</actionGroup>
27-
2855
<amOnPage url="admin/admin/auth/logout/" stepKey="amOnLogoutPage"/>
2956
</after>
30-
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
31-
<actionGroup ref="EnableWebUrlOptions" stepKey="addStoreCodeToUrls"/>
32-
33-
<!--Create new website -->
34-
<actionGroup ref="AdminCreateWebsiteActionGroup" stepKey="createAdditionalWebsite">
35-
<argument name="newWebsiteName" value="Second Website"/>
36-
<argument name="websiteCode" value="second_website"/>
37-
</actionGroup>
38-
39-
<!--Create new Store Group -->
40-
<actionGroup ref="AdminCreateNewStoreGroupActionGroup" stepKey="createNewStore">
41-
<argument name="website" value="Second Website"/>
42-
<argument name="storeGroupName" value="Second Store"/>
43-
<argument name="storeGroupCode" value="second_store"/>
44-
</actionGroup>
45-
46-
<!--Create Store view -->
47-
<amOnPage url="{{AdminSystemStorePage.url}}" stepKey="amOnAdminSystemStorePage"/>
48-
<click selector="{{AdminStoresMainActionsSection.createStoreViewButton}}" stepKey="createStoreViewButton"/>
49-
<waitForPageLoad stepKey="waitForProductPageLoad"/>
50-
<selectOption userInput="Second Store" selector="{{AdminNewStoreSection.storeGrpDropdown}}" stepKey="selectStoreGroup"/>
51-
<fillField userInput="Second Store View" selector="{{AdminNewStoreSection.storeNameTextField}}" stepKey="fillStoreViewName"/>
52-
<fillField userInput="second_store_view" selector="{{AdminNewStoreSection.storeCodeTextField}}" stepKey="fillStoreViewCode"/>
53-
<selectOption userInput="1" selector="{{AdminNewStoreSection.statusDropdown}}" stepKey="enableStoreViewStatus"/>
54-
<click selector="{{AdminStoresMainActionsSection.saveButton}}" stepKey="clickStoreViewSaveButton"/>
55-
<waitForElementVisible selector="{{AdminNewStoreSection.acceptNewStoreViewCreation}}" stepKey="waitForAcceptNewStoreViewCreationModal" />
56-
<conditionalClick selector="{{AdminNewStoreSection.acceptNewStoreViewCreation}}" dependentSelector="{{AdminNewStoreSection.acceptNewStoreViewCreation}}" visible="true" stepKey="AcceptNewStoreViewCreation"/>
57-
<waitForElementVisible selector="{{AdminStoresGridSection.storeFilterTextField}}" stepKey="waitForPageReolad"/>
58-
<see userInput="You saved the store view." stepKey="seeSaveMessage" />
5957

58+
<actionGroup ref="EnableWebUrlOptions" stepKey="addStoreCodeToUrls"/>
6059
<!--Create a Simple Product with Custom Options -->
6160
<amOnPage url="{{AdminProductIndexPage.url}}" stepKey="navigateToCatalogProductGrid"/>
6261
<click selector="{{AdminProductGridActionSection.addProductToggle}}" stepKey="clickAddProductDropdown"/>

0 commit comments

Comments
 (0)