Commit a250b8c
committed
fix(journey-suites): use mock API for otp-register e2e test
The test hit the real backend (openam-sdks.forgeblocks.com/TEST_OTPRegistration)
but a TODO indicated it should migrate to the mock once support landed. The mock
now has qrCodeCallbacksResponse for the QRCodeTest journey, so switching removes
the hidden dependency on a shared sandbox and makes the test deterministic. This
unblocks every PR currently failing this same test.
Also switch the messageArray assertion from .includes (exact) to .some +
substring — the QR component logs the message wrapped in JSON, so an exact match
on the bare message string never worked once rendering moved through
renderQRCodeStep.1 parent b081582 commit a250b8c
1 file changed
Lines changed: 5 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
35 | 37 | | |
36 | 38 | | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | 39 | | |
0 commit comments