microsoft / surface-duo-compose-sdk

This repo contains components built with Jetpack Compose for the Microsoft Surface Duo.
MIT License
74 stars 2 forks source link

Update ComposeTesting to Compose 1.2.0 and add new StringHelper methods #41

Closed khalp closed 2 years ago

khalp commented 2 years ago

πŸ“ƒ Description

Updates dependencies for the ComposeTesting library, including bumping to Compose 1.2.0 and gradle 7.2.0

Also adds new StringHelper methods to use with a ComposeTestRule, as the previous methods only worked with an AndroidComposeTestRule

πŸ€” Motivation and Context

Keeps SDKs up to date with the latest stable releases

πŸ§ͺ How Has This Been Tested?

Ran all sample tests on the Surface Duo, and also tested a private artifact with the tests in the TwoPaneLayout library

βš’οΈ Does the PR contain new tests or refactored old ones?

Both! New tests for the new StringHelper method and to add more examples of test annotations Refactored old tests to fit in with Compose 1.2.0, now with AndroidComposeTestRule there is no need to call setContent

πŸ“· Screenshots (if appropriate)

πŸ“¦ Types of changes

βœ… Checklist