|
34 | 34 | <actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
|
35 | 35 | </after>
|
36 | 36 | <!--Open Product Index Page and filter the product-->
|
37 |
| - <amOnPage url="{{AdminProductIndexPage.url}}" stepKey="navigateToProductIndex"/> |
38 |
| - <waitForPageLoad stepKey="waitForProductIndexPageToLoad"/> |
| 37 | + <actionGroup ref="AdminOpenProductIndexPageActionGroup" stepKey="openProductIndexPage"/> |
39 | 38 | <actionGroup ref="FilterProductGridBySkuActionGroup" stepKey="filterProduct">
|
40 | 39 | <argument name="product" value="SimpleProduct"/>
|
41 | 40 | </actionGroup>
|
42 | 41 | <!-- Update product Advanced Inventory Setting -->
|
43 |
| - <click stepKey="openSelectedProduct" selector="{{AdminProductGridSection.productRowBySku($$createSimpleProduct.sku$$)}}"/> |
44 |
| - <waitForPageLoad stepKey="waitForProductToLoad"/> |
45 |
| - <click selector="{{AdminProductFormSection.advancedInventoryLink}}" stepKey="clickOnAdvancedInventoryLink"/> |
46 |
| - <waitForPageLoad stepKey="waitForAdvancedInventoryPageToLoad"/> |
47 |
| - <uncheckOption selector="{{AdminProductFormAdvancedInventorySection.useConfigSettings}}" stepKey="uncheckConfigSetting"/> |
48 |
| - <selectOption selector="{{AdminProductFormAdvancedInventorySection.manageStock}}" userInput="Yes" stepKey="clickOnManageStock"/> |
49 |
| - <fillField selector="{{AdminProductFormAdvancedInventorySection.advancedInventoryQty}}" userInput="5" stepKey="fillProductQty"/> |
50 |
| - <uncheckOption selector="{{AdminProductFormAdvancedInventorySection.miniQtyConfigSetting}}" stepKey="uncheckMiniQtyCheckBox"/> |
51 |
| - <fillField selector="{{AdminProductFormAdvancedInventorySection.miniQtyAllowedInCart}}" userInput="1" stepKey="fillMiniAllowedQty"/> |
52 |
| - <uncheckOption selector="{{AdminProductFormAdvancedInventorySection.maxiQtyConfigSetting}}" stepKey="uncheckMaxQtyCheckBox"/> |
53 |
| - <fillField selector="{{AdminProductFormAdvancedInventorySection.maxiQtyAllowedInCart}}" userInput="10000" stepKey="fillMaxAllowedQty"/> |
54 |
| - <selectOption selector="{{AdminProductFormAdvancedInventorySection.qtyUsesDecimals}}" userInput="Yes" stepKey="selectQuatityUsesDecimal"/> |
55 |
| - <uncheckOption selector="{{AdminProductFormAdvancedInventorySection.notifyBelowQtyConfigSetting}}" stepKey="uncheckNotifyBelowQtyheckBox"/> |
56 |
| - <fillField selector="{{AdminProductFormAdvancedInventorySection.notifyBelowQty}}" userInput="1" stepKey="fillNotifyBelowQty"/> |
57 |
| - <selectOption selector="{{AdminProductFormAdvancedInventorySection.advancedInventoryStockStatus}}" userInput="Out of Stock" stepKey="selectOutOfStock"/> |
58 |
| - <click selector="{{AdminProductFormAdvancedInventorySection.doneButton}}" stepKey="clickOnDoneButton"/> |
59 |
| - <waitForPageLoad stepKey="waitForProductPageToSave"/> |
60 |
| - <click selector="{{AdminProductFormActionSection.saveButton}}" stepKey="clickOnSaveButton"/> |
61 |
| - <waitForLoadingMaskToDisappear stepKey="waitForLoading"/> |
62 |
| - <see selector="{{AdminCategoryMessagesSection.SuccessMessage}}" userInput="You saved the product." stepKey="messageYouSavedTheProductIsShown"/> |
| 42 | + <actionGroup ref="OpenProductForEditByClickingRowXColumnYInProductGridActionGroup" stepKey="openProduct"/> |
| 43 | + <actionGroup ref="AdminClickOnAdvancedInventoryLinkActionGroup" stepKey="clickOnAdvancedInventoryLink"/> |
| 44 | + <actionGroup ref="AdminSetManageStockConfigActionGroup" stepKey="setManageStockConfig"> |
| 45 | + <argument name="value" value="Yes"/> |
| 46 | + </actionGroup> |
| 47 | + <actionGroup ref="AdminFillAdvancedInventoryQtyActionGroup" stepKey="fillProductQty"> |
| 48 | + <argument name="qty" value="5"/> |
| 49 | + </actionGroup> |
| 50 | + <actionGroup ref="AdminSetMinAllowedQtyForProductActionGroup" stepKey="fillMiniAllowedQty"> |
| 51 | + <argument name="qty" value="1"/> |
| 52 | + </actionGroup> |
| 53 | + <actionGroup ref="AdminSetMaxAllowedQtyForProductActionGroup" stepKey="fillMaxAllowedQty"> |
| 54 | + <argument name="qty" value="1000"/> |
| 55 | + </actionGroup> |
| 56 | + <actionGroup ref="AdminSetQtyUsesDecimalsConfigActionGroup" stepKey="setQtyUsesDecimalsConfig"> |
| 57 | + <argument name="value" value="Yes"/> |
| 58 | + </actionGroup> |
| 59 | + <actionGroup ref="AdminSetNotifyBelowQtyValueActionGroup" stepKey="fillNotifyBelowQty"> |
| 60 | + <argument name="qty" value="1"/> |
| 61 | + </actionGroup> |
| 62 | + <actionGroup ref="AdminSetStockStatusConfigActionGroup" stepKey="selectOutOfStock"> |
| 63 | + <argument name="stockStatus" value="Out of Stock"/> |
| 64 | + </actionGroup> |
| 65 | + <actionGroup ref="AdminSubmitAdvancedInventoryFormActionGroup" stepKey="clickDoneButton"/> |
| 66 | + <actionGroup ref="SaveProductFormActionGroup" stepKey="saveProduct"/> |
63 | 67 | <!--Verify product is not visible in category store front page -->
|
64 |
| - <amOnPage url="$$createCategory.name$$.html" stepKey="openCategoryStoreFrontPage"/> |
65 |
| - <waitForPageLoad stepKey="waitForCategoryPageToLoad"/> |
66 |
| - <seeElement selector="{{StorefrontHeaderSection.NavigationCategoryByName(SimpleSubCategory.name)}}" stepKey="seeCategoryInFrontPage"/> |
67 |
| - <click selector="{{StorefrontHeaderSection.NavigationCategoryByName(SimpleSubCategory.name)}}" stepKey="clickOnCategory"/> |
68 |
| - <dontSee selector="{{StorefrontCategoryMainSection.productName}}" userInput="{{SimpleProduct.name}}" stepKey="dontSeeProductInCategoryPage"/> |
| 68 | + <actionGroup ref="AssertStorefrontProductAbsentOnCategoryPageActionGroup" stepKey="doNotSeeProductInCategoryPage"> |
| 69 | + <argument name="categoryUrlKey" value="$$createCategory.name$$"/> |
| 70 | + <argument name="productName" value="{{SimpleProduct.name}}"/> |
| 71 | + </actionGroup> |
69 | 72 | <!--Verify Product In Store Front-->
|
70 |
| - <amOnPage url="$$createSimpleProduct.name$$.html" stepKey="goToProductStorefrontPage"/> |
71 |
| - <waitForPageLoad stepKey="waitForProductPageTobeLoaded"/> |
72 |
| - <see selector="{{StorefrontProductInfoMainSection.productName}}" userInput="{{SimpleProduct.name}}" stepKey="seeProductNameInStoreFront"/> |
73 |
| - <see selector="{{StorefrontProductInfoMainSection.productStockStatus}}" userInput="Out of stock" stepKey="seeProductStatusIsOutOfStock"/> |
| 73 | + <actionGroup ref="StorefrontCheckProductStockStatus" stepKey="seeProductOnStorefront"> |
| 74 | + <argument name="productUrlKey" value="$$createSimpleProduct.custom_attributes[url_key]$$"/> |
| 75 | + <argument name="productName" value="$$createSimpleProduct.name$$"/> |
| 76 | + <argument name="stockStatus" value="Out of stock"/> |
| 77 | + </actionGroup> |
74 | 78 | </test>
|
75 | 79 | </tests>
|
0 commit comments