-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CLI] Use Fuzzy selct instead of select.
- Loading branch information
1 parent
acd5060
commit 782aaa8
Showing
8 changed files
with
42 additions
and
51 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,6 @@ use rexpect::spawn; | |
|
||
use crate::{ | ||
integration_tests::bootstrap_cli_test, | ||
match_sas_code, | ||
testenv_utils::{TestOrganization, DEFAULT_DEVICE_PASSWORD}, | ||
utils::YELLOW, | ||
}; | ||
|
@@ -120,7 +119,7 @@ async fn invite_user_dance(tmp_path: TmpPath) { | |
let mut locked = claimer_cloned.lock().unwrap(); | ||
|
||
locked | ||
.exp_string("Select code provided by greeter:") | ||
.exp_string("Select code provided by greeter") | ||
.unwrap(); | ||
}); | ||
greeter.await.unwrap(); | ||
|
@@ -139,7 +138,7 @@ async fn invite_user_dance(tmp_path: TmpPath) { | |
{ | ||
let mut locked = cloned_claimer.lock().unwrap(); | ||
|
||
match_sas_code!(locked, sas_code); | ||
locked.send_line(&sas_code).unwrap(); | ||
} | ||
|
||
// retrieve claimer code | ||
|
@@ -148,7 +147,7 @@ async fn invite_user_dance(tmp_path: TmpPath) { | |
let mut locked = greeter_cloned.lock().unwrap(); | ||
locked.exp_string("Waiting for claimer").unwrap(); | ||
locked | ||
.exp_string("Select code provided by claimer:") | ||
.exp_string("Select code provided by claimer") | ||
.unwrap(); | ||
}); | ||
|
||
|
@@ -166,7 +165,7 @@ async fn invite_user_dance(tmp_path: TmpPath) { | |
{ | ||
let mut locked = greeter_cloned.lock().unwrap(); | ||
|
||
match_sas_code!(locked, sas_code); | ||
locked.send_line(&sas_code).unwrap(); | ||
locked | ||
.exp_string(&format!("Select code provided by claimer: {sas_code}")) | ||
.unwrap(); | ||
|
@@ -191,7 +190,7 @@ async fn invite_user_dance(tmp_path: TmpPath) { | |
.exp_string("New user: [alice2 <[email protected]>]") | ||
.unwrap(); | ||
locked.exp_string("Which profile?").unwrap(); | ||
locked.send_line("\n").unwrap(); // selection on standard by default | ||
locked.send_line("standard").unwrap(); | ||
|
||
locked | ||
.exp_string("Creating the user in the server") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters