mirror of
https://github.com/praktimarc/kst4contest.git
synced 2026-11-19 01:52:29 +01:00
Reach the setup wizard from the Options menu
Written-by: Codex (GPT-6.2 Sol) Written-by: Claude Fable 5.2
This commit is contained in:
9 files changed
+85
No files matched your search
@@ -28,6 +28,7 @@ class MainMenuModelTest {
|
||||
override fun setQrgAsNameInChat() { calls += "setQrgAsNameInChat" }
|
||||
override fun toggleAwayState() { calls += "toggleAwayState" }
|
||||
override fun toggleSettingsWindow() { calls += "toggleSettingsWindow" }
|
||||
override fun openSetupWizard() { calls += "openSetupWizard" }
|
||||
override fun toggleMonitorWindow() { calls += "toggleMonitorWindow" }
|
||||
override fun toggleStationMap() { calls += "toggleStationMap" }
|
||||
override fun useDarkDesign() { calls += "useDarkDesign" }
|
||||
@@ -181,4 +182,19 @@ class MainMenuModelTest {
|
||||
"every item must reach an action; one of them did nothing",
|
||||
)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun theSetupAssistantIsReachableFromOptionsWhateverTheConnection() {
|
||||
for (connectionState in On4KstConnectionState.values()) {
|
||||
val actions = RecordingActions()
|
||||
val model = model(connectionState = connectionState, actions = actions)
|
||||
val entry = items(model.single { it.title == "Options" }).single { it.label == "Setup assistant..." }
|
||||
|
||||
// Like the profile switch: it gives the session up itself, after asking.
|
||||
assertTrue(entry.enabled, "the assistant must be reachable while $connectionState")
|
||||
|
||||
entry.onClick()
|
||||
assertEquals("openSetupWizard", actions.calls.last())
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -55,6 +55,7 @@ class MainMenuRowScreenTest {
|
||||
override fun setQrgAsNameInChat() { calls += "setQrgAsNameInChat" }
|
||||
override fun toggleAwayState() { calls += "toggleAwayState" }
|
||||
override fun toggleSettingsWindow() { calls += "toggleSettingsWindow" }
|
||||
override fun openSetupWizard() { calls += "openSetupWizard" }
|
||||
override fun toggleMonitorWindow() { calls += "toggleMonitorWindow" }
|
||||
override fun toggleStationMap() { calls += "toggleStationMap" }
|
||||
override fun useDarkDesign() { calls += "useDarkDesign" }
|
||||
@@ -116,6 +117,7 @@ class MainMenuRowScreenTest {
|
||||
Triple("Options", "Set QRG as name in Chat (main category)", "setQrgAsNameInChat"),
|
||||
Triple("Options", "Show me as AWAY FROM chat!", "toggleAwayState"),
|
||||
Triple("Options", "Show options", "toggleSettingsWindow"),
|
||||
Triple("Options", "Setup assistant...", "openSetupWizard"),
|
||||
Triple("Windows", "Show cluster / stranger QSOs", "toggleMonitorWindow"),
|
||||
Triple("Windows", "Show / hide station map", "toggleStationMap"),
|
||||
Triple("Windows", "Use dark mode design", "useDarkDesign"),
|
||||
|
||||
Reference in new issue
Block a user