ScreenSizeRule
Used to fix a test to a specific AdaptivenessBucket when a test depends on the screen size.
Example usage
Add the test rule:
@get:Rule
val screenSizeRule = ScreenSizeRule(AdaptivenessBucket.STANDARD_MEDIUM)
Content copied to clipboard
Or once as a class rule:
companion object {
@ClassRule
@JvmField
val screenSizeRule = ScreenSizeRule(AdaptivenessBucket.STANDARD_MEDIUM)
}
Content copied to clipboard