Skip to content

Commit 230c735

Browse files
committed
Use named focus components throughout the shortcut journeys
1 parent 2c145d6 commit 230c735

1 file changed

Lines changed: 8 additions & 16 deletions

File tree

‎examples/repl-bench/journeys/repl-focus-shortcuts.test.md‎

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
<Terminal.WaitForText text="startup-message42-suffix" />
1616
</Terminal.Region>
1717

18-
<Terminal.Key key="Ctrl+G" />
19-
<Terminal.Key key="4" />
18+
<Repl.Focus.Draft />
2019
<Terminal.WaitForText text="> DRAFT" bold={true} />
2120
<Terminal.Type text="entry-draft" />
2221
<Terminal.WaitForText text="entry-draft" />
@@ -28,8 +27,7 @@
2827
<Terminal.WaitForText text="> DRAFT" bold={true} />
2928
<Terminal.WaitForText text="> BINDINGS" present={false} />
3029

31-
<Terminal.Key key="Ctrl+G" />
32-
<Terminal.Key key="1" />
30+
<Repl.Focus.Message />
3331
<Terminal.WaitForText text="message the sidekick" bold={true} />
3432
<Terminal.Type text="-more" />
3533
<Terminal.Region name="sidekick-composer">
@@ -48,37 +46,31 @@
4846
<Terminal.Region name="sidekick-composer">
4947
<Terminal.WaitForText text="narrow-message" />
5048
</Terminal.Region>
51-
<Terminal.Key key="Ctrl+G" />
52-
<Terminal.Key key="4" />
49+
<Repl.Focus.Draft />
5350
<Terminal.WaitForText text="> DRAFT" bold={true} />
5451
<Terminal.Type text="narrow-draft" />
55-
<Terminal.Key key="Ctrl+G" />
56-
<Terminal.Key key="5" />
52+
<Repl.Focus.Tabs />
5753
<Terminal.WaitForText text="> DRAFT" bold={true} />
5854
<Terminal.Type text="-kept" />
5955
<Terminal.WaitForText text="narrow-draft-kept" />
6056

61-
<Terminal.Key key="Ctrl+G" />
62-
<Terminal.Key key="8" />
57+
<Repl.Focus.History />
6358
<Terminal.WaitForText text="> [history]" bold={true} />
6459
<Terminal.Key key="Enter" />
6560
<Terminal.WaitForText text="[close]" />
66-
<Terminal.Key key="Ctrl+G" />
67-
<Terminal.Key key="1" />
61+
<Repl.Focus.Message />
6862
<Terminal.WaitForText text="[close]" />
6963
<Terminal.WaitForText text="message the sidekick" present={false} />
7064
<Terminal.Key key="Escape" />
7165
<Terminal.WaitForText text="[close]" present={false} />
7266

73-
<Terminal.Key key="Ctrl+G" />
74-
<Terminal.Key key="1" />
67+
<Repl.Focus.Message />
7568
<Terminal.WaitForText text="message the sidekick" bold={true} />
7669
<Terminal.Type text="-kept" />
7770
<Terminal.Region name="sidekick-composer">
7871
<Terminal.WaitForText text="narrow-message-kept" />
7972
</Terminal.Region>
80-
<Terminal.Key key="Ctrl+G" />
81-
<Terminal.Key key="4" />
73+
<Repl.Focus.Draft />
8274
<Terminal.WaitForText text="> DRAFT" bold={true} />
8375
<Terminal.WaitForText text="narrow-draft-kept" />
8476
</ReplBench>

0 commit comments

Comments
 (0)