Add low-output tooling mode
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user