Commit fb51ddd
Sharma Elanthiriayan
SimplePaymentsSummaryViewModelTests fix
- Mock `getSimplePaymentsTaxesToggleState` to ensure that toggle state is in stable inside the test.
- Expect `simplePaymentsFlowTaxesToggled` event in received events as view model loads the toggle state during initialization.
- Expect `state` `receivedProperties` to be `off` because taxes get disabled when view model loads the toggle state during initialization.test_taxesToggled_event_is_tracked_after_switching_taxes_toggle test1 parent ea05a97 commit fb51ddd
File tree
1 file changed
+16
-2
lines changed- WooCommerce/WooCommerceTests/ViewRelated/Orders/Simple Payments
1 file changed
+16
-2
lines changedLines changed: 16 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
263 | 263 | | |
264 | 264 | | |
265 | 265 | | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
266 | 278 | | |
267 | 279 | | |
268 | 280 | | |
| |||
276 | 288 | | |
277 | 289 | | |
278 | 290 | | |
| 291 | + | |
279 | 292 | | |
280 | 293 | | |
281 | 294 | | |
282 | 295 | | |
283 | | - | |
284 | | - | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
285 | 299 | | |
286 | 300 | | |
287 | 301 | | |
| |||
0 commit comments