mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Add snapshot tests for the toggle button examples
This commit is contained in:
@@ -146,6 +146,18 @@ def test_markdown_viewer_example(snap_compare):
|
||||
assert snap_compare(WIDGET_EXAMPLES_DIR / "markdown_viewer.py")
|
||||
|
||||
|
||||
def test_checkbox_example(snap_compare):
|
||||
assert snap_compare(WIDGET_EXAMPLES_DIR / "checkbox.py")
|
||||
|
||||
|
||||
def test_radio_button_example(snap_compare):
|
||||
assert snap_compare(WIDGET_EXAMPLES_DIR / "radio_button.py")
|
||||
|
||||
|
||||
def test_radio_set_example(snap_compare):
|
||||
assert snap_compare(WIDGET_EXAMPLES_DIR / "radio_set.py")
|
||||
|
||||
|
||||
# --- CSS properties ---
|
||||
# We have a canonical example for each CSS property that is shown in their docs.
|
||||
# If any of these change, something has likely broken, so snapshot each of them.
|
||||
|
||||
Reference in New Issue
Block a user