Skip to content
Snippets Groups Projects
Unverified Commit a991450c authored by Mohamed's avatar Mohamed Committed by GitHub
Browse files

Fix screenshots tests in 1.13 release (DEV) (#2367)


* Create annotation for Testing screenshots tests

* Fix comment

* Revert

* Fix test

* Update comment

Co-authored-by: default avatarharambasicluka <64483219+harambasicluka@users.noreply.github.com>
parent 3dfc92a6
No related branches found
No related tags found
No related merge requests found
...@@ -39,8 +39,10 @@ class OnboardingFragmentTest : BaseUITest() { ...@@ -39,8 +39,10 @@ class OnboardingFragmentTest : BaseUITest() {
launchFragmentInContainer2<OnboardingFragment>() launchFragmentInContainer2<OnboardingFragment>()
takeScreenshot<OnboardingFragment>() takeScreenshot<OnboardingFragment>()
onView(withId(R.id.onboarding_easy_language)).perform(scrollTo()) if (showEasyLanguageLink()) {
takeScreenshot<OnboardingFragment>("2") onView(withId(R.id.onboarding_easy_language)).perform(scrollTo())
takeScreenshot<OnboardingFragment>("2")
}
} }
} }
......
package testhelpers
/**
* Similar to [Screenshot]. it is helpful during development and testing process to filter
* the test currently being implemented.
* In fastlane folder. replace `Screenshot` with `ScreenshotUnderTest` in Screengrabfile
*
* Note: this is only for testing purposes and should NOT be used in final tests
*/
@kotlin.annotation.Retention(AnnotationRetention.RUNTIME)
@Target(
AnnotationTarget.FUNCTION,
AnnotationTarget.CLASS
)
annotation class ScreenshotUnderTest
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