Android Compose: testing button click

I’m learning how to write a Compose test. The goal: is to show basic test to click a button. Series will show run Compose test using Firebase Test Lab.

  1. Using Android Studio Chipmunk create a new Android project “Compose Activity”. Add below snippet to your MainActivity

--

--

software engineer, read, swim, travel. apps: https://goo.gl/rDuuQw https://goo.gl/15GvfE

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store