Co-authored-by: Clément Drouin <clement.drouin@mistral.ai>
Co-authored-by: Clément Sirieix <clement.sirieix@mistral.ai>
Co-authored-by: Guillaume LE GOFF <guillaume.lgf@gmail.com>
Co-authored-by: Mathias Gesbert <mathias.gesbert@mistral.ai>
Co-authored-by: Michel Thomazo <51709227+michelTho@users.noreply.github.com>
Co-authored-by: Pierre Rossinès <pierre.rossines@mistral.ai>
Co-authored-by: Vincent G <10739306+VinceOPS@users.noreply.github.com>
Co-authored-by: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
Quentin 2026-05-25 16:05:26 +02:00 committed by GitHub
parent f71bfd3b8c
commit adb1ca74ce
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
202 changed files with 5828 additions and 1968 deletions

View file

@ -0,0 +1,33 @@
from __future__ import annotations
import pytest
from textual.pilot import Pilot
from tests.snapshots.snap_compare import SnapCompare
from vibe.setup.onboarding import OnboardingApp
from vibe.setup.onboarding.screens.theme_selection import ThemeSelectionScreen
async def _advance_to_theme_screen(pilot: Pilot) -> None:
welcome = pilot.app.get_screen("welcome")
for _ in range(40):
await pilot.pause(0.1)
if not welcome.query_one("#enter-hint").has_class("hidden"):
break
await pilot.press("enter")
for _ in range(20):
if isinstance(pilot.app.screen, ThemeSelectionScreen):
return
await pilot.pause(0.1)
@pytest.mark.parametrize("theme", ["ansi-dark", "ansi-light", "dracula"])
def test_snapshot_onboarding_theme_selection(
snap_compare: SnapCompare, theme: str
) -> None:
async def run_before(pilot: Pilot) -> None:
await _advance_to_theme_screen(pilot)
pilot.app.theme = theme
await pilot.pause(0.2)
assert snap_compare(OnboardingApp(), terminal_size=(80, 30), run_before=run_before)