Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add UI Tests for Simple Text Formatting #382
This PR adds a suite of UI tests for simple text formatting in the Aztec demo app, using the Android Espresso testing framework.
Before running the tests
Espresso advises disabling system animations on devices used for testing:
One additional setup step is also required to handle an Espresso issue with clicks (see the caveats below):
On your device, under Settings -> Accessibility -> Touch & hold delay, set the delay to
Each test performs the following steps:
A couple caveats:
referenced this pull request
Jun 13, 2017
I just edited the original description to add a setup step for changing the "Touch & hold delay" setting to
I do want to note that I observed a persistent problem with the click turning into a long click if the formatting button was selected as the first step in the test (before adding any text to the editor). That could indicate a potential performance issue when Aztec is first launched, and I went ahead and opened an issue to track that: #383
@rachelmcr I finally got a chance to get my Android dev environment set back up and take a look. Everything checks out
My only comment is that you should probably include an update to the README to provide the "Before running the tests" setup steps from the PR details. Is there maybe a way to automate those steps via a set of ADB commands prior to starting the tests?
After following the device configuration steps the tests pass. I'll add these to the README, like @hoverduck suggested.
Quickly searching for the
And for setting a long tap delay:
I haven't tested them, though. @rachelmcr, thank you so much for setting up the test environment and writing these!