Skip to content
Snippets Groups Projects
Commit 71c0ce93 authored by Mohamed Metwalli's avatar Mohamed Metwalli
Browse files

Scroll and grab another screenshot in OnboardingFragment

parent 3452553f
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,9 @@ package de.rki.coronawarnapp.ui.onboarding.screenshot
import androidx.fragment.app.testing.launchFragmentInContainer
import androidx.test.espresso.Espresso.onView
import androidx.test.espresso.action.ViewActions.click
import androidx.test.espresso.action.ViewActions.scrollTo
import androidx.test.espresso.action.ViewActions.swipeUp
import androidx.test.espresso.assertion.ViewAssertions.matches
import androidx.test.espresso.matcher.ViewMatchers.isDisplayed
import androidx.test.espresso.matcher.ViewMatchers.withId
......@@ -51,5 +54,8 @@ class OnboardingFragmentScreenshot : BaseUITest() {
// Check any view to make sure screenshot is not blank
onView(withId(R.id.onboarding_button_next)).check(matches(isDisplayed()))
Screengrab.screenshot(OnboardingFragment::class.simpleName)
onView(withId(R.id.onboarding_easy_language)).perform(scrollTo(), click());
Screengrab.screenshot(OnboardingFragment::class.simpleName.plus("2"))
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment