Skip to content

test: wait for the stored referrer before opening the join page - #194

Merged
mostafazh merged 1 commit into
mainfrom
mostafazh/fix-main-ci
Nov 1, 2026
Merged

mostafazh merged 1 commit into
mainfrom
mostafazh/fix-main-ci

Conversation

@mostafazh

Copy link
Copy Markdown
Collaborator

credits the promoter whose link you arrived through opened /?ref=zaher-7k2q and went straight to /leaderboard/join. The code is stored in an effect after hydration (src/app/page.tsx:77), so when the second navigation won, the join page had no recruiter. It failed on chromium on #189/#190 and on webkit on main.

The test now waits with the spec's existing storedReferrer poll, and so does the channel-link test, which otherwise passed without checking anything. Ran 54/54 on chromium and 36/36 on webkit locally.

The join-page referral tests navigated away from /?ref=... before the
home page's effect had stored the code, so the recruiter was sometimes
missing (chromium on PRs, webkit on main). Wait for the stored code first,
using the spec's existing storedReferrer poll.
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

Deploying palestine-pfp-maker with  Cloudflare Pages  Cloudflare Pages

Latest commit: 663e65b
Status: ✅  Deploy successful!
Preview URL: https://4091f96a.palestine-pfp-maker.pages.dev
Branch Preview URL: https://mostafazh-fix-main-ci.palestine-pfp-maker.pages.dev

View logs

@mostafazh
mostafazh merged commit 65580d4 into main Nov 1, 2026
11 of 12 checks passed
@mostafazh
mostafazh deleted the mostafazh/fix-main-ci branch November 1, 2026 11:28
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.

1 participant