mirror of
https://github.com/D-Modem/app.git
synced 2026-11-28 17:38:05 -08:00
LocalShellUiTest: scroll to Home's Shell shortcut before tapping it (the lights panel moved it down)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0172Hejd12i4aYikYW9vgpZs
This commit is contained in:
1 file changed
+2
-1
@@ -9,6 +9,7 @@ import androidx.compose.ui.test.captureToImage
|
||||
import androidx.compose.ui.test.junit4.createAndroidComposeRule
|
||||
import androidx.compose.ui.test.onAllNodesWithText
|
||||
import androidx.compose.ui.test.onNodeWithText
|
||||
import androidx.compose.ui.test.performScrollTo
|
||||
import androidx.compose.ui.test.onRoot
|
||||
import androidx.compose.ui.test.performClick
|
||||
import androidx.test.core.app.ApplicationProvider
|
||||
@@ -80,7 +81,7 @@ class LocalShellUiTest {
|
||||
|
||||
@Test
|
||||
fun aShellFromHome() {
|
||||
compose.onNodeWithText("Shell").performClick()
|
||||
compose.onNodeWithText("Shell").performScrollTo().performClick()
|
||||
compose.waitUntil(10_000) { Terminal.active.value?.kind == TerminalSession.Kind.LOCAL }
|
||||
val s = Terminal.active.value!!
|
||||
waitShell(s, "u0_a187@dmodem:~$")
|
||||
|
||||
Reference in new issue
Block a user