|
92 | 92 | } |
93 | 93 |
|
94 | 94 | # bats test_tags=tag:manual_test |
95 | | -@test "add prompts password and fails if retyped password does not match" { |
96 | | - _skip_manual_test "'test 1' and 'test 2'" |
| 95 | +@test "add prompts password until retyped password matches" { |
| 96 | + _skip_manual_test "'test 1' and 'test 2', then 'test 3' twice" |
97 | 97 | run pw add "${NAME_A}" |
98 | | - assert_failure |
| 98 | + assert_success |
99 | 99 | cat << EOF | assert_output - |
100 | 100 | Enter password for '${NAME_A}' (leave empty to generate password): |
101 | 101 | Retype password for '${NAME_A}': |
102 | | -Error: the entered passwords do not match. |
| 102 | +Enter password for '${NAME_A}' (leave empty to generate password): |
| 103 | +Retype password for '${NAME_A}': |
| 104 | +test add <> <> <${PW_KEYCHAIN}> <test 3> <${NAME_A}> <> <> <> |
103 | 105 | EOF |
104 | 106 | } |
105 | 107 |
|
@@ -193,14 +195,16 @@ EOF |
193 | 195 | } |
194 | 196 |
|
195 | 197 | # bats test_tags=tag:manual_test |
196 | | -@test "edit prompts password and fails if retyped password does not match" { |
197 | | - _skip_manual_test "'test 1' and 'test 2'" |
| 198 | +@test "edit prompts password until retyped password matches" { |
| 199 | + _skip_manual_test "'test 1' and 'test 2', then 'test 3' twice" |
198 | 200 | run pw edit "${NAME_A}" |
199 | | - assert_failure |
| 201 | + assert_success |
200 | 202 | cat << EOF | assert_output - |
201 | 203 | Enter password for '${NAME_A}' (leave empty to generate password): |
202 | 204 | Retype password for '${NAME_A}': |
203 | | -Error: the entered passwords do not match. |
| 205 | +Enter password for '${NAME_A}' (leave empty to generate password): |
| 206 | +Retype password for '${NAME_A}': |
| 207 | +test edit <> <> <${PW_KEYCHAIN}> <test 3> <${NAME_A}> <> <> |
204 | 208 | EOF |
205 | 209 | } |
206 | 210 |
|
|
0 commit comments