From 56f32a7215fce2da70ddce53f71a2ad6c51a3c0d Mon Sep 17 00:00:00 2001 From: proneon267 Date: Sun, 7 Jul 2024 09:54:49 -0700 Subject: [PATCH] Test to diagnose wayland failure --- testbed/tests/app/test_desktop.py | 4 +++- testbed/tests/window/test_window.py | 5 +++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/testbed/tests/app/test_desktop.py b/testbed/tests/app/test_desktop.py index dca1356216..d0262f980b 100644 --- a/testbed/tests/app/test_desktop.py +++ b/testbed/tests/app/test_desktop.py @@ -330,7 +330,9 @@ async def test_presentation_mode_with_excess_windows_list(app, app_probe): assert ( window_information["window_probe"].presentation_content_size == window_information["initial_content_size"] - ), f"{window_information['window'].title}:" + ), f"{window_information['window'].title}:\n" + f"Actual:{window_information['window'].state}\t" + f"Probe:{window_information['window_probe'].get_window_state()}" finally: for window in excess_windows_list: diff --git a/testbed/tests/window/test_window.py b/testbed/tests/window/test_window.py index 6b8d9c18b8..08882178df 100644 --- a/testbed/tests/window/test_window.py +++ b/testbed/tests/window/test_window.py @@ -821,6 +821,11 @@ async def test_window_state_presentation(second_window, second_window_probe): "Secondary window is not in presentation mode", full_screen=True ) assert second_window_probe.get_window_state() != WindowState.PRESENTATION + assert ( + second_window_probe.get_window_state() != WindowState.NORMAL + ), f"Current window state: Actual:{second_window.state}\t" + f"Probe:{second_window_probe.get_window_state()}" + assert second_window_probe.is_resizable assert second_window_probe.presentation_content_size == initial_content_size