Skip to content

Commit 6c306db

Browse files
Run import-settings UI tests in test framework
1 parent 110e037 commit 6c306db

File tree

1 file changed

+16
-0
lines changed
  • test/test-manager/src/tests

1 file changed

+16
-0
lines changed

test/test-manager/src/tests/ui.rs

+16
Original file line numberDiff line numberDiff line change
@@ -138,3 +138,19 @@ pub async fn test_ui_login(_: TestContext, rpc: ServiceClient) -> Result<(), Err
138138

139139
Ok(())
140140
}
141+
142+
/// Test settings import / IP overrides in the GUI
143+
///
144+
/// # Note
145+
/// This test expects the daemon to be logged in
146+
#[test_function]
147+
pub async fn test_import_settings_ui(_: TestContext, rpc: ServiceClient) -> Result<(), Error> {
148+
let env = std::iter::empty::<(&str, &str)>();
149+
let ui_result = run_test_env(&rpc, &["settings-import.spec"], env)
150+
.await
151+
.unwrap();
152+
153+
assert!(ui_result.success());
154+
155+
Ok(())
156+
}

0 commit comments

Comments
 (0)