fix(maestro/pay-tests): adapt KYC flows to redesigned /collect inline IC form#106
fix(maestro/pay-tests): adapt KYC flows to redesigned /collect inline IC form#106ignaciosantise wants to merge 1 commit into
Conversation
… IC form The buyer-experience /collect hosted KYC webview was redesigned (PR #914): the submit button is now "Confirm" (was "Add"), the "Confirm your details" confirmation dialog is gone (Confirm submits directly), and consent is an inline checkbox that must be ticked before Confirm is enabled. Update the two flows that submit the form to drive the new single inline page via testIDs (consent-checkbox, identity-form-confirm-button). pay_kyc_back_navigation.yaml is unchanged (it never submits). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
Claude finished @ignaciosantise's task in 1m 28s —— View job Code Review
Found 2 issue(s)Issue 1: Dangling comment reference with no corresponding noteID: pay-multiple-options-kyc-dangling-comment-ref-b3f1 Context:
Recommendation: Either remove the comment or replace it with the actual guidance inline: # Selector note: id: "consent-checkbox" preferred; fallback text "I agree" is ambiguous
# (appears in consent paragraph) — disambiguate with index if needed. Verify on real WebView.Issue 2: No
|
Part A — adapt native Maestro KYC flows to the redesigned
/collectIC formWalletConnect/buyer-experiencePR #914 redesigns the hosted KYC webview (the/collectroute that sample wallets open in a WebView). The redesign changes the strings/flow that the native Maestropayflows in this repo rely on:consent-checkbox/ aria-label "I agree"; Confirm disabled until checkedChanges
pay_multiple_options_kyc.yaml— replace theAdd→ dialog → consent-link →Confirmchain with: tickconsent-checkbox, then tapidentity-form-confirm-button.pay_cancel_from_kyc.yaml— same replacement (server-side cancel + result-screen assertions unchanged).pay_kyc_back_navigation.yaml— not touched (only waits for the unchanged title; never submits).The new steps only pass against an environment where buyer-experience #914 is already deployed to the env the sample wallets load their
/collectwebview from. The old steps pass only against the old form — they are mutually exclusive./collectform is live (open it manually).Maestro matches WebView elements via the accessibility tree;
data-testidis not guaranteed to surface as a Maestroid. Validate on a real run:id: "consent-checkbox". Fallback is labeled "I agree" — but do not use a baretext: "I agree"(the consent paragraph also contains "I agree" in quotes; disambiguate withindex/longer substring). KeepretryTapIfNoChange: true.id: "identity-form-confirm-button"; fallbacktext: "Confirm"(now unambiguous).Draft until the selectors are validated on a real run against a #914-deployed env.
🤖 Generated with Claude Code