Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 14 additions & 6 deletions tests/kittest/interactions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -383,19 +383,27 @@ fn test_network_chooser_shows_config_labels() {
harness.state_mut().selected_main_screen = RootScreenType::RootScreenNetworkChooser;
harness.run_steps(15);

// The network chooser should show the "Network:" and "Connection Type:" labels
// near the top of the settings page
// The network chooser always shows "Network:" and only shows
// "Connection Type:" when developer mode is enabled.
let network_label = harness.query_by_label_contains("Network:");
assert!(
network_label.is_some(),
"Network chooser should show 'Network:' label"
);

let connection_label = harness.query_by_label_contains("Connection Type:");
assert!(
connection_label.is_some(),
"Network chooser should show 'Connection Type:' label"
);
let is_developer_mode = harness.state().current_app_context().is_developer_mode();
if is_developer_mode {
assert!(
connection_label.is_some(),
"Network chooser should show 'Connection Type:' label in developer mode"
);
} else {
assert!(
connection_label.is_none(),
"Network chooser should hide 'Connection Type:' label when developer mode is disabled"
);
}
}

// =============================================================================
Expand Down
Loading