commit 7756d758cfe6fb41580108c06dbdf533702f7c05
parent aae1313167af0c9548c9632fd8fec6447143c1a6
Author: triesap <tyson@radroots.org>
Date: Thu, 13 Aug 2026 17:56:51 +0000
test(ui): follow the composed shell navigation
Why:
- The production shell moved Network sections into the approved local pane header and now exposes repeated context labels in distinct shell regions.
What:
- Drive identity sections through the main-header tab contract.
- Assert read-only context through its stable semantic tag.
Verification:
- make format
- focused IdentityBootstrapAcceptanceTest integration suite
- git diff --check
Diffstat:
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/app/desktop/src/integrationTest/kotlin/org/harvestcircle/integration/IdentityBootstrapAcceptanceTest.kt b/app/desktop/src/integrationTest/kotlin/org/harvestcircle/integration/IdentityBootstrapAcceptanceTest.kt
@@ -8,6 +8,7 @@ import androidx.compose.ui.test.ExperimentalTestApi
import androidx.compose.ui.test.assertCountEquals
import androidx.compose.ui.test.assertIsDisplayed
import androidx.compose.ui.test.assertIsEnabled
+import androidx.compose.ui.test.assertTextEquals
import androidx.compose.ui.test.onAllNodesWithTag
import androidx.compose.ui.test.onAllNodesWithText
import androidx.compose.ui.test.onNodeWithTag
@@ -95,7 +96,7 @@ class IdentityBootstrapAcceptanceTest {
waitForTag("foundation-today")
onNodeWithTag("sidebar-Network").performClick()
waitForTag("network-overview")
- onNodeWithTag("network-tab-identity").performClick()
+ onNodeWithTag("main-tab-identity").performClick()
onNodeWithTag("refresh-profile").performClick()
waitUntil(timeoutMillis = UI_TIMEOUT_MILLIS) {
onAllNodesWithText("Display name: Farm Identity").fetchSemanticsNodes().size == 1
@@ -184,7 +185,7 @@ class IdentityBootstrapAcceptanceTest {
waitForTag("bootstrap-welcome")
onNodeWithTag("bootstrap-read-only").performClick()
waitForTag("foundation-today")
- onNodeWithText("Read-only session").assertIsDisplayed()
+ onNodeWithTag("today-context").assertTextEquals("Read-only session").assertIsDisplayed()
assertTrue(runtime.currentSnapshot().identities.isEmpty())
onNodeWithTag("today-open-reference").performClick()
@@ -272,7 +273,7 @@ class IdentityBootstrapAcceptanceTest {
onNodeWithTag("global-status-banner").assertIsDisplayed()
onNodeWithTag("sidebar-Network").performClick()
waitForTag("network-overview")
- onNodeWithTag("network-tab-identity").performClick()
+ onNodeWithTag("main-tab-identity").performClick()
onNodeWithTag("sign-out").performClick()
waitForTag("saved-identity-list")
onNodeWithTag("global-status-banner").assertIsDisplayed()