mattinger
06/23/2021, 1:57 PMAlexandre Elias [G]
06/24/2021, 12:59 AMremember
block, but not by muchAlexandre Elias [G]
06/24/2021, 1:00 AMAlexandre Elias [G]
06/24/2021, 1:01 AMmattinger
07/02/2021, 5:53 PMmiqbaldc
07/16/2021, 8:27 AMi can make assertions that the elements have been created with the right properties.did you able to make this happen on jetpack compose testing? @mattinger
mattinger
07/16/2021, 3:13 PMmattinger
07/16/2021, 3:15 PMmattinger
07/16/2021, 3:15 PM.assert(SemanticsMatcher.expectValue(SemanticsProperties.Role, Role.Button))
mattinger
07/16/2021, 3:15 PMmiqbaldc
07/16/2021, 3:24 PMRole
miqbaldc
07/16/2021, 3:29 PMSemanticProperty
like following:
enum ColorRole { // StyleRole?
....Yellow, Orange, DarkJungle, DeepBlue
}
and modify your snippet to:
composeRule.setContent {
Button()
}
....
.assert(SemanticsMatcher.expectValue(SemanticsProperties.Role, Role.Yellow))