mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-23 18:15:22 +00:00
Removing unsed UI tests
We need to rethink the UI tests if we do indeed want to use them as they are not tied to the existing flow anymore
This commit is contained in:
parent
f379604c54
commit
f159b1a892
@ -42,6 +42,10 @@ import org.thoughtcrime.securesms.conversation.v2.input_bar.InputBar
|
|||||||
import org.thoughtcrime.securesms.home.HomeActivity
|
import org.thoughtcrime.securesms.home.HomeActivity
|
||||||
import com.bumptech.glide.Glide
|
import com.bumptech.glide.Glide
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Currently not used as part of our CI/Deployment processes !!!!
|
||||||
|
*/
|
||||||
|
|
||||||
@RunWith(AndroidJUnit4::class)
|
@RunWith(AndroidJUnit4::class)
|
||||||
@LargeTest
|
@LargeTest
|
||||||
class HomeActivityTests {
|
class HomeActivityTests {
|
||||||
@ -107,7 +111,7 @@ class HomeActivityTests {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private fun goToMyChat() {
|
/* private fun goToMyChat() {
|
||||||
onView(withId(R.id.newConversationButton)).perform(ViewActions.click())
|
onView(withId(R.id.newConversationButton)).perform(ViewActions.click())
|
||||||
onView(withId(R.id.createPrivateChatButton)).perform(ViewActions.click())
|
onView(withId(R.id.createPrivateChatButton)).perform(ViewActions.click())
|
||||||
// new chat
|
// new chat
|
||||||
@ -122,7 +126,7 @@ class HomeActivityTests {
|
|||||||
onView(withId(R.id.publicKeyEditText)).perform(ViewActions.typeText(copied))
|
onView(withId(R.id.publicKeyEditText)).perform(ViewActions.typeText(copied))
|
||||||
onView(withId(R.id.publicKeyEditText)).perform(ViewActions.closeSoftKeyboard())
|
onView(withId(R.id.publicKeyEditText)).perform(ViewActions.closeSoftKeyboard())
|
||||||
onView(withId(R.id.createPrivateChatButton)).perform(ViewActions.click())
|
onView(withId(R.id.createPrivateChatButton)).perform(ViewActions.click())
|
||||||
}
|
}*/
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun testLaunches_dismiss_seedView() {
|
fun testLaunches_dismiss_seedView() {
|
||||||
@ -145,7 +149,7 @@ class HomeActivityTests {
|
|||||||
onView(withId(R.id.seedReminderView)).check(matches(not(isDisplayed())))
|
onView(withId(R.id.seedReminderView)).check(matches(not(isDisplayed())))
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
/* @Test
|
||||||
fun testChat_withSelf() {
|
fun testChat_withSelf() {
|
||||||
setupLoggedInState()
|
setupLoggedInState()
|
||||||
goToMyChat()
|
goToMyChat()
|
||||||
@ -176,7 +180,7 @@ class HomeActivityTests {
|
|||||||
|
|
||||||
onView(isRoot()).perform(waitFor(1000)) // no other way for this to work apparently
|
onView(isRoot()).perform(waitFor(1000)) // no other way for this to work apparently
|
||||||
onView(withText(dialogPromptText)).check(matches(isDisplayed()))
|
onView(withText(dialogPromptText)).check(matches(isDisplayed()))
|
||||||
}
|
}*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Perform action of waiting for a specific time.
|
* Perform action of waiting for a specific time.
|
||||||
|
@ -551,6 +551,7 @@ class InstrumentedTests {
|
|||||||
is Conversation.OneToOne -> seen.add("1-to-1: ${convo.accountId}")
|
is Conversation.OneToOne -> seen.add("1-to-1: ${convo.accountId}")
|
||||||
is Conversation.Community -> seen.add("og: ${convo.baseCommunityInfo.baseUrl}/r/${convo.baseCommunityInfo.room}")
|
is Conversation.Community -> seen.add("og: ${convo.baseCommunityInfo.baseUrl}/r/${convo.baseCommunityInfo.room}")
|
||||||
is Conversation.LegacyGroup -> seen.add("cl: ${convo.groupId}")
|
is Conversation.LegacyGroup -> seen.add("cl: ${convo.groupId}")
|
||||||
|
null -> { /* ignore null cases */ }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user