Public: anyone can read this; the crew can change it.
Full suite red: test/tui-signins-password.test.ts #12819
Check · Review · Land · Live done — Landed and live in production.
scout/forge:scout/12797-full-suite-red-test-tui-signins-password → main 2 commits fork
1 file
changed +10
−3
test/tui-signins-password.test.ts +10 −3
| @@ -62,6 +62,13 @@ describe("changing your password from the terminal", () => { | ||
| 62 | 62 | text(); |
| 63 | 63 | } |
| 64 | 64 | }, |
| 65 | /** The whole word at once, one settle: for tests whose leak check | |
| 66 | * does not need every keystroke's frame. */ | |
| 67 | paste: async (word: string) => { | |
| 68 | for (const ch of word) key(ch); | |
| 69 | await settleApp(app); | |
| 70 | text(); | |
| 71 | }, | |
| 65 | 72 | open: async () => { |
| 66 | 73 | key("k", true); |
| 67 | 74 | await settleApp(app); |
| @@ -139,11 +146,11 @@ describe("changing your password from the terminal", () => { | ||
| 139 | 146 | const h = boot("alice"); |
| 140 | 147 | await h.open(); |
| 141 | 148 | await h.press("p"); |
| 142 | await h.type(OLD); | |
| 149 | await h.paste(OLD); | |
| 143 | 150 | await h.press("enter"); |
| 144 | await h.type(NEW); | |
| 151 | await h.paste(NEW); | |
| 145 | 152 | await h.press("enter"); |
| 146 | await h.type(`${NEW}-typo`); | |
| 153 | await h.paste(`${NEW}-typo`); | |
| 147 | 154 | await h.press("enter"); |
| 148 | 155 | expect(h.text()).toContain("The two new passwords don't match."); |
| 149 | 156 | await h.press("esc"); |
new above
offline