v2.5.0 (#495)
Co-authored-by: Quentin Torroba <quentin.torroba@mistral.ai> Co-authored-by: Clement Sirieix <clem.sirieix@gmail.com> Co-authored-by: Kim-Adeline Miguel <kimadeline.miguel@mistral.ai> Co-authored-by: Simon Van de Kerckhove <simon.vandekerckhove@mistral.ai> Co-authored-by: Vincent Guilloux <vincent.guilloux@mistral.ai> Co-authored-by: Michel Thomazo <michel.thomazo@mistral.ai> Co-authored-by: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
parent
9421fbc08e
commit
5103019b01
104 changed files with 7277 additions and 691 deletions
|
|
@ -53,6 +53,23 @@ async def test_ui_navigation_through_input_history(
|
|||
assert chat_input.value == ""
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_ui_navigation_restores_partially_typed_draft_after_round_trip(
|
||||
vibe_app: VibeApp, history_file: Path
|
||||
) -> None:
|
||||
async with vibe_app.run_test() as pilot:
|
||||
inject_history_file(vibe_app, history_file)
|
||||
chat_input = vibe_app.query_one(ChatInputContainer)
|
||||
|
||||
await pilot.press(*"he")
|
||||
assert chat_input.value == "he"
|
||||
|
||||
await pilot.press("up")
|
||||
assert chat_input.value == "how are you?"
|
||||
await pilot.press("down")
|
||||
assert chat_input.value == "he"
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_ui_does_nothing_if_command_completion_is_active(
|
||||
vibe_app: VibeApp, history_file: Path
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue