Testing a React App in Chrome with Heroku CI
End-to-end browser tests for a React app can run automatically in Heroku CI using headless Chrome installed by the Chrome for Testing Heroku Buildpack. The walkthrough builds a small greeting form app, writes Jest and Puppeteer tests for link navigation, input and form submission, and uses start-server-and-test to start the dev server, wait for it, and run tests in one command. An app.json declaring the Chrome for Testing and Node.js buildpacks plus a test script lets every push to the connected GitHub repo trigger the suite in a Heroku pipeline.
Related posts
- Using GitHub Actions with Heroku Flow for additional Security Control
Heroku Engineering mediumAdeptBecause GitHub Orgs can't allowlist Heroku IP ranges, Heroku offers a sample pattern: a self-hosted GitHub Actions runner deployed as a Docker app in a Heroku Private Space with static outbound IPs, plus a Heroku Flow Action. The action uses the Platform API's Source Endpoint to upload private repo code, deploy apps on push, dispatch or schedule events, and create, update or remove Review Apps on pull request events. A weekly scheduled workflow rebuilds and redeploys the runner to meet GitHub's 30-day update requirement. Tradeoffs include no repo link in the Review App UI, no automatic Heroku CI tests, no Fir support, and a custom runner image that other actions should be tested against.
- Implement a GitHub Actions Testing Suite
Railway mediumAdeptWalkthrough of building a CI test suite with GitHub Actions for a TypeScript Fastify API deployed on Railway. A /weekday route is added and covered with Vitest integration tests. A workflow runs on PRs and pushes to main, building the app, starting it in the background, then running the tests. Branch rulesets make the passing check required before merge, and Railway's 'wait for CI' setting stops failing commits from auto-deploying. Closing notes point to concurrency, matrix builds and caching as ways to scale the pipeline.
- How AI-assisted development helped us build the new Dropbox experience
Dropbox Tech easyNoviceDropbox shipped its new AI-powered experience on a fixed launch deadline by using AI coding agents to handle integration, accessibility and test work. The work included bringing web features into the Electron desktop app, partly as embedded web views for full pages and partly as directly imported React components for finer control. Shared React components talk to platform-specific adapters, so each app keeps its own auth, navigation and networking. Agents worked from a written plan agreed with an engineer, ran builds and tests locally, and logged results for review, which delivered 22 accessibility features and retired a legacy file list's tests through 53 tasks finished in one week.
- End-to-end test probes with Playwright
Zalando Engineering mediumAdeptZalando turned its end-to-end tests into production probes: a small set of Playwright scenarios covering critical customer journeys runs every 30 minutes and pages on-call when it fails. The trigger was an incident in which bad headless CMS content broke React hydration on product pages, which neither the Cypress pre-release tests (about 95% reliable after hardening) nor existing alerting caught. Playwright's auto-wait, web-first assertions, fixtures, expect.toPass retry loops and :visible pseudo-class selectors made the simplified tests resilient. The tests first ran for a few weeks in a low-priority email-only 'shadow' mode to remove flakiness, and after paging was enabled they fired only once, during a real outage. The main advice is to keep probes focused on critical journeys, write good selectors, and iterate in shadow mode before paging.
- How we raised mobile end-to-end test stability to 98%
Shopify Engineering mediumAdeptShopify rebuilt its mobile end-to-end test framework as an opinionated wrapper over Appium, raising test stability from 50% to 98% and returning the suite to blocking PR checks. The wrapper exposes a small builder-style API where every action must carry an assertion that is validated as false before the step and true after. Escape hatches like custom timeouts and Test IDs are prefixed UNSAFE_. Elements are located visually rather than through the view hierarchy: PaddleOCR finds text, and OpenCV matches grayscale Polaris SVG icons, including color-inverted variants and multiple sizes, using adjacency to tell duplicates apart. Annotated run videos, a single CLI for local and remote device-farm runs, and a pre-promotion gate that reruns new tests before admitting them to CI round out the approach.