Skip to content

feat(bench): login, infinite scroll, and media replay scenarios - #26

Draft
shehrii9 wants to merge 1 commit into
mainfrom
cursor/bench-scenarios-ec5e
Draft

shehrii9 wants to merge 1 commit into
mainfrom
cursor/bench-scenarios-ec5e

Conversation

@shehrii9

Copy link
Copy Markdown
Owner

Summary

Roadmap item #6 — more replay benchmarks.

npm run bench:replay now runs four two-pass scenarios and prints a combined JSON report:

Scenario Fixture What it exercises
cookie-shop cookie-shop.html Cookie overlay + checkout (existing)
login-wall login-local.html modal:login + typed credentials
infinite-scroll new scroll-feed.html scroll + untilText: Item 42
media-skip-ad media-local.html Skip-ad overlay → playback

Also: npm run bench:replay:cookie, npm run bench:replay -- --only login-wall, shared benchmarks/replay-harness.ts / replay-runner.ts.

media-local.html now uses a fixed ad overlay (browser smoke still passes).

Testing

  • npm test (tests/benchmark-scenarios.test.ts)
  • npm run bench:replay — 4/4 passed locally (~57s)
Open in Web Open in Cursor 

Refactor replay benchmarks into harness + runner with four fixtures:
cookie-shop, login-wall, infinite-scroll (scroll-feed.html), media-skip-ad.
npm run bench:replay runs all; --only filters scenarios.

Co-authored-by: Shaharyar Ahmad <shehrii9@users.noreply.github.com>
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.

2 participants