You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make cart, checkout, navigation tests reliable in CI
CI against live SauceDemo surfaced deterministic failures in cart/menu flows
(login, inventory and sorting already passed). Fixes:
- Confirm add/remove by waiting for the product button to toggle Add<->Remove,
removing cart-badge read races.
- Open the cart via a JS click on the anchor: once the badge is shown it
overlaps the link centre, so a native click hit the badge span and
navigation never fired.
- JS-click burger-menu items (logout, reset, close) to avoid missing the
element while the menu is mid-animation; wait on aria-hidden state.
- Make BasePage.click scroll into view with a JS-click fallback.
- Confirm cart removal by waiting for the row to disappear.
- Run the regression suite sequentially for CI stability (framework remains
parallel-safe via the ThreadLocal driver).
0 commit comments