Then the cart subtotal should be "$45.00"

Assert a line of the totals of the cart or the checkout, as the page shows it: the subtotal, the discount (with its minus sign), the shipping, the tax, or the order total ("Estimated total" in the cart, "Total" at the checkout).

Examples

Then the cart subtotal should be "$45.00"
And the cart discount should be "-$4.50"
Then the cart shipping should be "$5.00"
Then the cart order total should be "$45.50"
And the cart tax should be "$0.00"

Pattern

Then(/^the cart (subtotal|shipping|discount|tax|order total) should be "([^"]*)"$/, …)

Part of @webship-js/woocommerce-steps (github.com/webship/woocommerce-steps), a step pack for Webship-js 2.0.x.