Skip to content

fix: make consumer-smoke correct when pointed at prod - #55

Merged
saqibmanan merged 2 commits into
CIfrom
fix/consumer-suite-prod-target
Sep 11, 2026
Merged

saqibmanan merged 2 commits into
CIfrom
fix/consumer-suite-prod-target

Conversation

@saqibmanan

Copy link
Copy Markdown
Contributor

consumer-smoke had only ever targeted dev. Run against prod: 3 failed, 42 passed, none a prod-site problem.

  • Dev-only GA checks (test_dev_ga_script_tag_absent, test_dev_gtag_is_undefined) asserted GA is absent on prod, where it's correctly present. They now skip unless the target host starts with dev.. Verified: vs dev 6 passed; vs prod 4 passed + 2 skipped.
  • test_TC_SEC_02_search_bar hit StaleElementReferenceException — React re-rendered between wait_and_capture returning the element and the caller's is_displayed(). Added it to the rerun policy's timing signatures (same pattern across ~43 callers).

HOME_URL_DEV is whichever site the suite targets. Pointed at prod, the
two dev GA tests asserted GA is absent on prod, where it is correctly
present (G-41CT4XZ341). They now skip unless the host starts with dev.,
matching the contract stated in the file header.
A React re-render between wait_and_capture returning an element and the
caller's is_displayed() leaves a stale reference -- a race, not a logic
failure, and the same shape across ~43 wait_and_capture callers. Seen on
test_TC_SEC_02_search_bar against prod.
@saqibmanan
saqibmanan force-pushed the fix/consumer-suite-prod-target branch from d822de8 to 60e9935 Compare September 11, 2026 13:22
@saqibmanan
saqibmanan merged commit f311f7c into CI Sep 11, 2026
3 checks passed
@saqibmanan
saqibmanan deleted the fix/consumer-suite-prod-target branch September 11, 2026 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant