Add snapshot tests for the toggle button examples

This commit is contained in:
Dave Pearson
2023-02-23 22:05:47 +00:00
parent 719c831e3b
commit 24ce819867
2 changed files with 499 additions and 0 deletions

File diff suppressed because one or more lines are too long

View File

@@ -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.