diff --git a/tests/integration/menu_test.py b/tests/integration/menu_test.py index 09f6fa967..f122d888c 100644 --- a/tests/integration/menu_test.py +++ b/tests/integration/menu_test.py @@ -19,10 +19,10 @@ def Page(): def on_click(): text.set("Works!") - solara.Text(text.value, classes=["test-class-menu"]) + solara.Text(text.value, classes=["test-class-text"]) menu_activator = solara.Button("activator") - menu_child = solara.Button("child", on_click=on_click) + menu_child = solara.Button("child", on_click=on_click, classes=["test-class-child"]) if test_type == "Menu": Menu(activator=menu_activator, children=[menu_child]) @@ -33,12 +33,10 @@ def on_click(): solara.display(Page()) - # For some reason flake8 thinks that full_page is not used - full_page = page_session.locator(".test-class-container") # Ignore: F841 - text_el = page_session.locator(".test-class-menu") + text_el = page_session.locator(".test-class-text") expect(text_el).to_contain_text("pre-test") activator_button = page_session.locator("text=activator") - assert_solara_snapshot(full_page.screenshot(), postfix="-" + test_type) + expect(page_session.locator(".test-class-child")).to_have_count(0) if test_type == "ContextMenu": activator_button.click(button="right") else: @@ -46,7 +44,7 @@ def on_click(): child_button = page_session.locator("text=child") page_session.wait_for_timeout(350) # Wait for any animations after click - assert_solara_snapshot(full_page.screenshot(), postfix="-" + test_type + "-after") + expect(page_session.locator(".test-class-child")).to_be_visible child_button.click() page_session.wait_for_timeout(350) expect(text_el).to_contain_text("Works!") diff --git a/tests/ui/snapshots/tests/integration/menu_test.py/test_menus_playwright-flask-chromium-ClickMenu-darwin-ClickMenu-after-reference.png b/tests/ui/snapshots/tests/integration/menu_test.py/test_menus_playwright-flask-chromium-ClickMenu-darwin-ClickMenu-after-reference.png deleted file mode 100644 index 577556a7f..000000000 Binary files a/tests/ui/snapshots/tests/integration/menu_test.py/test_menus_playwright-flask-chromium-ClickMenu-darwin-ClickMenu-after-reference.png and /dev/null differ diff --git a/tests/ui/snapshots/tests/integration/menu_test.py/test_menus_playwright-flask-chromium-ClickMenu-darwin-ClickMenu-reference.png b/tests/ui/snapshots/tests/integration/menu_test.py/test_menus_playwright-flask-chromium-ClickMenu-darwin-ClickMenu-reference.png deleted file mode 100644 index 0c2d27ed6..000000000 Binary files a/tests/ui/snapshots/tests/integration/menu_test.py/test_menus_playwright-flask-chromium-ClickMenu-darwin-ClickMenu-reference.png and /dev/null differ diff --git a/tests/ui/snapshots/tests/integration/menu_test.py/test_menus_playwright-flask-chromium-ClickMenu-linux-ClickMenu-after-reference.png b/tests/ui/snapshots/tests/integration/menu_test.py/test_menus_playwright-flask-chromium-ClickMenu-linux-ClickMenu-after-reference.png deleted file mode 100644 index 577556a7f..000000000 Binary files a/tests/ui/snapshots/tests/integration/menu_test.py/test_menus_playwright-flask-chromium-ClickMenu-linux-ClickMenu-after-reference.png and /dev/null differ diff --git a/tests/ui/snapshots/tests/integration/menu_test.py/test_menus_playwright-flask-chromium-ClickMenu-linux-ClickMenu-reference.png b/tests/ui/snapshots/tests/integration/menu_test.py/test_menus_playwright-flask-chromium-ClickMenu-linux-ClickMenu-reference.png deleted file mode 100644 index 0c2d27ed6..000000000 Binary files a/tests/ui/snapshots/tests/integration/menu_test.py/test_menus_playwright-flask-chromium-ClickMenu-linux-ClickMenu-reference.png and /dev/null differ diff --git a/tests/ui/snapshots/tests/integration/menu_test.py/test_menus_playwright-flask-chromium-ContextMenu-darwin-ContextMenu-after-reference.png b/tests/ui/snapshots/tests/integration/menu_test.py/test_menus_playwright-flask-chromium-ContextMenu-darwin-ContextMenu-after-reference.png deleted file mode 100644 index 5882c8e80..000000000 Binary files a/tests/ui/snapshots/tests/integration/menu_test.py/test_menus_playwright-flask-chromium-ContextMenu-darwin-ContextMenu-after-reference.png and /dev/null differ diff --git a/tests/ui/snapshots/tests/integration/menu_test.py/test_menus_playwright-flask-chromium-ContextMenu-darwin-ContextMenu-reference.png b/tests/ui/snapshots/tests/integration/menu_test.py/test_menus_playwright-flask-chromium-ContextMenu-darwin-ContextMenu-reference.png deleted file mode 100644 index 0c2d27ed6..000000000 Binary files a/tests/ui/snapshots/tests/integration/menu_test.py/test_menus_playwright-flask-chromium-ContextMenu-darwin-ContextMenu-reference.png and /dev/null differ diff --git a/tests/ui/snapshots/tests/integration/menu_test.py/test_menus_playwright-flask-chromium-ContextMenu-linux-ContextMenu-after-reference.png b/tests/ui/snapshots/tests/integration/menu_test.py/test_menus_playwright-flask-chromium-ContextMenu-linux-ContextMenu-after-reference.png deleted file mode 100644 index 5882c8e80..000000000 Binary files a/tests/ui/snapshots/tests/integration/menu_test.py/test_menus_playwright-flask-chromium-ContextMenu-linux-ContextMenu-after-reference.png and /dev/null differ diff --git a/tests/ui/snapshots/tests/integration/menu_test.py/test_menus_playwright-flask-chromium-ContextMenu-linux-ContextMenu-reference.png b/tests/ui/snapshots/tests/integration/menu_test.py/test_menus_playwright-flask-chromium-ContextMenu-linux-ContextMenu-reference.png deleted file mode 100644 index 0c2d27ed6..000000000 Binary files a/tests/ui/snapshots/tests/integration/menu_test.py/test_menus_playwright-flask-chromium-ContextMenu-linux-ContextMenu-reference.png and /dev/null differ diff --git a/tests/ui/snapshots/tests/integration/menu_test.py/test_menus_playwright-flask-chromium-Menu-darwin-Menu-after-reference.png b/tests/ui/snapshots/tests/integration/menu_test.py/test_menus_playwright-flask-chromium-Menu-darwin-Menu-after-reference.png deleted file mode 100644 index f7d0c1269..000000000 Binary files a/tests/ui/snapshots/tests/integration/menu_test.py/test_menus_playwright-flask-chromium-Menu-darwin-Menu-after-reference.png and /dev/null differ diff --git a/tests/ui/snapshots/tests/integration/menu_test.py/test_menus_playwright-flask-chromium-Menu-darwin-Menu-reference.png b/tests/ui/snapshots/tests/integration/menu_test.py/test_menus_playwright-flask-chromium-Menu-darwin-Menu-reference.png deleted file mode 100644 index 0c2d27ed6..000000000 Binary files a/tests/ui/snapshots/tests/integration/menu_test.py/test_menus_playwright-flask-chromium-Menu-darwin-Menu-reference.png and /dev/null differ diff --git a/tests/ui/snapshots/tests/integration/menu_test.py/test_menus_playwright-flask-chromium-Menu-linux-Menu-after-reference.png b/tests/ui/snapshots/tests/integration/menu_test.py/test_menus_playwright-flask-chromium-Menu-linux-Menu-after-reference.png deleted file mode 100644 index f7d0c1269..000000000 Binary files a/tests/ui/snapshots/tests/integration/menu_test.py/test_menus_playwright-flask-chromium-Menu-linux-Menu-after-reference.png and /dev/null differ diff --git a/tests/ui/snapshots/tests/integration/menu_test.py/test_menus_playwright-flask-chromium-Menu-linux-Menu-reference.png b/tests/ui/snapshots/tests/integration/menu_test.py/test_menus_playwright-flask-chromium-Menu-linux-Menu-reference.png deleted file mode 100644 index 0c2d27ed6..000000000 Binary files a/tests/ui/snapshots/tests/integration/menu_test.py/test_menus_playwright-flask-chromium-Menu-linux-Menu-reference.png and /dev/null differ diff --git a/tests/ui/snapshots/tests/integration/menu_test.py/test_menus_playwright-starlette-chromium-ClickMenu-darwin-ClickMenu-after-reference.png b/tests/ui/snapshots/tests/integration/menu_test.py/test_menus_playwright-starlette-chromium-ClickMenu-darwin-ClickMenu-after-reference.png deleted file mode 100644 index 577556a7f..000000000 Binary files a/tests/ui/snapshots/tests/integration/menu_test.py/test_menus_playwright-starlette-chromium-ClickMenu-darwin-ClickMenu-after-reference.png and /dev/null differ diff --git a/tests/ui/snapshots/tests/integration/menu_test.py/test_menus_playwright-starlette-chromium-ClickMenu-darwin-ClickMenu-reference.png b/tests/ui/snapshots/tests/integration/menu_test.py/test_menus_playwright-starlette-chromium-ClickMenu-darwin-ClickMenu-reference.png deleted file mode 100644 index 0c2d27ed6..000000000 Binary files a/tests/ui/snapshots/tests/integration/menu_test.py/test_menus_playwright-starlette-chromium-ClickMenu-darwin-ClickMenu-reference.png and /dev/null differ diff --git a/tests/ui/snapshots/tests/integration/menu_test.py/test_menus_playwright-starlette-chromium-ClickMenu-linux-ClickMenu-after-reference.png b/tests/ui/snapshots/tests/integration/menu_test.py/test_menus_playwright-starlette-chromium-ClickMenu-linux-ClickMenu-after-reference.png deleted file mode 100644 index 577556a7f..000000000 Binary files a/tests/ui/snapshots/tests/integration/menu_test.py/test_menus_playwright-starlette-chromium-ClickMenu-linux-ClickMenu-after-reference.png and /dev/null differ diff --git a/tests/ui/snapshots/tests/integration/menu_test.py/test_menus_playwright-starlette-chromium-ClickMenu-linux-ClickMenu-reference.png b/tests/ui/snapshots/tests/integration/menu_test.py/test_menus_playwright-starlette-chromium-ClickMenu-linux-ClickMenu-reference.png deleted file mode 100644 index 0c2d27ed6..000000000 Binary files a/tests/ui/snapshots/tests/integration/menu_test.py/test_menus_playwright-starlette-chromium-ClickMenu-linux-ClickMenu-reference.png and /dev/null differ diff --git a/tests/ui/snapshots/tests/integration/menu_test.py/test_menus_playwright-starlette-chromium-ContextMenu-darwin-ContextMenu-after-reference.png b/tests/ui/snapshots/tests/integration/menu_test.py/test_menus_playwright-starlette-chromium-ContextMenu-darwin-ContextMenu-after-reference.png deleted file mode 100644 index 74110b114..000000000 Binary files a/tests/ui/snapshots/tests/integration/menu_test.py/test_menus_playwright-starlette-chromium-ContextMenu-darwin-ContextMenu-after-reference.png and /dev/null differ diff --git a/tests/ui/snapshots/tests/integration/menu_test.py/test_menus_playwright-starlette-chromium-ContextMenu-darwin-ContextMenu-reference.png b/tests/ui/snapshots/tests/integration/menu_test.py/test_menus_playwright-starlette-chromium-ContextMenu-darwin-ContextMenu-reference.png deleted file mode 100644 index 0c2d27ed6..000000000 Binary files a/tests/ui/snapshots/tests/integration/menu_test.py/test_menus_playwright-starlette-chromium-ContextMenu-darwin-ContextMenu-reference.png and /dev/null differ diff --git a/tests/ui/snapshots/tests/integration/menu_test.py/test_menus_playwright-starlette-chromium-ContextMenu-linux-ContextMenu-after-reference.png b/tests/ui/snapshots/tests/integration/menu_test.py/test_menus_playwright-starlette-chromium-ContextMenu-linux-ContextMenu-after-reference.png deleted file mode 100644 index 74110b114..000000000 Binary files a/tests/ui/snapshots/tests/integration/menu_test.py/test_menus_playwright-starlette-chromium-ContextMenu-linux-ContextMenu-after-reference.png and /dev/null differ diff --git a/tests/ui/snapshots/tests/integration/menu_test.py/test_menus_playwright-starlette-chromium-ContextMenu-linux-ContextMenu-reference.png b/tests/ui/snapshots/tests/integration/menu_test.py/test_menus_playwright-starlette-chromium-ContextMenu-linux-ContextMenu-reference.png deleted file mode 100644 index 0c2d27ed6..000000000 Binary files a/tests/ui/snapshots/tests/integration/menu_test.py/test_menus_playwright-starlette-chromium-ContextMenu-linux-ContextMenu-reference.png and /dev/null differ diff --git a/tests/ui/snapshots/tests/integration/menu_test.py/test_menus_playwright-starlette-chromium-Menu-darwin-Menu-after-reference.png b/tests/ui/snapshots/tests/integration/menu_test.py/test_menus_playwright-starlette-chromium-Menu-darwin-Menu-after-reference.png deleted file mode 100644 index a20223256..000000000 Binary files a/tests/ui/snapshots/tests/integration/menu_test.py/test_menus_playwright-starlette-chromium-Menu-darwin-Menu-after-reference.png and /dev/null differ diff --git a/tests/ui/snapshots/tests/integration/menu_test.py/test_menus_playwright-starlette-chromium-Menu-darwin-Menu-reference.png b/tests/ui/snapshots/tests/integration/menu_test.py/test_menus_playwright-starlette-chromium-Menu-darwin-Menu-reference.png deleted file mode 100644 index 0c2d27ed6..000000000 Binary files a/tests/ui/snapshots/tests/integration/menu_test.py/test_menus_playwright-starlette-chromium-Menu-darwin-Menu-reference.png and /dev/null differ diff --git a/tests/ui/snapshots/tests/integration/menu_test.py/test_menus_playwright-starlette-chromium-Menu-linux-Menu-after-reference.png b/tests/ui/snapshots/tests/integration/menu_test.py/test_menus_playwright-starlette-chromium-Menu-linux-Menu-after-reference.png deleted file mode 100644 index a20223256..000000000 Binary files a/tests/ui/snapshots/tests/integration/menu_test.py/test_menus_playwright-starlette-chromium-Menu-linux-Menu-after-reference.png and /dev/null differ diff --git a/tests/ui/snapshots/tests/integration/menu_test.py/test_menus_playwright-starlette-chromium-Menu-linux-Menu-reference.png b/tests/ui/snapshots/tests/integration/menu_test.py/test_menus_playwright-starlette-chromium-Menu-linux-Menu-reference.png deleted file mode 100644 index 0c2d27ed6..000000000 Binary files a/tests/ui/snapshots/tests/integration/menu_test.py/test_menus_playwright-starlette-chromium-Menu-linux-Menu-reference.png and /dev/null differ