From 9632e76159bbc032f10acd81c01069bc9cdd878d Mon Sep 17 00:00:00 2001 From: Darren Burns Date: Mon, 24 Oct 2022 12:42:32 +0100 Subject: [PATCH] Snapshotting Header widgets --- .../__snapshots__/test_snapshots.ambr | 156 ++++++++++++++++++ tests/snapshot_tests/test_snapshots.py | 3 + 2 files changed, 159 insertions(+) diff --git a/tests/snapshot_tests/__snapshots__/test_snapshots.ambr b/tests/snapshot_tests/__snapshots__/test_snapshots.ambr index 1c5ed27e0..92eb75fc1 100644 --- a/tests/snapshot_tests/__snapshots__/test_snapshots.ambr +++ b/tests/snapshot_tests/__snapshots__/test_snapshots.ambr @@ -5381,6 +5381,162 @@ ''' # --- +# name: test_header_render + ''' + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + HeaderApp + + + + + + + + + + HeaderApp + + + + + + + + + + + + + + + + + + + + + + + + + + + + ''' +# --- # name: test_horizontal_layout ''' diff --git a/tests/snapshot_tests/test_snapshots.py b/tests/snapshot_tests/test_snapshots.py index fb66234f1..fb4913227 100644 --- a/tests/snapshot_tests/test_snapshots.py +++ b/tests/snapshot_tests/test_snapshots.py @@ -81,6 +81,9 @@ def test_footer_render(snap_compare): assert snap_compare("docs/examples/widgets/footer.py") +def test_header_render(snap_compare): + assert snap_compare("docs/examples/widgets/header.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.