An e-commerce site applies discount codes via an API call triggered on blur of the coupon field. Tests verify the wrong final price. What is the fix?
-
A
After typing the coupon, trigger blur explicitly with Actions or Tab key, then wait for the price element to update before asserting
-
B
Assert the price immediately after sendKeys()
-
C
Reload the page after entering the coupon
-
D
Disable the blur event in test mode