Selecting and typing into input texts

In this recipe, we will write our first test. We are going to get the three input texts and type some values, then we will assert that the values are present in the fields.

Getting ready

For this recipe, we will continue working on the same project we created in the previous recipe.

We need to make sure the Appium server is running; please take a look at recipe number 1 in this chapter.

We also need to make sure the inspector is not running, otherwise the device will be busy running the app and won't be able to run our tests.

Just in case, I have to mention that the device should be connected to your Mac (sometimes I've forgotten this important step) and the React Native Packager running.

We need the packager running ...

Get React Native Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.