Commit 44c0d84
fix(tests): capture window.open URL before redirects in clickOpenWebApp
Some wallets' webapp_link points to URLs that immediately redirect to
external services (e.g. MathWallet's webapp_link is chromewebstore.google.com
which redirects through consent.google.com, dropping the ?uri= query param).
Reading lastTab.url() after a 500ms timeout races against these redirects,
making the wallet-features.spec.ts:131 "open web app wallet" test flaky on CI.
Patch window.open in the page context to capture the URL synchronously at
call time, before any navigation/redirect happens.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent f913185 commit 44c0d84
1 file changed
Lines changed: 25 additions & 18 deletions
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
924 | 924 | | |
925 | 925 | | |
926 | 926 | | |
927 | | - | |
928 | | - | |
929 | 927 | | |
930 | 928 | | |
931 | 929 | | |
932 | 930 | | |
933 | | - | |
934 | | - | |
935 | | - | |
936 | | - | |
937 | | - | |
938 | | - | |
939 | | - | |
940 | | - | |
941 | | - | |
942 | | - | |
943 | | - | |
944 | | - | |
945 | | - | |
946 | | - | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
947 | 945 | | |
948 | | - | |
| 946 | + | |
949 | 947 | | |
950 | | - | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
951 | 958 | | |
952 | 959 | | |
953 | 960 | | |
| |||
0 commit comments