Skip to content

Commit

Permalink
ANDROID-13796 removing the layout tests from library
Browse files Browse the repository at this point in the history
  • Loading branch information
jeprubio committed Oct 11, 2023
1 parent e905f27 commit 7416b62
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 374 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -40,23 +40,4 @@ internal class TextInputTest: ScreenshotsTest() {
compareScreenshot(onView(ViewMatchers.withId(R.id.dummy_activity_wrapper)))
}
}

@Test
fun `check TextInput from layout`() {
rule.scenario.onActivity { activity ->
val wrapper: FrameLayout = activity.findViewById(R.id.dummy_activity_wrapper)
val inflater = LayoutInflater.from(activity)
val customLayout = inflater.inflate(R.layout.screen_inputs_catalog, wrapper, false)
wrapper.setPadding(0, 0, 0, 0)
wrapper.addView(customLayout)

repeat(times = 3) { i ->
Log.d("TextInputTest", "Scrolling to $i")
val scrollView: ScrollView = activity.findViewById(R.id.scroll_view)
scrollView.scrollTo(0, wrapper.height * i)

compareScreenshot(onView(withId(R.id.dummy_activity_wrapper)), extra = "_${i + 1}")
}
}
}
}
355 changes: 0 additions & 355 deletions library/src/test/res/layout/screen_inputs_catalog.xml

This file was deleted.

0 comments on commit 7416b62

Please sign in to comment.