|
17 | 17 | <testCaseId value="MC-10905"/>
|
18 | 18 | <group value="mtf_migrated"/>
|
19 | 19 | </annotations>
|
| 20 | + |
20 | 21 | <before>
|
21 | 22 | <!-- Login as admin -->
|
22 | 23 | <actionGroup ref="LoginAsAdmin" stepKey="login"/>
|
| 24 | + |
23 | 25 | <!--Create Category-->
|
24 | 26 | <createData entity="SimpleSubCategory" stepKey="createCategory"/>
|
| 27 | + |
25 | 28 | <!--Create Configurable Product-->
|
26 | 29 | <createData entity="ApiConfigurableProduct" stepKey="createConfigProduct">
|
27 | 30 | <requiredEntity createDataKey="createCategory"/>
|
|
31 | 34 | <!--Delete created entity -->
|
32 | 35 | <deleteData createDataKey="createCategory" stepKey="deleteCategory"/>
|
33 | 36 | <deleteData createDataKey="createConfigProduct" stepKey="deleteConfigProduct"/>
|
| 37 | + |
34 | 38 | <actionGroup ref="deleteProductAttribute" stepKey="deleteCreatedAttribute">
|
35 | 39 | <argument name="ProductAttribute" value="newProductAttribute"/>
|
36 | 40 | </actionGroup>
|
| 41 | + |
37 | 42 | <actionGroup ref="logout" stepKey="logout"/>
|
38 | 43 | </after>
|
| 44 | + |
39 | 45 | <!-- Open Product Index Page-->
|
40 | 46 | <amOnPage url="{{AdminProductIndexPage.url}}" stepKey="navigateToProductIndex"/>
|
41 | 47 | <waitForPageLoad stepKey="waitForProductIndexPageToLoad"/>
|
| 48 | + |
42 | 49 | <!-- Select Created Product-->
|
43 | 50 | <click stepKey="openFirstProduct" selector="{{AdminProductGridSection.productRowBySku($$createConfigProduct.sku$$)}}"/>
|
44 | 51 | <waitForPageLoad stepKey="waitForProductToLoad"/>
|
| 52 | + |
| 53 | + <fillField selector="{{AdminProductFormSection.productQuantity}}" userInput="100" stepKey="fillProductQty"/> |
| 54 | + <selectOption selector="{{AdminProductFormSection.productStockStatus}}" userInput="In Stock" stepKey="selectStockStatus"/> |
| 55 | + |
45 | 56 | <!-- Create New Product Attribute -->
|
46 | 57 | <click selector="{{AdminProductFormSection.addAttributeBtn}}" stepKey="clickOnAddAttribute"/>
|
47 | 58 | <waitForPageLoad stepKey="waitForAttributePageToLoad"/>
|
|
60 | 71 | <waitForElementVisible selector="{{AdminCreateNewProductAttributeSection.attributeCode}}" stepKey="waitForAttributeCodeToVisible"/>
|
61 | 72 | <scrollTo selector="{{AdminCreateNewProductAttributeSection.attributeCode}}" stepKey="scrollToAttributeCode"/>
|
62 | 73 | <fillField selector="{{AdminCreateNewProductAttributeSection.attributeCode}}" userInput="{{newProductAttribute.attribute_code}}" stepKey="fillAttributeCode"/>
|
63 |
| - <selectOption selector="{{AdminCreateNewProductAttributeSection.scope}}" userInput="Global" stepKey="selectScope"/> |
64 | 74 | <scrollTo selector="{{AdminCreateNewProductAttributeSection.isUnique}}" stepKey="scrollToIsUniqueOption"/>
|
65 | 75 | <checkOption selector="{{AdminCreateNewProductAttributeSection.isUnique}}" stepKey="enableIsUniqueOption"/>
|
66 | 76 | <scrollTo selector="{{AdminCreateNewProductAttributeSection.advancedAttributeProperties}}" stepKey="scrollToAdvancedAttributeProperties"/>
|
|
81 | 91 | <click selector="{{AdminProductFormSection.save}}" stepKey="saveTheProduct"/>
|
82 | 92 | <waitForPageLoad stepKey="waitForProductToSave"/>
|
83 | 93 | <see selector="{{AdminCategoryMessagesSection.SuccessMessage}}" userInput="You saved the product." stepKey="messageYouSavedTheProductIsShown"/>
|
| 94 | + |
84 | 95 | <!--Verify product attribute added in product form -->
|
85 | 96 | <scrollTo selector="{{AdminProductFormSection.contentTab}}" stepKey="scrollToContentTab"/>
|
86 | 97 | <waitForElementVisible selector="{{AdminProductFormSection.attributeTab}}" stepKey="waitForAttributeToVisible"/>
|
87 | 98 | <click selector="{{AdminProductFormSection.attributeTab}}" stepKey="clickOnAttribute"/>
|
88 | 99 | <seeElement selector="{{AdminProductFormSection.attributeLabelByText(ProductAttributeFrontendLabel.label)}}" stepKey="seeAttributeLabelInProductForm"/>
|
| 100 | + |
89 | 101 | <!--Verify Product Attribute in Attribute Form -->
|
90 | 102 | <amOnPage url="{{AdminProductAttributeGridPage.url}}" stepKey="navigateToProductAttributeGrid"/>
|
91 | 103 | <fillField selector="{{AdminProductAttributeGridSection.FilterByAttributeCode}}" userInput="{{newProductAttribute.attribute_code}}" stepKey="setAttributeCode"/>
|
|
94 | 106 | <see selector="{{AdminProductAttributeGridSection.attributeCodeColumn}}" userInput="{{newProductAttribute.attribute_code}}" stepKey="seeAttributeCode"/>
|
95 | 107 | <see selector="{{AdminProductAttributeGridSection.defaultLabelColumn}}" userInput="{{ProductAttributeFrontendLabel.label}}" stepKey="seeDefaultLabel"/>
|
96 | 108 | <see selector="{{AdminProductAttributeGridSection.isVisibleColumn}}" userInput="Yes" stepKey="seeIsVisibleColumn"/>
|
97 |
| - <see selector="{{AdminProductAttributeGridSection.scopeColumn}}" userInput="Global" stepKey="seeScopeColumn"/> |
98 | 109 | <see selector="{{AdminProductAttributeGridSection.isSearchableColumn}}" userInput="Yes" stepKey="seeSearchableColumn"/>
|
99 | 110 | <see selector="{{AdminProductAttributeGridSection.isComparableColumn}}" userInput="Yes" stepKey="seeComparableColumn"/>
|
| 111 | + |
100 | 112 | <!--Verify Product Attribute is present in Category Store Front Page -->
|
101 | 113 | <amOnPage url="$$createCategory.name$$.html" stepKey="goToStorefrontPage"/>
|
102 | 114 | <waitForPageLoad stepKey="waitForProductFrontPageToLoad"/>
|
103 | 115 | <click selector="{{StorefrontHeaderSection.NavigationCategoryByName(SimpleSubCategory.name)}}" stepKey="clickOnCategory"/>
|
104 | 116 | <waitForPageLoad stepKey="waitForPageToLoad"/>
|
105 | 117 | <click selector="{{StorefrontCategoryMainSection.productLink}}" stepKey="openSearchedProduct"/>
|
106 | 118 | <waitForPageLoad stepKey="waitForProductToLoad1"/>
|
107 |
| - <see selector="{{StorefrontProductInfoMainSection.productName}}" userInput="{{ApiConfigurableProduct.name}}" stepKey="seeProductNameInStoreFront"/> |
108 |
| - <see selector="{{StorefrontProductInfoMainSection.productPrice}}" userInput="{{ApiConfigurableProduct.price}}" stepKey="seeProductPriceInStoreFront"/> |
109 |
| - <see selector="{{StorefrontProductInfoMainSection.productSku}}" userInput="{{ApiConfigurableProduct.sku}}" stepKey="seeProductSkuInStoreFront"/> |
| 119 | + <see selector="{{StorefrontProductInfoMainSection.productName}}" userInput="$$createConfigProduct.name$$" stepKey="seeProductNameInStoreFront"/> |
| 120 | + <see selector="{{StorefrontProductInfoMainSection.productPrice}}" userInput="$$createConfigProduct.price$$" stepKey="seeProductPriceInStoreFront"/> |
| 121 | + <see selector="{{StorefrontProductInfoMainSection.productSku}}" userInput="$$createConfigProduct.sku$$" stepKey="seeProductSkuInStoreFront"/> |
110 | 122 | <scrollTo selector="{{StorefrontProductMoreInformationSection.moreInformation}}" stepKey="scrollToMoreInformation"/>
|
111 | 123 | <see selector="{{StorefrontProductMoreInformationSection.attributeLabel}}" userInput="{{ProductAttributeFrontendLabel.label}}" stepKey="seeAttributeLabel"/>
|
112 | 124 | <see selector="{{StorefrontProductMoreInformationSection.attributeValue}}" userInput="{{ProductAttributeOption8.value}}" stepKey="seeAttributeValue"/>
|
| 125 | + |
113 | 126 | <!--Verify Product Attribute present in search page -->
|
114 | 127 | <amOnPage url="$$createCategory.name$$.html" stepKey="goToStorefrontPage1"/>
|
115 | 128 | <waitForPageLoad stepKey="waitForProductFrontPageToLoad1"/>
|
116 | 129 | <fillField selector="{{StorefrontQuickSearchResultsSection.searchTextBox}}" userInput="{{ProductAttributeOption8.value}}" stepKey="fillAttribute"/>
|
117 | 130 | <waitForPageLoad stepKey="waitForSearchTextBox"/>
|
118 | 131 | <click selector="{{StorefrontQuickSearchResultsSection.searchTextBoxButton}}" stepKey="clickSearchTextBoxButton"/>
|
119 | 132 | <waitForPageLoad stepKey="waitForSearchResultToLoad"/>
|
120 |
| - <see selector="{{StorefrontCategoryMainSection.productName}}" userInput="{{ApiConfigurableProduct.name}}" stepKey="seeProductNameInCategoryPage"/> |
| 133 | + <see selector="{{StorefrontCategoryMainSection.productName}}" userInput="$$createConfigProduct.name$$" stepKey="seeProductNameInCategoryPage"/> |
121 | 134 | <see selector="{{StorefrontCategoryMainSection.productOptionList}}" userInput="{{ProductAttributeFrontendLabel.label}}" stepKey="seeProductAttributeOptionInCategoryPage"/>
|
122 | 135 | </test>
|
123 | 136 | </tests>
|
0 commit comments