{
  "id": 23707984,
  "title": "Catching a Play button below the fold: how we playtest 49 browser games with Playwright",
  "url": "https://urgent.news/2026/12/05/catching-a-play-button-below-the-fold-how-we-playtest-49-browser",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-12-05T21:52:07.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/cx858888prog/catching-a-play-button-below-the-fold-how-we-playtest-49-browser-games-with-playwright-4dgc"
  },
  "original_language": null,
  "account": "Every JumpBud game page has a single purpose on a phone: display a brief answer to \"what is this?\" and a Play button that can be reached without scrolling. A recent copy change broke this functionality on one page, and a Playwright script caught the issue. The script, named playcheck.py, opens all 49 games on jumpbud.com in Chromium, simulates pressing the Play button, and fails the build if anything looks amiss.\n\nOn the Reef Pairs page, the first sentence listed everything the game offered: two practice boards, a daily 4x5 board drawn from 365 unique-solution layouts, par, streaks, and a share button. The Play button, however, pushed the bottom edge to 613 px on a 375x812 phone screen. Mobile screen real estate is limited, with only 553 px visible due to Safari's address bar and toolbar on an iPhone SE-class device. The script checks that the Play button sits within this visible area. If not, it flags an issue.\n\nThe fix turned out to be editorial, requiring the first sentence to be shorter and the feature list moved into an introductory paragraph below the game. After the change, the Play button's bottom edge measured between 493 px and 540 px across all 49 pages, with a median of 522 px. This tight budget meant the Play button had to remain visible on every page.\n\nEach game was tested twice: on a phone (375x812, touch, mobile) and a desktop (1280x900, mouse and keyboard) environment. A fresh browser context was created for each run to prevent the leakage of localStorage, streaks, and cookies between games. The script added per-viewport configurations, including reduced motion mode to avoid animation interference.\n\nBefore pressing Play, the script verified that the quick-answer summary was fully visible and above the player iframe. The game itself was asserted on its events rather than its CSS classes to avoid breakage with restyling. Each game had a specific board, rules, and scenario to ensure proper functionality. For Reef Pairs, the script checked the legality of moves, the ability to undo and restore state, and the completion of a known solution with the expected score.\n\nGames with timers, gravity, or falling sand were tested using virtual time to prevent real-time slowness and flakiness. After the iframe loaded, Playwright's clock was installed and paused. This strategy ensured that the Play button remained accessible and functional across all 49 JumpBud games, maintaining a positive user experience.",
  "summary": "Every JumpBud game page has one job on a phone: show a short answer to \"what is this?\", then a Play button you can reach without scrolling. Yesterday a copy change broke that on one page, and no human noticed. A Playwright script did. This post walks through that script, playcheck.py : one Python file that opens all 49 games on jumpbud.com in Chromium, presses Play like a person would, plays at…",
  "summary_source": "publisher",
  "key_points": [
    "Playcheck.py script tests all 49 JumpBud games on Chromium.",
    "Play button must stay within 553 px visible area on iPhone SE.",
    "Editorial fix improves Play button visibility across all pages."
  ],
  "editors_take": null,
  "opinion": false,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "outlets_capped": false,
    "also_reported_by": []
  },
  "machine_translated": false,
  "ai_generated": true,
  "disclaimer": "Accounts, briefs, key points, the editor’s take and translations are written by software from other outlets’ reporting and may contain errors. A summary whose summary_source is \"publisher\" is the outlet’s own feed text. Always check the linked original."
}