Skip to content

Commit

Permalink
Test to diagnose wayland failure
Browse files Browse the repository at this point in the history
  • Loading branch information
proneon267 committed Jul 7, 2024
1 parent ccc8f11 commit 56f32a7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 3 additions & 1 deletion testbed/tests/app/test_desktop.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
5 changes: 5 additions & 0 deletions testbed/tests/window/test_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 56f32a7

Please sign in to comment.