[tests] update native launcher test to new launcher behavior

GitOrigin-RevId: 43a2aa60b1665fc1fd30a3d39e197459385808aa
This commit is contained in:
Nikolay Kuznetsov
2023-11-07 17:36:38 +01:00
committed by intellij-monorepo-bot
parent 48b1d5944b
commit c98c0b0d9a

View File

@@ -83,8 +83,6 @@ mod tests {
let output = run_launcher_ext(&test, &LauncherRunSpec::remote_dev().with_args(remote_dev_command).with_env(&env)).stdout;
assert!(output.contains("Config folder does not exist, considering this the first launch. Will launch with New UI as default"));
assert!(output.contains("Force enable new UI"));
assert!(output.contains("early-access-registry.txt"));
}
#[test]
@@ -97,19 +95,18 @@ mod tests {
let output = run_launcher_ext(&test, &LauncherRunSpec::remote_dev().with_args(remote_dev_command).with_env(&env)).stdout;
assert!(!output.contains("Config folder does not exist, considering this the first launch. Will launch with New UI as default"));
assert!(output.contains("Force enable new UI"));
assert!(output.contains("early-access-registry.txt"));
}
#[test]
fn remote_dev_new_ui_test2() {
fn remote_dev_new_ui_test_shared_configs() {
let test = prepare_test_env(LauncherLocation::RemoteDev);
let project_dir = &test.project_dir.to_string_lossy().to_string();
let env = HashMap::from([("REMOTE_DEV_LEGACY_PER_PROJECT_CONFIGS", "0")]);
let remote_dev_command = &["run", &project_dir];
let output = run_launcher_ext(&test, &LauncherRunSpec::remote_dev().with_args(remote_dev_command)).stdout;
let output = run_launcher_ext(&test, &LauncherRunSpec::remote_dev().with_args(remote_dev_command).with_env(&env)).stdout;
assert!(!output.contains("Force enable new UI"));
assert!(!output.contains("Config folder does not exist, considering this the first launch. Will launch with New UI as default"));
}
#[test]