|
35 | 35 | </actionGroup>
|
36 | 36 |
|
37 | 37 | <click stepKey="disableDefaultProdTaxClass" selector="{{AdminTaxRulesSection.defaultTaxClass}}"/>
|
38 |
| - |
39 |
| - <click stepKey="clickSave" selector="{{AdminStoresMainActionsSection.saveButton}}"/> |
| 38 | + <waitForPageLoad stepKey="waitForTaxRulePage"/> |
| 39 | + <click stepKey="clickSave" selector="{{AdminTaxRulesSection.saveRule}}"/> |
40 | 40 | <waitForPageLoad stepKey="waitForNewTaxRuleCreated"/>
|
41 | 41 |
|
42 | 42 | <!-- Go to tax rule page to create second Tax Rule-->
|
|
52 | 52 | </actionGroup>
|
53 | 53 |
|
54 | 54 | <click stepKey="disableSecondProdTaxClass" selector="{{AdminTaxRulesSection.defaultTaxClass}}"/>
|
55 |
| - <click stepKey="clickSaveBtn" selector="{{AdminStoresMainActionsSection.saveButton}}"/> |
| 55 | + <waitForPageLoad stepKey="waitForTaxRulePage2"/> |
| 56 | + <click stepKey="clickSaveBtn" selector="{{AdminTaxRulesSection.saveRule}}"/> |
56 | 57 | <waitForPageLoad stepKey="waitForSecondTaxRuleCreated"/>
|
57 | 58 |
|
58 | 59 | <createData entity="_defaultCategory" stepKey="createCategory"/>
|
|
97 | 98 | <click selector="{{AdminOrdersGridSection.createNewOrder}}" stepKey="clickCreateNewOrder"/>
|
98 | 99 | <click selector="{{AdminOrderFormActionSection.CreateNewCustomer}}" stepKey="clickCreateCustomer"/>
|
99 | 100 | <see selector="{{AdminHeaderSection.pageTitle}}" userInput="Create New Order" stepKey="seeNewOrderPageTitle"/>
|
100 |
| - |
| 101 | + <waitForPageLoad stepKey="waitForPage" time="60"/> |
101 | 102 | <!--Check if order can be submitted without the required fields including email address-->
|
102 | 103 | <scrollToTopOfPage stepKey="scrollToTopOfOrderFormPage" after="seeNewOrderPageTitle"/>
|
103 | 104 | <actionGroup ref="addSimpleProductToOrder" stepKey="addFirstProductToOrder" after="scrollToTopOfOrderFormPage">
|
|
145 | 146 |
|
146 | 147 | <!--click "here" to refresh last day's statistics -->
|
147 | 148 | <click stepKey="clickRefrashStatisticsHere" selector="{{AdminTaxReportsSection.refreshStatistics}}"/>
|
148 |
| - <waitForPageLoad stepKey="waitForRefrash"/> |
| 149 | + <waitForPageLoad stepKey="waitForRefresh"/> |
149 | 150 |
|
150 | 151 | <!--Select Dates-->
|
151 | 152 | <fillField selector="{{AdminTaxReportsSection.fromDate}}" userInput="05/16/2018" stepKey="fillDateFrom"/>
|
152 | 153 | <click selector="{{AdminTaxReportsSection.toDate}}" stepKey="clickDateTo"/>
|
153 | 154 | <click selector="{{AdminTaxReportsSection.goTodayButton}}" stepKey="clickGoTodayDate"/>
|
154 | 155 | <!--Click "Show report" in the upper right corner.-->
|
155 | 156 | <click selector="{{AdminTaxReportsSection.showReportButton}}" stepKey="clickShowReportButton"/>
|
156 |
| - |
| 157 | + <waitForPageLoad time="60" stepKey="waitForReload"/> |
157 | 158 | <!--Tax Report Grid displays Tax amount in rows. "Total" and "Subtotal" is a sum of all tax amounts-->
|
158 |
| - <grabTextFrom selector="{{AdminTaxReportsSection.taxRuleAmount('TaxRate1')}}" stepKey="amountOfFirstTaxRate"/> |
159 |
| - <grabTextFrom selector="{{AdminTaxReportsSection.taxRuleAmount('TaxRate2')}}" stepKey="amountOfSecondTaxRate"/> |
| 159 | + <grabTextFrom selector="{{AdminTaxReportsSection.taxRuleAmount('Texas-0.125')}}" stepKey="amountOfFirstTaxRate"/> |
| 160 | + <grabTextFrom selector="{{AdminTaxReportsSection.taxRuleAmount('Texas-7.25')}}" stepKey="amountOfSecondTaxRate"/> |
160 | 161 | <grabTextFrom selector="{{AdminTaxReportsSection.taxRuleAmount('Subtotal')}}" stepKey="amountOfSubtotalTaxRate"/>
|
161 | 162 | <assertEquals stepKey="assertSubtotalFirstField">
|
162 |
| - <expectedResult type="string">$0.87</expectedResult> |
| 163 | + <expectedResult type="string">$0.15</expectedResult> |
163 | 164 | <actualResult type="variable">amountOfFirstTaxRate</actualResult>
|
164 | 165 | </assertEquals>
|
165 | 166 |
|
166 | 167 | <assertEquals stepKey="assertSubtotalSecondField">
|
167 |
| - <expectedResult type="string">$0.02</expectedResult> |
| 168 | + <expectedResult type="string">$8.92</expectedResult> |
168 | 169 | <actualResult type="variable">amountOfSecondTaxRate</actualResult>
|
169 | 170 | </assertEquals>
|
170 | 171 |
|
171 | 172 | <assertEquals stepKey="assertSubtotalField">
|
172 |
| - <expectedResult type="string">$0.89</expectedResult> |
| 173 | + <expectedResult type="string">$9.07</expectedResult> |
173 | 174 | <actualResult type="variable">amountOfSubtotalTaxRate</actualResult>
|
174 | 175 | </assertEquals>
|
175 | 176 |
|
|
0 commit comments