From 985fcb11800406c9d5250ec497d4c783ea1216d5 Mon Sep 17 00:00:00 2001 From: Will McGugan Date: Sun, 8 Dec 2024 15:46:56 +0000 Subject: [PATCH] fix tests and snapshots --- tests/command_palette/test_interaction.py | 27 +--- .../test_ansi_command_palette.svg | 135 ++++++++-------- ...ommands_opens_and_displays_search_list.svg | 124 +++++++------- .../test_snapshots/test_command_palette.svg | 124 +++++++------- .../test_command_palette_discovery.svg | 124 +++++++------- .../test_example_color_command.svg | 112 ++++++------- .../test_markup_command_list.svg | 130 +++++++-------- .../test_snapshots/test_system_commands.svg | 153 +++++++++--------- 8 files changed, 459 insertions(+), 470 deletions(-) diff --git a/tests/command_palette/test_interaction.py b/tests/command_palette/test_interaction.py index f5d64093b..b7e850189 100644 --- a/tests/command_palette/test_interaction.py +++ b/tests/command_palette/test_interaction.py @@ -19,13 +19,13 @@ class CommandPaletteApp(App[None]): async def test_initial_list_no_highlight() -> None: - """When the list initially appears, nothing will be highlighted.""" + """When the list initially appears, the first item is highlghted.""" async with CommandPaletteApp().run_test() as pilot: assert CommandPalette.is_open(pilot.app) assert pilot.app.screen.query_one(CommandList).visible is False await pilot.press("a") assert pilot.app.screen.query_one(CommandList).visible is True - assert pilot.app.screen.query_one(CommandList).highlighted is None + assert pilot.app.screen.query_one(CommandList).highlighted == 0 async def test_down_arrow_selects_an_item() -> None: @@ -35,32 +35,19 @@ async def test_down_arrow_selects_an_item() -> None: assert pilot.app.screen.query_one(CommandList).visible is False await pilot.press("a") assert pilot.app.screen.query_one(CommandList).visible is True - assert pilot.app.screen.query_one(CommandList).highlighted is None + assert pilot.app.screen.query_one(CommandList).highlighted == 0 await pilot.press("down") - assert pilot.app.screen.query_one(CommandList).highlighted is not None + assert pilot.app.screen.query_one(CommandList).highlighted == 1 async def test_enter_selects_an_item() -> None: - """Typing in a search value then pressing enter should select a command.""" + """Typing in a search value then pressing enter should dismiss the command palette.""" async with CommandPaletteApp().run_test() as pilot: assert CommandPalette.is_open(pilot.app) assert pilot.app.screen.query_one(CommandList).visible is False await pilot.press("a") assert pilot.app.screen.query_one(CommandList).visible is True - assert pilot.app.screen.query_one(CommandList).highlighted is None - await pilot.press("enter") - assert pilot.app.screen.query_one(CommandList).highlighted is not None - - -async def test_selection_of_command_closes_command_palette() -> None: - """Selecting a command from the list should close the list.""" - async with CommandPaletteApp().run_test() as pilot: - assert CommandPalette.is_open(pilot.app) - assert pilot.app.screen.query_one(CommandList).visible is False - await pilot.press("a") - assert pilot.app.screen.query_one(CommandList).visible is True - assert pilot.app.screen.query_one(CommandList).highlighted is None - await pilot.press("enter") - assert pilot.app.screen.query_one(CommandList).highlighted is not None + assert pilot.app.screen.query_one(CommandList).highlighted == 0 await pilot.press("enter") assert not CommandPalette.is_open(pilot.app) + assert not pilot.app.screen.query(CommandList) diff --git a/tests/snapshot_tests/__snapshots__/test_snapshots/test_ansi_command_palette.svg b/tests/snapshot_tests/__snapshots__/test_snapshots/test_ansi_command_palette.svg index e8dbcb21f..e59b654c9 100644 --- a/tests/snapshot_tests/__snapshots__/test_snapshots/test_ansi_command_palette.svg +++ b/tests/snapshot_tests/__snapshots__/test_snapshots/test_ansi_command_palette.svg @@ -19,143 +19,144 @@ font-weight: 700; } - .terminal-1724038555-matrix { + .terminal-2040446711-matrix { font-family: Fira Code, monospace; font-size: 20px; line-height: 24.4px; font-variant-east-asian: full-width; } - .terminal-1724038555-title { + .terminal-2040446711-title { font-size: 18px; font-weight: bold; font-family: arial; } - .terminal-1724038555-r1 { fill: #8a4346 } -.terminal-1724038555-r2 { fill: #868887 } -.terminal-1724038555-r3 { fill: #6b546f } -.terminal-1724038555-r4 { fill: #e0e0e0 } -.terminal-1724038555-r5 { fill: #292929 } -.terminal-1724038555-r6 { fill: #c5c8c6 } -.terminal-1724038555-r7 { fill: #0178d4 } -.terminal-1724038555-r8 { fill: #00ff00 } -.terminal-1724038555-r9 { fill: #000000 } -.terminal-1724038555-r10 { fill: #8d8d8d } -.terminal-1724038555-r11 { fill: #7e8486 } -.terminal-1724038555-r12 { fill: #e0e0e0;font-weight: bold } -.terminal-1724038555-r13 { fill: #a1a5a8 } + .terminal-2040446711-r1 { fill: #8a4346 } +.terminal-2040446711-r2 { fill: #868887 } +.terminal-2040446711-r3 { fill: #6b546f } +.terminal-2040446711-r4 { fill: #e0e0e0 } +.terminal-2040446711-r5 { fill: #292929 } +.terminal-2040446711-r6 { fill: #c5c8c6 } +.terminal-2040446711-r7 { fill: #0178d4 } +.terminal-2040446711-r8 { fill: #00ff00 } +.terminal-2040446711-r9 { fill: #000000 } +.terminal-2040446711-r10 { fill: #8d8d8d } +.terminal-2040446711-r11 { fill: #7e8486 } +.terminal-2040446711-r12 { fill: #e0e0e0;font-weight: bold } +.terminal-2040446711-r13 { fill: #9eafbd } +.terminal-2040446711-r14 { fill: #a1a5a8 } - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - CommandPaletteApp + CommandPaletteApp - - - - RedMagentaRedMagentaRedMagentaRedMagentaRedMagentaRedMagentaRed -MagentaRedMagentaRedMagentaRedMagentaRedMagentaRedMagentaRed -MagentaRedMagentaRedMagentaRedMagentaRedMagentaRedMagentaRed -▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔ - -🔎Search for commands… - - -  Quit the application                                                           -Quit the application as soon as possible -  Save screenshot                                                                -Save an SVG 'screenshot' of the current screen -  Show keys and help panel                                                       -Show help for the focused widget and a summary of available keys -▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁ -MagentaRedMagentaRedMagentaRedMagentaRedMagentaRedMagentaRed -MagentaRedMagentaRedMagentaRedMagentaRedMagentaRedMagentaRed -MagentaRedMagentaRedMagentaRedMagentaRedMagentaRedMagentaRed -MagentaRedMagentaRedMagentaRedMagentaRedMagentaRedMagentaRed -MagentaRedMagentaRedMagentaRedMagentaRedMagentaRedMagentaRed -MagentaRedMagentaRedMagentaRedMagentaRedMagentaRedMagentaRed -MagentaRedMagentaRedMagentaRedMagentaRedMagentaRedMagentaRed -MagentaRedMagentaRedMagentaRedMagentaRedMagentaRedMagentaRed -MagentaRedMagentaRedMagentaRedMagentaRedMagentaRedMagentaRed + + + + RedMagentaRedMagentaRedMagentaRedMagentaRedMagentaRedMagentaRed +MagentaRedMagentaRedMagentaRedMagentaRedMagentaRedMagentaRed +MagentaRedMagentaRedMagentaRedMagentaRedMagentaRedMagentaRed +▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔ + +🔎Search for commands… + + +  Quit the application                                                           +Quit the application as soon as possible +  Save screenshot                                                                +Save an SVG 'screenshot' of the current screen +  Show keys and help panel                                                       +Show help for the focused widget and a summary of available keys +▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁ +MagentaRedMagentaRedMagentaRedMagentaRedMagentaRedMagentaRed +MagentaRedMagentaRedMagentaRedMagentaRedMagentaRedMagentaRed +MagentaRedMagentaRedMagentaRedMagentaRedMagentaRedMagentaRed +MagentaRedMagentaRedMagentaRedMagentaRedMagentaRedMagentaRed +MagentaRedMagentaRedMagentaRedMagentaRedMagentaRedMagentaRed +MagentaRedMagentaRedMagentaRedMagentaRedMagentaRedMagentaRed +MagentaRedMagentaRedMagentaRedMagentaRedMagentaRedMagentaRed +MagentaRedMagentaRedMagentaRedMagentaRedMagentaRedMagentaRed +MagentaRedMagentaRedMagentaRedMagentaRedMagentaRedMagentaRed diff --git a/tests/snapshot_tests/__snapshots__/test_snapshots/test_app_search_commands_opens_and_displays_search_list.svg b/tests/snapshot_tests/__snapshots__/test_snapshots/test_app_search_commands_opens_and_displays_search_list.svg index b4d5e82f0..f0764cf12 100644 --- a/tests/snapshot_tests/__snapshots__/test_snapshots/test_app_search_commands_opens_and_displays_search_list.svg +++ b/tests/snapshot_tests/__snapshots__/test_snapshots/test_app_search_commands_opens_and_displays_search_list.svg @@ -19,138 +19,138 @@ font-weight: 700; } - .terminal-2118731365-matrix { + .terminal-3618916115-matrix { font-family: Fira Code, monospace; font-size: 20px; line-height: 24.4px; font-variant-east-asian: full-width; } - .terminal-2118731365-title { + .terminal-3618916115-title { font-size: 18px; font-weight: bold; font-family: arial; } - .terminal-2118731365-r1 { fill: #646464 } -.terminal-2118731365-r2 { fill: #c5c8c6 } -.terminal-2118731365-r3 { fill: #0178d4 } -.terminal-2118731365-r4 { fill: #e0e0e0 } -.terminal-2118731365-r5 { fill: #00ff00 } -.terminal-2118731365-r6 { fill: #000000 } -.terminal-2118731365-r7 { fill: #121212 } -.terminal-2118731365-r8 { fill: #e0e0e0;font-weight: bold } -.terminal-2118731365-r9 { fill: #e0e0e0;font-weight: bold;text-decoration: underline; } + .terminal-3618916115-r1 { fill: #646464 } +.terminal-3618916115-r2 { fill: #c5c8c6 } +.terminal-3618916115-r3 { fill: #0178d4 } +.terminal-3618916115-r4 { fill: #e0e0e0 } +.terminal-3618916115-r5 { fill: #00ff00 } +.terminal-3618916115-r6 { fill: #000000 } +.terminal-3618916115-r7 { fill: #121212 } +.terminal-3618916115-r8 { fill: #e0e0e0;font-weight: bold } +.terminal-3618916115-r9 { fill: #e0e0e0;font-weight: bold;text-decoration: underline; } - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - SearchApp + SearchApp - - - - Search Commands                                                                  - - -▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔ - -🔎b - - -bar                                                                            -baz                                                                            -▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁ - - - - - - - - - - - - + + + + Search Commands                                                                  + + +▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔ + +🔎b + + +bar                                                                            +baz                                                                            +▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁ + + + + + + + + + + + + diff --git a/tests/snapshot_tests/__snapshots__/test_snapshots/test_command_palette.svg b/tests/snapshot_tests/__snapshots__/test_snapshots/test_command_palette.svg index c92c7f2d9..2a74b5005 100644 --- a/tests/snapshot_tests/__snapshots__/test_snapshots/test_command_palette.svg +++ b/tests/snapshot_tests/__snapshots__/test_snapshots/test_command_palette.svg @@ -19,138 +19,138 @@ font-weight: 700; } - .terminal-3720858904-matrix { + .terminal-1343671750-matrix { font-family: Fira Code, monospace; font-size: 20px; line-height: 24.4px; font-variant-east-asian: full-width; } - .terminal-3720858904-title { + .terminal-1343671750-title { font-size: 18px; font-weight: bold; font-family: arial; } - .terminal-3720858904-r1 { fill: #646464 } -.terminal-3720858904-r2 { fill: #c5c8c6 } -.terminal-3720858904-r3 { fill: #0178d4 } -.terminal-3720858904-r4 { fill: #e0e0e0 } -.terminal-3720858904-r5 { fill: #00ff00 } -.terminal-3720858904-r6 { fill: #000000 } -.terminal-3720858904-r7 { fill: #121212 } -.terminal-3720858904-r8 { fill: #e0e0e0;font-weight: bold } -.terminal-3720858904-r9 { fill: #e0e0e0;font-weight: bold;text-decoration: underline; } + .terminal-1343671750-r1 { fill: #646464 } +.terminal-1343671750-r2 { fill: #c5c8c6 } +.terminal-1343671750-r3 { fill: #0178d4 } +.terminal-1343671750-r4 { fill: #e0e0e0 } +.terminal-1343671750-r5 { fill: #00ff00 } +.terminal-1343671750-r6 { fill: #000000 } +.terminal-1343671750-r7 { fill: #121212 } +.terminal-1343671750-r8 { fill: #e0e0e0;font-weight: bold } +.terminal-1343671750-r9 { fill: #e0e0e0;font-weight: bold;text-decoration: underline; } - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - CommandPaletteApp + CommandPaletteApp - - - - - - -▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔ - -🔎A - - -  This is a test of this code 9                                                  -  This is a test of this code 8                                                  -  This is a test of this code 7                                                  -  This is a test of this code 6                                                  -  This is a test of this code 5                                                  -  This is a test of this code 4                                                  -  This is a test of this code 3                                                  -  This is a test of this code 2                                                  -  This is a test of this code 1                                                  -  This is a test of this code 0                                                  -▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁ - - - - + + + + + + +▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔ + +🔎A + + +  This is a test of this code 9                                                  +  This is a test of this code 8                                                  +  This is a test of this code 7                                                  +  This is a test of this code 6                                                  +  This is a test of this code 5                                                  +  This is a test of this code 4                                                  +  This is a test of this code 3                                                  +  This is a test of this code 2                                                  +  This is a test of this code 1                                                  +  This is a test of this code 0                                                  +▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁ + + + + diff --git a/tests/snapshot_tests/__snapshots__/test_snapshots/test_command_palette_discovery.svg b/tests/snapshot_tests/__snapshots__/test_snapshots/test_command_palette_discovery.svg index 48821c2c9..2a244bfd7 100644 --- a/tests/snapshot_tests/__snapshots__/test_snapshots/test_command_palette_discovery.svg +++ b/tests/snapshot_tests/__snapshots__/test_snapshots/test_command_palette_discovery.svg @@ -19,138 +19,138 @@ font-weight: 700; } - .terminal-3222636008-matrix { + .terminal-1364756002-matrix { font-family: Fira Code, monospace; font-size: 20px; line-height: 24.4px; font-variant-east-asian: full-width; } - .terminal-3222636008-title { + .terminal-1364756002-title { font-size: 18px; font-weight: bold; font-family: arial; } - .terminal-3222636008-r1 { fill: #646464 } -.terminal-3222636008-r2 { fill: #c5c8c6 } -.terminal-3222636008-r3 { fill: #0178d4 } -.terminal-3222636008-r4 { fill: #e0e0e0 } -.terminal-3222636008-r5 { fill: #00ff00 } -.terminal-3222636008-r6 { fill: #000000 } -.terminal-3222636008-r7 { fill: #121212 } -.terminal-3222636008-r8 { fill: #6d7479 } -.terminal-3222636008-r9 { fill: #e0e0e0;font-weight: bold } + .terminal-1364756002-r1 { fill: #646464 } +.terminal-1364756002-r2 { fill: #c5c8c6 } +.terminal-1364756002-r3 { fill: #0178d4 } +.terminal-1364756002-r4 { fill: #e0e0e0 } +.terminal-1364756002-r5 { fill: #00ff00 } +.terminal-1364756002-r6 { fill: #000000 } +.terminal-1364756002-r7 { fill: #121212 } +.terminal-1364756002-r8 { fill: #6d7479 } +.terminal-1364756002-r9 { fill: #e0e0e0;font-weight: bold } - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - CommandPaletteApp + CommandPaletteApp - - - - - - -▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔ - -🔎Search for commands… - - -  This is a test of this code 0                                                  -  This is a test of this code 1                                                  -  This is a test of this code 2                                                  -  This is a test of this code 3                                                  -  This is a test of this code 4                                                  -  This is a test of this code 5                                                  -  This is a test of this code 6                                                  -  This is a test of this code 7                                                  -  This is a test of this code 8                                                  -  This is a test of this code 9                                                  -▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁ - - - - + + + + + + +▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔ + +🔎Search for commands… + + +  This is a test of this code 0                                                  +  This is a test of this code 1                                                  +  This is a test of this code 2                                                  +  This is a test of this code 3                                                  +  This is a test of this code 4                                                  +  This is a test of this code 5                                                  +  This is a test of this code 6                                                  +  This is a test of this code 7                                                  +  This is a test of this code 8                                                  +  This is a test of this code 9                                                  +▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁ + + + + diff --git a/tests/snapshot_tests/__snapshots__/test_snapshots/test_example_color_command.svg b/tests/snapshot_tests/__snapshots__/test_snapshots/test_example_color_command.svg index a1e713eb5..75ecf0676 100644 --- a/tests/snapshot_tests/__snapshots__/test_snapshots/test_example_color_command.svg +++ b/tests/snapshot_tests/__snapshots__/test_snapshots/test_example_color_command.svg @@ -19,132 +19,132 @@ font-weight: 700; } - .terminal-905867209-matrix { + .terminal-3987436012-matrix { font-family: Fira Code, monospace; font-size: 20px; line-height: 24.4px; font-variant-east-asian: full-width; } - .terminal-905867209-title { + .terminal-3987436012-title { font-size: 18px; font-weight: bold; font-family: arial; } - .terminal-905867209-r1 { fill: #c5c8c6 } -.terminal-905867209-r2 { fill: #e0e0e0 } -.terminal-905867209-r3 { fill: #ffffff } + .terminal-3987436012-r1 { fill: #c5c8c6 } +.terminal-3987436012-r2 { fill: #e0e0e0 } +.terminal-3987436012-r3 { fill: #ffffff } - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - Press ctrl + p and type a color + Press ctrl + p and type a color - - - - ⭘                    Press ctrl + p and type a color                 - - - - -ansi_red - - - - - - - - - - - - - - - - - + + + + ⭘                    Press ctrl + p and type a color                 + + + + +red + + + + + + + + + + + + + + + + + diff --git a/tests/snapshot_tests/__snapshots__/test_snapshots/test_markup_command_list.svg b/tests/snapshot_tests/__snapshots__/test_snapshots/test_markup_command_list.svg index 66eac747c..374faea92 100644 --- a/tests/snapshot_tests/__snapshots__/test_snapshots/test_markup_command_list.svg +++ b/tests/snapshot_tests/__snapshots__/test_snapshots/test_markup_command_list.svg @@ -19,141 +19,141 @@ font-weight: 700; } - .terminal-2832635806-matrix { + .terminal-4128151976-matrix { font-family: Fira Code, monospace; font-size: 20px; line-height: 24.4px; font-variant-east-asian: full-width; } - .terminal-2832635806-title { + .terminal-4128151976-title { font-size: 18px; font-weight: bold; font-family: arial; } - .terminal-2832635806-r1 { fill: #646464 } -.terminal-2832635806-r2 { fill: #c5c8c6 } -.terminal-2832635806-r3 { fill: #0178d4 } -.terminal-2832635806-r4 { fill: #e0e0e0 } -.terminal-2832635806-r5 { fill: #00ff00 } -.terminal-2832635806-r6 { fill: #000000 } -.terminal-2832635806-r7 { fill: #121212 } -.terminal-2832635806-r8 { fill: #6d7479 } -.terminal-2832635806-r9 { fill: #e0e0e0;font-weight: bold } -.terminal-2832635806-r10 { fill: #98e024;font-weight: bold;text-decoration: underline; } -.terminal-2832635806-r11 { fill: #a1a5a8 } -.terminal-2832635806-r12 { fill: #f4005f;text-decoration: underline; } + .terminal-4128151976-r1 { fill: #646464 } +.terminal-4128151976-r2 { fill: #c5c8c6 } +.terminal-4128151976-r3 { fill: #0178d4 } +.terminal-4128151976-r4 { fill: #e0e0e0 } +.terminal-4128151976-r5 { fill: #00ff00 } +.terminal-4128151976-r6 { fill: #000000 } +.terminal-4128151976-r7 { fill: #121212 } +.terminal-4128151976-r8 { fill: #6d7479 } +.terminal-4128151976-r9 { fill: #e0e0e0;font-weight: bold } +.terminal-4128151976-r10 { fill: #98e024;font-weight: bold;text-decoration: underline; } +.terminal-4128151976-r11 { fill: #9eafbd } +.terminal-4128151976-r12 { fill: #f4005f;text-decoration: underline; } - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - MyApp + MyApp - - - - - - -▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔ - -🔎Search for commands… - - -  Hello World -Help text -▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁ - - - - - - - - - - - - + + + + + + +▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔ + +🔎Search for commands… + + +  Hello World +Help text +▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁ + + + + + + + + + + + + diff --git a/tests/snapshot_tests/__snapshots__/test_snapshots/test_system_commands.svg b/tests/snapshot_tests/__snapshots__/test_snapshots/test_system_commands.svg index d34346af8..a4ebda1e5 100644 --- a/tests/snapshot_tests/__snapshots__/test_snapshots/test_system_commands.svg +++ b/tests/snapshot_tests/__snapshots__/test_snapshots/test_system_commands.svg @@ -19,164 +19,165 @@ font-weight: 700; } - .terminal-196009958-matrix { + .terminal-2242371906-matrix { font-family: Fira Code, monospace; font-size: 20px; line-height: 24.4px; font-variant-east-asian: full-width; } - .terminal-196009958-title { + .terminal-2242371906-title { font-size: 18px; font-weight: bold; font-family: arial; } - .terminal-196009958-r1 { fill: #121212 } -.terminal-196009958-r2 { fill: #0b3a5f } -.terminal-196009958-r3 { fill: #c5c8c6 } -.terminal-196009958-r4 { fill: #e0e0e0 } -.terminal-196009958-r5 { fill: #0178d4 } -.terminal-196009958-r6 { fill: #00ff00 } -.terminal-196009958-r7 { fill: #000000 } -.terminal-196009958-r8 { fill: #6d7479 } -.terminal-196009958-r9 { fill: #e0e0e0;font-weight: bold } -.terminal-196009958-r10 { fill: #a1a5a8 } -.terminal-196009958-r11 { fill: #646464 } + .terminal-2242371906-r1 { fill: #121212 } +.terminal-2242371906-r2 { fill: #0b3a5f } +.terminal-2242371906-r3 { fill: #c5c8c6 } +.terminal-2242371906-r4 { fill: #e0e0e0 } +.terminal-2242371906-r5 { fill: #0178d4 } +.terminal-2242371906-r6 { fill: #00ff00 } +.terminal-2242371906-r7 { fill: #000000 } +.terminal-2242371906-r8 { fill: #6d7479 } +.terminal-2242371906-r9 { fill: #e0e0e0;font-weight: bold } +.terminal-2242371906-r10 { fill: #9eafbd } +.terminal-2242371906-r11 { fill: #a1a5a8 } +.terminal-2242371906-r12 { fill: #646464 } - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - SimpleApp + SimpleApp - - - - ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔ - -▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁ -▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔ - -🔎Search for commands… - - -  Change theme                                                                                       -Change the current theme -  Maximize                                                                                           -Maximize the focused widget -  Quit the application                                                                               -Quit the application as soon as possible -  Save screenshot                                                                                    -Save an SVG 'screenshot' of the current screen -  Show keys and help panel                                                                           -Show help for the focused widget and a summary of available keys -▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁ - - - - - - - - - - + + + + ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔ + +▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁ +▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔ + +🔎Search for commands… + + +  Change theme                                                                                       +Change the current theme +  Maximize                                                                                           +Maximize the focused widget +  Quit the application                                                                               +Quit the application as soon as possible +  Save screenshot                                                                                    +Save an SVG 'screenshot' of the current screen +  Show keys and help panel                                                                           +Show help for the focused widget and a summary of available keys +▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁ + + + + + + + + + +