[Android] Add locales to fastlane and improve the tests

Nicolas Pomepuy git at videolan.org
Wed Sep 15 09:02:43 UTC 2021


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Wed Sep 15 10:27:22 2021 +0200| [de8e7195580118ffe780dabc14daf7eb95addf2f] | committer: Nicolas Pomepuy

Add locales to fastlane and improve the tests

> https://code.videolan.org/videolan/vlc-android/commit/de8e7195580118ffe780dabc14daf7eb95addf2f
---

 .../java/org/videolan/vlc/TvScreenhotsInstrumentedTest.kt            | 5 +----
 buildsystem/automation/fastlane/Screengrabfile                       | 2 +-
 2 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/application/app/src/androidTest/java/org/videolan/vlc/TvScreenhotsInstrumentedTest.kt b/application/app/src/androidTest/java/org/videolan/vlc/TvScreenhotsInstrumentedTest.kt
index 48f753729..4ea38f2d9 100644
--- a/application/app/src/androidTest/java/org/videolan/vlc/TvScreenhotsInstrumentedTest.kt
+++ b/application/app/src/androidTest/java/org/videolan/vlc/TvScreenhotsInstrumentedTest.kt
@@ -105,7 +105,6 @@ class TvScreenhotsInstrumentedTest : BaseUITest() {
         pressDPadCenter()
 
         waitForActivity(VerticalGridActivity::class.java)
-        waitId(org.videolan.television.R.id.list, 5000)
 
         getCurrentActivity()?.let { activity ->
             UiUtils.waitUntilLoaded { activity.findViewById(org.videolan.television.R.id.list) }
@@ -124,7 +123,6 @@ class TvScreenhotsInstrumentedTest : BaseUITest() {
         pressDPadCenter()
 
         waitForActivity(VerticalGridActivity::class.java)
-        waitId(org.videolan.television.R.id.list, 5000)
         getCurrentActivity()?.let { activity ->
             UiUtils.waitUntilLoaded { activity.findViewById(org.videolan.television.R.id.list) }
         }
@@ -135,12 +133,11 @@ class TvScreenhotsInstrumentedTest : BaseUITest() {
         pressDPadCenter()
         pressDPadCenter()
         waitForActivity(VerticalGridActivity::class.java)
-        waitId(org.videolan.television.R.id.list, 5000)
         getCurrentActivity()?.let { activity ->
             UiUtils.waitUntilLoaded { activity.findViewById(org.videolan.television.R.id.list) }
         }
         ScreenshotUtil.takeScreenshot(2,"tv_video_list")
-        pressDPad(Direction.DOWN, 3)
+        pressDPad(Direction.DOWN, 1)
         pressDPadCenter()
         SystemClock.sleep(1500)
         pressDPad(Direction.DOWN)
diff --git a/buildsystem/automation/fastlane/Screengrabfile b/buildsystem/automation/fastlane/Screengrabfile
index a94840ec7..ba229de67 100644
--- a/buildsystem/automation/fastlane/Screengrabfile
+++ b/buildsystem/automation/fastlane/Screengrabfile
@@ -6,7 +6,7 @@
 use_adb_root(true)
 test_instrumentation_runner("org.videolan.vlc.MultidexTestRunner")
 #locales(['en-US', 'fr-FR', 'it-IT', 'ko-KR', 'ja-JP'])
-locales(['en-US', 'fr-FR', 'it-IT'])
+locales(['en-US', 'fr-FR', 'it-IT', 'ko-KR', 'ja-JP', 'es-ES', 'hi-IN', 'de-DE', 'ru-RU', 'pt-BR'])
 
 # clear all previously generated screenshots in your local output directory before creating new ones
 clear_previous_screenshots(true)



More information about the Android mailing list