Start with a single screenshot

Change-Id: I74fe8d37c7618fb07cb6aacc6ab8ef884b8cdb44
ben/dropshots
Jose Alcérreca 6 months ago
parent fb62f859dd
commit c2f13c5cd5

@ -80,8 +80,8 @@ class EdgeToEdgeTest {
@get:Rule(order = 3) @get:Rule(order = 3)
val activityScenarioRule = ActivityScenarioRule(MainActivity::class.java) val activityScenarioRule = ActivityScenarioRule(MainActivity::class.java)
// @get:Rule(order = 4) @get:Rule(order = 4)
// val dropshots = Dropshots() val dropshots = Dropshots()
@Before @Before
fun setup() = hiltRule.inject() fun setup() = hiltRule.inject()
@ -135,6 +135,7 @@ class EdgeToEdgeTest {
@Test @Test
fun edgeToEdge_Foldable_api33() { fun edgeToEdge_Foldable_api33() {
assert(true) assert(true)
screenshotSystemBar("edgeToEdge_Foldable_closed_system")
//runFoldableTests(apiName = "api33") //runFoldableTests(apiName = "api33")
} }
// //
@ -242,18 +243,18 @@ class EdgeToEdgeTest {
name: String, name: String,
filePath: String? = null, filePath: String? = null,
) { ) {
// // Try to assert 3 times // Try to assert 3 times
// var count = 2 var count = 2
// while (true) { while (true) {
// try { try {
// dropshots.assertSnapshot(bitmap, name, filePath) dropshots.assertSnapshot(bitmap, name, filePath)
// } catch (e: AssertionError) { } catch (e: AssertionError) {
// if (count == 0) throw e if (count == 0) throw e
// count -= 1 count -= 1
// Log.i("EdgeToEdgeTest", "Test failed, retrying (count=$count)") Log.i("EdgeToEdgeTest", "Test failed, retrying (count=$count)")
// waitForWindowUpdate() waitForWindowUpdate()
// } }
// } }
} }
} }

Loading…
Cancel
Save