|
53 | 53 | <see userInput="Welcome, John Doe!" selector="{{StorefrontPanelHeaderSection.WelcomeMessage}}" stepKey="homeCheckWelcome" after="homeWaitForWelcomeMessage"/>
|
54 | 54 |
|
55 | 55 | <!-- Open Category -->
|
56 |
| - <click selector="{{StorefrontHeaderSection.NavigationCategoryByName($$createCategory.name$$)}}" stepKey="browseClickCategory" after="homeCheckWelcome"/> |
| 56 | + <comment userInput="Open category" stepKey="commentOpenCategory" after="homeCheckWelcome"/> |
| 57 | + <click selector="{{StorefrontHeaderSection.NavigationCategoryByName($$createCategory.name$$)}}" stepKey="browseClickCategory" after="commentOpenCategory"/> |
57 | 58 | <actionGroup ref="StorefrontCheckCategoryActionGroup" stepKey="browseAssertCategory" after="browseClickCategory">
|
58 | 59 | <argument name="category" value="$$createCategory$$"/>
|
59 | 60 | <!-- @TODO: Change to scalar value after MQE-498 is implemented -->
|
60 | 61 | <argument name="productCount" value="CONST.three"/>
|
61 | 62 | </actionGroup>
|
62 |
| - <!-- Check simple product1 in category --> |
63 |
| - <actionGroup ref="StorefrontCheckCategorySimpleProduct" stepKey="browseAssertCategoryProduct1" after="browseAssertCategory"> |
| 63 | + <!-- Check simple product 1 in category --> |
| 64 | + <comment userInput="Check simple product 1 in category" stepKey="commentCheckSimpleProductInCategory" after="browseAssertCategory"/> |
| 65 | + <actionGroup ref="StorefrontCheckCategorySimpleProduct" stepKey="browseAssertCategoryProduct1" after="commentCheckSimpleProductInCategory"> |
64 | 66 | <argument name="product" value="$$createSimpleProduct1$$"/>
|
65 | 67 | </actionGroup>
|
66 | 68 | <!-- @TODO: Move Image check to action group after MQE-697 is fixed -->
|
67 | 69 | <grabAttributeFrom selector="{{StorefrontCategoryProductSection.ProductImageByName($$createSimpleProduct1.name$$)}}" userInput="src" stepKey="browseGrabSimpleProduct1ImageSrc" after="browseAssertCategoryProduct1"/>
|
68 | 70 | <assertNotRegExp expected="'/placeholder\/small_image\.jpg/'" actual="$browseGrabSimpleProduct1ImageSrc" stepKey="browseAssertSimpleProduct1ImageNotDefault" after="browseGrabSimpleProduct1ImageSrc"/>
|
69 |
| - <!-- Check simple product2 in category --> |
70 |
| - <actionGroup ref="StorefrontCheckCategorySimpleProduct" stepKey="browseAssertCategoryProduct2" after="browseAssertSimpleProduct1ImageNotDefault"> |
| 71 | + <!-- Check simple product 2 in category --> |
| 72 | + <comment userInput="Check simple product 2 in category" stepKey="commentCheckSimpleProduct2InCategory" after="browseAssertSimpleProduct1ImageNotDefault"/> |
| 73 | + <actionGroup ref="StorefrontCheckCategorySimpleProduct" stepKey="browseAssertCategoryProduct2" after="commentCheckSimpleProduct2InCategory"> |
71 | 74 | <argument name="product" value="$$createSimpleProduct2$$"/>
|
72 | 75 | </actionGroup>
|
73 | 76 | <!-- @TODO: Move Image check to action group after MQE-697 is fixed -->
|
74 | 77 | <grabAttributeFrom selector="{{StorefrontCategoryProductSection.ProductImageByName($$createSimpleProduct2.name$$)}}" userInput="src" stepKey="browseGrabSimpleProduct2ImageSrc" after="browseAssertCategoryProduct2"/>
|
75 | 78 | <assertNotRegExp expected="'/placeholder\/small_image\.jpg/'" actual="$browseGrabSimpleProduct2ImageSrc" stepKey="browseAssertSimpleProduct2ImageNotDefault" after="browseGrabSimpleProduct2ImageSrc"/>
|
76 | 79 |
|
77 | 80 | <!-- View Simple Product 1 -->
|
78 |
| - <click selector="{{StorefrontCategoryProductSection.ProductTitleByName($$createSimpleProduct1.name$$)}}" stepKey="browseClickCategorySimpleProduct1View" after="browseAssertSimpleProduct2ImageNotDefault"/> |
| 81 | + <comment userInput="View simple product 1" stepKey="commentViewSimpleProduct1" after="browseAssertSimpleProduct2ImageNotDefault"/> |
| 82 | + <click selector="{{StorefrontCategoryProductSection.ProductTitleByName($$createSimpleProduct1.name$$)}}" stepKey="browseClickCategorySimpleProduct1View" after="commentViewSimpleProduct1"/> |
79 | 83 | <actionGroup ref="StorefrontCheckSimpleProduct" stepKey="browseAssertProduct1Page" after="browseClickCategorySimpleProduct1View">
|
80 | 84 | <argument name="product" value="$$createSimpleProduct1$$"/>
|
81 | 85 | </actionGroup>
|
|
84 | 88 | <assertNotRegExp expected="'/placeholder\/image\.jpg/'" actual="$browseGrabSimpleProduct1PageImageSrc" stepKey="browseAssertSimpleProduct1PageImageNotDefault" after="browseGrabSimpleProduct1PageImageSrc"/>
|
85 | 89 |
|
86 | 90 | <!-- View Simple Product 2 -->
|
87 |
| - <click selector="{{StorefrontHeaderSection.NavigationCategoryByName($$createCategory.name$$)}}" stepKey="clickCategory1" after="browseAssertSimpleProduct1PageImageNotDefault"/> |
| 91 | + <comment userInput="View simple product 2" stepKey="commentViewSimpleProduct2" after="browseAssertSimpleProduct1PageImageNotDefault"/> |
| 92 | + <click selector="{{StorefrontHeaderSection.NavigationCategoryByName($$createCategory.name$$)}}" stepKey="clickCategory1" after="commentViewSimpleProduct2"/> |
88 | 93 | <click selector="{{StorefrontCategoryProductSection.ProductTitleByName($$createSimpleProduct2.name$$)}}" stepKey="browseClickCategorySimpleProduct2View" after="clickCategory1"/>
|
89 | 94 | <actionGroup ref="StorefrontCheckSimpleProduct" stepKey="browseAssertProduct2Page" after="browseClickCategorySimpleProduct2View">
|
90 | 95 | <argument name="product" value="$$createSimpleProduct2$$"/>
|
|
97 | 102 | <!-- Step 4: User compares products -->
|
98 | 103 | <comment userInput="Start of comparing products" stepKey="startOfComparingProducts" after="endOfBrowsingCatalog"/>
|
99 | 104 | <!-- Add Simple Product 1 to comparison -->
|
100 |
| - <click selector="{{StorefrontHeaderSection.NavigationCategoryByName($$createCategory.name$$)}}" stepKey="compareClickCategory" after="startOfComparingProducts"/> |
| 105 | + <comment userInput="Add simple product 1 to comparison" stepKey="commentAddSimpleProduct1ToComparison" after="startOfComparingProducts"/> |
| 106 | + <click selector="{{StorefrontHeaderSection.NavigationCategoryByName($$createCategory.name$$)}}" stepKey="compareClickCategory" after="commentAddSimpleProduct1ToComparison"/> |
101 | 107 | <actionGroup ref="StorefrontCheckCategoryActionGroup" stepKey="compareAssertCategory" after="compareClickCategory">
|
102 | 108 | <argument name="category" value="$$createCategory$$"/>
|
103 | 109 | <!-- @TODO: Change to scalar value after MQE-498 is implemented -->
|
|
121 | 127 | </actionGroup>
|
122 | 128 |
|
123 | 129 | <!-- Add Simple Product 2 to comparison -->
|
124 |
| - <click selector="{{StorefrontHeaderSection.NavigationCategoryByName($$createCategory.name$$)}}" stepKey="compareClickCategory1" after="compareAddSimpleProduct1ToCompare"/> |
| 130 | + <comment userInput="Add simple product 2 to comparison" stepKey="commentAddSimpleProduct2ToComparison" after="compareAddSimpleProduct1ToCompare"/> |
| 131 | + <click selector="{{StorefrontHeaderSection.NavigationCategoryByName($$createCategory.name$$)}}" stepKey="compareClickCategory1" after="commentAddSimpleProduct2ToComparison"/> |
125 | 132 | <actionGroup ref="StorefrontCheckCategoryActionGroup" stepKey="compareAssertCategory1" after="compareClickCategory1">
|
126 | 133 | <argument name="category" value="$$createCategory$$"/>
|
127 | 134 | <!-- @TODO: Change to scalar value after MQE-498 is implemented -->
|
|
138 | 145 | </actionGroup>
|
139 | 146 |
|
140 | 147 | <!-- Check products in comparison sidebar -->
|
141 |
| - <!-- Check simple product1 in comparison sidebar --> |
142 |
| - <actionGroup ref="StorefrontCheckCompareSidebarProductActionGroup" stepKey="compareSimpleProduct1InSidebar" after="compareAddSimpleProduct2ToCompare"> |
| 148 | + <!-- Check simple product 1 in comparison sidebar --> |
| 149 | + <comment userInput="Check simple product 1 in comparison sidebar" stepKey="commentCheckSimpleProduct1InComparisonSidebar" after="compareAddSimpleProduct2ToCompare"/> |
| 150 | + <actionGroup ref="StorefrontCheckCompareSidebarProductActionGroup" stepKey="compareSimpleProduct1InSidebar" after="commentCheckSimpleProduct1InComparisonSidebar"> |
143 | 151 | <argument name="productVar" value="$$createSimpleProduct1$$"/>
|
144 | 152 | </actionGroup>
|
145 | 153 | <!-- Check simple product2 in comparison sidebar -->
|
|
148 | 156 | </actionGroup>
|
149 | 157 |
|
150 | 158 | <!-- Check products on comparison page -->
|
151 |
| - <!-- Check simple product1 on comparison page --> |
152 |
| - <actionGroup ref="StorefrontOpenAndCheckComparisionActionGroup" stepKey="compareOpenComparePage" after="compareSimpleProduct2InSidebar"/> |
| 159 | + <!-- Check simple product 1 on comparison page --> |
| 160 | + <comment userInput="Check simple product 1 on comparison page" stepKey="commentCheckSimpleProduct1OnComparisonPage" after="compareSimpleProduct2InSidebar"/> |
| 161 | + <actionGroup ref="StorefrontOpenAndCheckComparisionActionGroup" stepKey="compareOpenComparePage" after="commentCheckSimpleProduct1OnComparisonPage"/> |
153 | 162 | <actionGroup ref="StorefrontCheckCompareSimpleProductActionGroup" stepKey="compareAssertSimpleProduct1InComparison" after="compareOpenComparePage">
|
154 | 163 | <argument name="productVar" value="$$createSimpleProduct1$$"/>
|
155 | 164 | </actionGroup>
|
|
165 | 174 | <assertNotRegExp expected="'/placeholder\/small_image\.jpg/'" actual="$compareGrabSimpleProduct2ImageSrcInComparison" stepKey="compareAssertSimpleProduct2ImageNotDefaultInComparison" after="compareGrabSimpleProduct2ImageSrcInComparison"/>
|
166 | 175 |
|
167 | 176 | <!-- Clear comparison sidebar -->
|
168 |
| - <click selector="{{StorefrontHeaderSection.NavigationCategoryByName($$createCategory.name$$)}}" stepKey="compareClickCategoryBeforeClear" after="compareAssertSimpleProduct2ImageNotDefaultInComparison"/> |
| 177 | + <comment userInput="Clear comparison sidebar" stepKey="commentClearComparisonSidebar" after="compareAssertSimpleProduct2ImageNotDefaultInComparison"/> |
| 178 | + <click selector="{{StorefrontHeaderSection.NavigationCategoryByName($$createCategory.name$$)}}" stepKey="compareClickCategoryBeforeClear" after="commentClearComparisonSidebar"/> |
169 | 179 | <actionGroup ref="StorefrontCheckCategoryActionGroup" stepKey="compareAssertCategory2" after="compareClickCategoryBeforeClear">
|
170 | 180 | <argument name="category" value="$$createCategory$$"/>
|
171 | 181 | <!-- @TODO: Change to scalar value after MQE-498 is implemented -->
|
|
0 commit comments