Then the cart should contain "Course"

Assert the Webflow cart holds, or does not hold, a product by its name, as the cart lists it (.w-commerce-commercecartproductname).

Examples

Then the cart should contain "Course"
Then the cart should contain "UI/UX Design Course"
And the cart should not contain "Gift card"
Then the cart should not contain "Course"
And the cart should contain "Sticker pack"

Pattern

Then(/^the cart should( not)* contain "([^"]*)"$/, …)

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