qa/networksso.e2e: same file as InstantAdPay again (the 'expired IAP session' check expects the 2026-11-14 deliberate-tap behaviour: IAP asks for its own sign-in first and remembers the trip in nsso.back)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-11-15 08:23:23 -06:00
parent 86007f0784
commit 90596b4d0f
+2 -1
View File
@@ -142,7 +142,8 @@ try {
// a session that expired on the provider: the check answers none
ctx = await newCtx({ iap: 'f'.repeat(64) }); page = await ctx.newPage();
await page.goto(LS + '/sso/start?mode=go&to=%2Fads'); await page.waitForTimeout(1500);
ok(!(await meOf(ctx, LS)).signedIn && page.url() === LS + '/ads', 'an expired IAP session: the check answers none, normal sign-in');
ok(!(await meOf(ctx, LS)).signedIn && page.url().startsWith(IAP + '/my'), 'an expired IAP session on a deliberate tap: IAP asks for its own sign-in first (2026-11-14)', page.url());
ok((await ctx.cookies(IAP)).some(c => c.name === 'nsso.back'), 'IAP remembers the unfinished trip while the member signs in');
await ctx.close();
// 6. not on the receiving site yet: C (IAP only) going to LinkSpin, D (LinkSpin only) going to IAP