|
21 | 21 | <actionGroup ref="AdminLoginActionGroup" stepKey="loginToAdminPanel"/>
|
22 | 22 | </before>
|
23 | 23 | <after>
|
24 |
| - <amOnPage url="{{AdminSystemStorePage.url}}" stepKey="navigateToStoresIndex"/> |
25 |
| - <waitForPageLoad stepKey="waitStoreIndexPageLoad" /> |
26 | 24 | <actionGroup ref="DeleteCustomStoreActionGroup" stepKey="deleteCustomStore">
|
27 |
| - <argument name="storeGroupName" value="customStore.name"/> |
| 25 | + <argument name="storeGroupName" value="customStoreGroup.name"/> |
28 | 26 | </actionGroup>
|
29 | 27 | <actionGroup ref="DeleteCategoryActionGroup" stepKey="deleteCreatedNewRootCategory">
|
30 | 28 | <argument name="categoryEntity" value="NewRootCategory"/>
|
|
37 | 35 | <argument name="categoryEntity" value="NewRootCategory"/>
|
38 | 36 | </actionGroup>
|
39 | 37 | <!--Create subcategory-->
|
40 |
| - <scrollToTopOfPage stepKey="scrollToTopOfPage"/> |
41 |
| - <click selector="{{AdminCategorySidebarTreeSection.categoryInTree(NewRootCategory.name)}}" stepKey="clickOnCreatedNewRootCategory"/> |
42 |
| - <scrollToTopOfPage stepKey="scrollToTopOfPage1"/> |
| 38 | + <actionGroup ref="NavigateToCreatedCategoryActionGroup" stepKey="openCreatedCategory"> |
| 39 | + <argument name="Category" value="NewRootCategory"/> |
| 40 | + </actionGroup> |
| 41 | + |
43 | 42 | <actionGroup ref="CreateCategoryActionGroup" stepKey="createSubcategory">
|
44 | 43 | <argument name="categoryEntity" value="SimpleSubCategory"/>
|
45 | 44 | </actionGroup>
|
46 | 45 | <!--Create a Store-->
|
47 |
| - <amOnPage url="{{AdminSystemStorePage.url}}" stepKey="amOnAdminSystemStorePage"/> |
48 |
| - <waitForPageLoad stepKey="waitForSystemStorePage"/> |
49 |
| - <click selector="{{AdminStoresMainActionsSection.createStoreButton}}" stepKey="selectCreateStore"/> |
50 |
| - <fillField userInput="{{customStore.name}}" selector="{{AdminNewStoreGroupSection.storeGrpNameTextField}}" stepKey="fillStoreName"/> |
51 |
| - <fillField userInput="{{customStore.code}}" selector="{{AdminNewStoreGroupSection.storeGrpCodeTextField}}" stepKey="fillStoreCode"/> |
52 |
| - <selectOption userInput="{{NewRootCategory.name}}" selector="{{AdminNewStoreGroupSection.storeRootCategoryDropdown}}" stepKey="selectStoreStatus"/> |
53 |
| - <click selector="{{AdminStoresMainActionsSection.saveButton}}" stepKey="clickSaveStoreButton"/> |
| 46 | + <actionGroup ref="CreateCustomStoreActionGroup" stepKey="createCustomStore"> |
| 47 | + <argument name="website" value="{{_defaultWebsite.name}}"/> |
| 48 | + <argument name="store" value="{{customStoreGroup.name}}"/> |
| 49 | + <argument name="rootCategory" value="{{NewRootCategory.name}}"/> |
| 50 | + </actionGroup> |
54 | 51 | <!--Create a Store View-->
|
55 |
| - <click selector="{{AdminStoresMainActionsSection.createStoreViewButton}}" stepKey="selectCreateStoreView"/> |
56 |
| - <click selector="{{AdminNewStoreSection.storeGrpDropdown}}" stepKey="clickDropDown"/> |
57 |
| - <selectOption userInput="{{customStore.name}}" selector="{{AdminNewStoreSection.storeGrpDropdown}}" stepKey="selectStoreViewStatus"/> |
58 |
| - <fillField userInput="{{customStore.name}}" selector="{{AdminNewStoreSection.storeNameTextField}}" stepKey="fillStoreViewName"/> |
59 |
| - <fillField userInput="{{customStore.code}}" selector="{{AdminNewStoreSection.storeCodeTextField}}" stepKey="fillStoreViewCode"/> |
60 |
| - <selectOption selector="{{AdminNewStoreSection.statusDropdown}}" userInput="Enabled" stepKey="enableStatus"/> |
61 |
| - <click selector="{{AdminStoresMainActionsSection.saveButton}}" stepKey="clickSaveStoreViewButton"/> |
62 |
| - <waitForElementVisible selector="{{AdminConfirmationModalSection.ok}}" stepKey="waitForModal" /> |
63 |
| - <see selector="{{AdminConfirmationModalSection.title}}" userInput="Warning message" stepKey="seeWarning" /> |
64 |
| - <click selector="{{AdminConfirmationModalSection.ok}}" stepKey="dismissModal" /> |
65 |
| - <waitForElementNotVisible selector="{{AdminNewStoreViewActionsSection.loadingMask}}" stepKey="waitForElementVisible"/> |
| 52 | + <actionGroup ref="AdminCreateStoreViewActionGroup" stepKey="createStoreView"> |
| 53 | + <argument name="StoreGroup" value="customStoreGroup"/> |
| 54 | + <argument name="customStore" value="customStore"/> |
| 55 | + </actionGroup> |
66 | 56 | <!--Go to store front page-->
|
67 |
| - <amOnPage url="/{{NewRootCategory.name}}/{{SimpleSubCategory.name}}.html" stepKey="seeTheCategoryInStoreFrontPage"/> |
68 |
| - <waitForPageLoad time="60" stepKey="waitForStoreFrontPageLoad"/> |
| 57 | + <actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="openHomepage"/> |
69 | 58 | <!--Verify subcategory displayed in store front page-->
|
70 |
| - <click selector="{{StorefrontFooterSection.switchStoreButton}}" stepKey="selectMainWebsite"/> |
71 |
| - <click selector="{{StorefrontFooterSection.storeLink(customStore.name)}}" stepKey="selectCustomStore"/> |
72 |
| - <waitForPageLoad stepKey="waitForCategoryToLoad"/> |
73 |
| - <seeElement selector="{{StorefrontHeaderSection.NavigationCategoryByName(SimpleSubCategory.name)}}" stepKey="seeSubCategoryInStoreFrontPage"/> |
| 59 | + <actionGroup ref="StorefrontSwitchStoreActionGroup" stepKey="switchToCustomStore"> |
| 60 | + <argument name="storeName" value="{{customStoreGroup.name}}"/> |
| 61 | + </actionGroup> |
| 62 | + <actionGroup ref="StorefrontAssertCategoryNameIsShownInMenuActionGroup" stepKey="seeCatergoryNameInStoreFront"> |
| 63 | + <argument name="categoryName" value="{{SimpleSubCategory.name}}"/> |
| 64 | + </actionGroup> |
74 | 65 | </test>
|
75 | 66 | </tests>
|
0 commit comments