Skip to content

Add price selection coverage to the car insurance quote wizard - #2

Closed
michaustriaqa wants to merge 3 commits into
masterfrom
claude/robotframework-test-portfolio-7esuuo
Closed

michaustriaqa wants to merge 3 commits into
masterfrom
claude/robotframework-test-portfolio-7esuuo

Conversation

@michaustriaqa

Copy link
Copy Markdown
Owner

Summary

Extends the car insurance quote wizard test coverage (from #1) past product data into price selection:

  • New resources/pages/price_option_page.resource — price plan selection (silver/gold/platinum/ultimate), using the same styled-radio sibling-click pattern already established for gender selection, since these controls use the same idealforms styling.
  • Waits for the price plans to finish loading (Wait Until Element Is Visible ... timeout=45s) before attempting selection — this asynchronous load was the one step whose reliability was left unconfirmed in Restructure into a full UI + API test portfolio with Page Object Model #1, before the WebDriver-click fix for the wizard's "next" buttons was found. This PR re-verifies it against the live app now that fix is in place.
  • Submits via the same JS-dispatched click pattern used for the other "next" buttons, for consistency and the same reliability reasons.
  • Price Option Should Be Accepted verifies the wizard genuinely advanced to the send-quote contact form (a concrete next-step indicator), not just that no exception was thrown.
  • Both the smoke test and the data-driven multi-vehicle regression test now exercise price selection.

Quote submission (the contact/registration form after price selection, with email/password/etc.) remains out of scope, per the same "Known limitations" reasoning as before.

Test plan

  • robot --dryrun tests — all test cases parse and resolve keywords correctly
  • robocop check / robocop format --check — clean
  • CI run on this PR against the live application (the price-plan load step is the one previously-unconfirmed part of this flow)

Generated by Claude Code

claude added 3 commits August 17, 2026 17:40
Extends the wizard flow past product data into price selection: waits
for the asynchronously-loaded price plans (the step whose reliability
was previously unconfirmed), selects a plan via the same styled-radio
sibling-click pattern used for gender, and submits via the same
JS-dispatched click pattern already used for the other "next" buttons.

Verification of this specific step against the live app is pending -
its price-plan load was the one thing observed to be unreliable during
the original investigation, before the WebDriver click fix. This
commit is unverified against CI until pushed.
Direct evidence from CI: after submitting product data and clicking
next, the price-plan loading spinner appears but no price-fetching
XHR/fetch request is ever made (Performance API captured zero requests
after a 10s wait). This isn't a slow response or a timing issue that a
longer wait could fix - the live application's price computation step
simply never gets triggered under headless Chrome automation in CI.

This confirms the concern already noted in the README's "Known
limitations" section before this was attempted: the price-plan step's
reliability under automation is a live-app issue, not something in
this test suite's control. Reverting to the last known-good state
(ending coverage at product data acceptance) rather than shipping a
step that fails unpredictably.

Copy link
Copy Markdown
Owner Author

Closing without merging

Attempted to extend coverage past product data into price selection, but it turned out to be genuinely unreliable against the live application, not a bug in this test suite.

Evidence: after submitting valid product data and clicking "next," the price step's loading spinner (#xLoaderPrice) appears, but a Performance API check showed zero XMLHttpRequest/fetch entries fired even after a 10-second wait. The price computation request is simply never triggered under headless Chrome automation in CI — this isn't a timing issue a longer wait could fix, since there's no in-flight request to wait for.

This confirms the concern already flagged in the README's "Known limitations" section. Reverted the branch back to the last known-good state (ending coverage at product data acceptance); there's nothing left in this PR to merge.

If this step's reliability under automation can be confirmed some other way in the future (e.g. it turns out to depend on a header, cookie, or interaction headless Chrome doesn't provide), extending coverage to price selection remains a reasonable follow-up.


Generated by Claude Code


Generated by Claude Code

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.

2 participants