Add low-output tooling mode

This commit is contained in:
Joe Tretter
2026-06-26 16:24:45 -05:00
parent 91913a9de8
commit 4b94173ae5
6 changed files with 224 additions and 207 deletions

View File

@@ -117,6 +117,15 @@ class GitRepositoryRuntimeInstrumentedTest {
}
}
@Test
fun visualFileEditorStartsWithActionsVisible() {
launchFreshApp().use {
submitTerminalCommand("edit notes.txt")
waitForTextEditorActions()
}
}
@Test
fun selectingLevelFromLevelsPaneUpdatesExerciseImmediately() {
launchFreshApp().use {
@@ -200,6 +209,7 @@ class GitRepositoryRuntimeInstrumentedTest {
composeRule.onAllNodes(hasText(path, substring = true)).fetchSemanticsNodes().isNotEmpty()
}
composeRule.onNodeWithTag("git-message-editor-path").assertIsDisplayed()
waitForGitEditorActions()
}
private fun waitForGitMessageEditor() {
@@ -207,6 +217,20 @@ class GitRepositoryRuntimeInstrumentedTest {
composeRule.onAllNodesWithTag("git-message-editor-content").fetchSemanticsNodes().isNotEmpty()
}
composeRule.onNodeWithTag("git-message-editor-content").assertIsDisplayed()
waitForGitEditorActions()
}
private fun waitForGitEditorActions() {
composeRule.onNodeWithTag("git-message-editor-save").assertIsDisplayed()
composeRule.onNodeWithTag("git-message-editor-dismiss").assertIsDisplayed()
}
private fun waitForTextEditorActions() {
composeRule.waitUntil(timeoutMillis = 30_000) {
composeRule.onAllNodesWithTag("text-editor-content").fetchSemanticsNodes().isNotEmpty()
}
composeRule.onNodeWithTag("text-editor-save").assertIsDisplayed()
composeRule.onNodeWithTag("text-editor-dismiss").assertIsDisplayed()
}
private fun currentGitEditorContent(): String {