Skip to content

Commit ab51f23

Browse files
committed
test: upgrade termharness to 0.3.0
1 parent ce0ae6d commit ab51f23

5 files changed

Lines changed: 6 additions & 5 deletions

File tree

‎Cargo.toml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ serde = "1.0.229"
2323
serde_json = { version = "1.0.151", features = ["preserve_order"] }
2424
serde_yaml = "0.9.34"
2525
termcfg = { version = "0.2.0", features = ["crossterm_0_29_0"] }
26+
termharness = "0.3.0"
2627
tokio = { version = "1.53.1", features = ["full"] }
2728
thiserror = "2.0.20"
2829
unicode-width = "0.2.2"

‎tests/height-policy/Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ promkit-core = { path = "../../promkit-core" }
1111
tokio = { workspace = true }
1212

1313
[dev-dependencies]
14-
termharness = "0.2.0"
14+
termharness = { workspace = true }
1515

1616
[[bin]]
1717
name = "height-policy-fixture"

‎tests/readline/Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ readline-example = { package = "readline", path = "../../examples/readline" }
1111
tokio = { workspace = true }
1212

1313
[dev-dependencies]
14-
termharness = "0.2.0"
14+
termharness = { workspace = true }
1515

1616
[[bin]]
1717
name = "readline-fixture"

‎tests/readline/tests/scenarios/long_input_resize_roundtrip_clears_stale_rows.th‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Terminal rows 10 cols 60
44
Cursor row 10 col 1
55

66
Step "spawn at the bottom of the screen"
7-
WaitScreenLineStartsWith "❯❯" timeout 1000ms
7+
WaitFrontendLineStartsWith "❯❯" timeout 1000ms
88
Settle 0ms
99
Expect timeout 0ms:
1010
r00 |····························································|
@@ -20,7 +20,7 @@ Expect timeout 0ms:
2020

2121
Step "resize rapidly while input is rendering"
2222
Input "Terminal prompts should remain stable when the window shrinks and expands again"
23-
WaitPtyOutputContains "Terminal" timeout 1000ms
23+
WaitFrontendLineStartsWith "❯❯ Terminal" timeout 1000ms
2424
Resize rows 10 cols 59
2525
Resize rows 10 cols 58
2626
Resize rows 10 cols 57

‎tests/text_editor/Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ promkit-widgets = { path = "../../promkit-widgets", features = ["texteditor"] }
1111
tokio = { workspace = true }
1212

1313
[dev-dependencies]
14-
termharness = "0.2.0"
14+
termharness = { workspace = true }
1515

1616
[[bin]]
1717
name = "text-editor-fixture"

0 commit comments

Comments
 (0)