diff --git a/fastlane/metadata/android/en_US/images/phoneScreenshots/startConversationOptions.png b/fastlane/metadata/android/en_US/images/phoneScreenshots/startConversationOptions.png new file mode 100644 index 000000000..0f3a7a4d4 Binary files /dev/null and b/fastlane/metadata/android/en_US/images/phoneScreenshots/startConversationOptions.png differ diff --git a/src/androidTest/java/com/cheogram/android/test/ScreenshotTest.java b/src/androidTest/java/com/cheogram/android/test/ScreenshotTest.java index 8a39886d6..ce0fd62ad 100644 --- a/src/androidTest/java/com/cheogram/android/test/ScreenshotTest.java +++ b/src/androidTest/java/com/cheogram/android/test/ScreenshotTest.java @@ -25,6 +25,9 @@ import androidx.test.core.app.ApplicationProvider; import androidx.test.ext.junit.rules.ActivityScenarioRule; import androidx.test.ext.junit.runners.AndroidJUnit4; import androidx.test.rule.ServiceTestRule; +import static androidx.test.espresso.Espresso.onView; +import static androidx.test.espresso.action.ViewActions.click; +import static androidx.test.espresso.matcher.ViewMatchers.withId; import tools.fastlane.screengrab.Screengrab; import tools.fastlane.screengrab.cleanstatusbar.CleanStatusBar; @@ -150,4 +153,17 @@ public class ScreenshotTest { Thread.sleep(100); // ImageView not paited yet after waitForIdleSync Screengrab.screenshot("startConversation"); } + + @Test + public void testAddContact() throws InterruptedException { + ActivityScenario scenario = ActivityScenario.launch(StartConversationActivity.class); + onView(withId(eu.siacs.conversations.R.id.speed_dial)).perform(click()); + Screengrab.screenshot("startConversationOptions"); + + // Not actually online, so can't screenshot the gateway selector yet + /*onView(withId(eu.siacs.conversations.R.id.create_contact)).perform(click()); + InstrumentationRegistry.getInstrumentation().waitForIdleSync(); + Thread.sleep(10000); // ImageView not paited yet after waitForIdleSync + Screengrab.screenshot("addContact");*/ + } }