Commit 7fedc71
committed
fix(e2e): clear wrapped fields from any caret and type non-ASCII via clipboard
Step 33 has never passed in CI. Two independent harness bugs, both readable
straight off the failure log; the product path is correct.
Clearing assumed KEYCODE_MOVE_END reaches the end of the buffer, but it only
reaches the end of the current soft line. The topic draft is a multiline field
and the seeded topic wraps, so a centre tap plus MOVE_END plus backspaces
deleted the head and left the tail: the probe write landed as
"<probe> deterministic history", exactly the residue plus a fresh insert at
position 0.
`adb shell input text` synthesizes key events through the device
KeyCharacterMap, which has no sequence for U+2014, and one such character aborts
the whole command so nothing is typed. The restoration write left the header at
just " deterministic history" -- the partial-clear residue with zero characters
entered. Had only the dash been dropped, the ASCII remainder would have shown.
- add _e2e_clear_field, deleting both backward and forward from wherever the
caret landed, and use it for the generic field helper and the topic draft
- route any text with non-printable-ASCII bytes through the device clipboard and
KEYCODE_PASTE, which Compose maps to paste-at-caret
- add E2eClipboardReceiver, e2e build type only, to set the clipboard from the
harness; exported so the adb shell uid can reach it
- fail the topic step when typing fails instead of saving a half-cleared draft
Fixing lib.sh rather than making the fixture topic ASCII: the restore contract
covers maintainer-configured channels whose topics can hold arbitrary unicode,
and any later journey typing user-visible strings meets the same limitation.1 parent 2836264 commit 7fedc71
4 files changed
Lines changed: 104 additions & 11 deletions
File tree
- app/src/e2e
- kotlin/io/github/trevarj/motd
- test/e2e
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
11 | 24 | | |
12 | 25 | | |
13 | 26 | | |
Lines changed: 35 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
386 | 386 | | |
387 | 387 | | |
388 | 388 | | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
389 | 404 | | |
390 | 405 | | |
391 | 406 | | |
392 | 407 | | |
| 408 | + | |
| 409 | + | |
393 | 410 | | |
394 | 411 | | |
395 | 412 | | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
396 | 425 | | |
397 | 426 | | |
398 | 427 | | |
| |||
407 | 436 | | |
408 | 437 | | |
409 | 438 | | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
410 | 458 | | |
411 | 459 | | |
412 | 460 | | |
| |||
426 | 474 | | |
427 | 475 | | |
428 | 476 | | |
429 | | - | |
430 | | - | |
431 | | - | |
432 | | - | |
| 477 | + | |
| 478 | + | |
433 | 479 | | |
434 | 480 | | |
435 | 481 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
| 112 | + | |
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
128 | 127 | | |
129 | 128 | | |
130 | 129 | | |
| |||
0 commit comments