mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-03-18 20:29:10 +03:00
waiting for the edited text to appear instead of sleeping
This commit is contained in:
parent
918042c231
commit
411be43287
1 changed files with 2 additions and 1 deletions
|
@ -23,6 +23,7 @@ import androidx.test.espresso.action.ViewActions
|
|||
import androidx.test.espresso.contrib.RecyclerViewActions
|
||||
import androidx.test.espresso.matcher.ViewMatchers
|
||||
import androidx.test.espresso.matcher.ViewMatchers.withId
|
||||
import androidx.test.espresso.matcher.ViewMatchers.withText
|
||||
import com.adevinta.android.barista.interaction.BaristaClickInteractions
|
||||
import com.adevinta.android.barista.interaction.BaristaClickInteractions.clickOn
|
||||
import com.adevinta.android.barista.interaction.BaristaClickInteractions.longClickOn
|
||||
|
@ -84,7 +85,7 @@ class RoomDetailRobot {
|
|||
waitUntilViewVisible(withId(R.id.sendButton))
|
||||
clickOn(R.id.sendButton)
|
||||
// Wait for the UI to update
|
||||
sleep(1000)
|
||||
waitUntilViewVisible(withText("Hello universe! (edited)"))
|
||||
// Open edit history
|
||||
openMessageMenu("Hello universe! (edited)") {
|
||||
editHistory()
|
||||
|
|
Loading…
Add table
Reference in a new issue