---
title: "Testing a React App in Chrome with Heroku CI"
description: "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."
url: "https://swe.quest/articles/testing-a-react-app-in-chrome-with-heroku-ci-e2feb9ae270e7d84"
canonical: "https://www.heroku.com/blog/testing-react-app-chrome-heroku-ci/"
source: "Heroku Engineering"
published: "2024-09-24"
difficulty: "medium"
kind: "How-to"
reading_minutes: 9
tags: ["testing","ci-cd","react","javascript"]
---

# Testing a React App in Chrome with Heroku CI

A post on [Heroku Engineering](https://swe.quest/sources/heroku.md), published 2024-09-24, 9 min read, How-to. Original: [https://www.heroku.com/blog/testing-react-app-chrome-heroku-ci/](https://www.heroku.com/blog/testing-react-app-chrome-heroku-ci/)

## Summary

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.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Testing](https://swe.quest/tags/testing.md) (Engineering practices)
- [CI/CD](https://swe.quest/tags/ci-cd.md) (Reliability & operations)
- [React](https://swe.quest/tags/react.md) (Web & mobile)
- [JavaScript](https://swe.quest/tags/javascript.md) (Languages)

## Prerequisites

- React basics ([easy posts on React](https://swe.quest/tags/react.md?difficulty=easy))
- npm scripts
- Jest

## Keywords

Heroku CI, Puppeteer, Jest, Chrome for Testing, start-server-and-test, Heroku Buildpacks, Create React App

## Related posts

- [Using GitHub Actions with Heroku Flow for additional Security Control](https://swe.quest/articles/using-github-actions-with-heroku-flow-for-additional-security-control-fea72ed977a6f5e4.md): Heroku Engineering · 2025-03-27 · Medium · 7 min read · CI/CD, Deployment, Security, Cloud platforms
  Because 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.
- [Implement a GitHub Actions Testing Suite](https://swe.quest/articles/implement-a-github-actions-testing-suite-2bebf2196b8d7e8d.md): Railway · 2024-12-13 · Medium · 6 min read · CI/CD, Testing, TypeScript, Deployment
  Walkthrough of building a CI test suite with GitHub Actions for a TypeScript Fastify API deployed on Railway.
- [How AI-assisted development helped us build the new Dropbox experience](https://swe.quest/articles/how-ai-assisted-development-helped-us-build-the-new-dropbox-experience-87aa82f0afa45830.md): Dropbox Tech · 2026-11-05 · Easy · 8 min read · AI for coding, Frontend, React, Accessibility, Testing
  Dropbox shipped its new AI-powered experience on a fixed launch deadline by using AI coding agents to handle integration, accessibility and test work.
- [End-to-end test probes with Playwright](https://swe.quest/articles/end-to-end-test-probes-with-playwright-7071f390329a920e.md): Zalando Engineering · 2024-07-18 · Medium · 6 min read · Testing, Observability, Frontend, TypeScript
  Zalando 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.
- [How we raised mobile end-to-end test stability to 98%](https://swe.quest/articles/how-we-raised-mobile-end-to-end-test-stability-to-98-ca68fcd3c9f171ff.md): Shopify Engineering · 2026-08-12 · Medium · 6 min read · Testing, Mobile, CI/CD, Computer vision, React
  Shopify 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.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
