Merge "Run tablet specific assertions only on tablets"
This commit is contained in:
committed by
Android (Google) Code Review
commit
5bb1e06b3f
@@ -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()
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user