Merge "Run tablet specific assertions only on tablets"

This commit is contained in:
Nataniel Borges
2022-12-14 09:49:06 +00:00
committed by Android (Google) Code Review
3 changed files with 14 additions and 6 deletions

View File

@@ -106,7 +106,9 @@ class CloseImeWindowToAppTest(flicker: FlickerTest) : BaseTest(flicker) {
@IwTest(focusArea = "ime")
override fun cujCompleted() {
super.cujCompleted()
navBarLayerPositionAtStartAndEnd()
if (!flicker.scenario.isTablet) {
navBarLayerPositionAtStartAndEnd()
}
imeLayerBecomesInvisible()
imeAppLayerIsAlwaysVisible()
imeAppWindowIsAlwaysVisible()

View File

@@ -104,7 +104,9 @@ class CloseImeWindowToHomeTest(flicker: FlickerTest) : BaseTest(flicker) {
@IwTest(focusArea = "ime")
override fun cujCompleted() {
super.cujCompleted()
navBarLayerPositionAtStartAndEnd()
if (!flicker.scenario.isTablet) {
navBarLayerPositionAtStartAndEnd()
}
imeLayerBecomesInvisible()
imeAppWindowBecomesInvisible()
imeWindowBecomesInvisible()

View File

@@ -213,6 +213,14 @@ open class SeamlessAppRotationTest(flicker: FlickerTest) : RotationTransition(fl
// not yet tablet compatible
appLayerRotates()
appLayerAlwaysVisible()
// not tablet compatible
navBarLayerIsVisibleAtStartAndEnd()
navBarWindowIsAlwaysVisible()
}
if (flicker.scenario.isTablet) {
taskBarLayerIsVisibleAtStartAndEnd()
taskBarWindowIsAlwaysVisible()
}
appWindowFullScreen()
@@ -223,10 +231,6 @@ open class SeamlessAppRotationTest(flicker: FlickerTest) : RotationTransition(fl
appLayerRotates_StartingPos()
appLayerRotates_EndingPos()
entireScreenCovered()
navBarLayerIsVisibleAtStartAndEnd()
navBarWindowIsAlwaysVisible()
taskBarLayerIsVisibleAtStartAndEnd()
taskBarWindowIsAlwaysVisible()
visibleLayersShownMoreThanOneConsecutiveEntry()
visibleWindowsShownMoreThanOneConsecutiveEntry()
}