Skip to content

Commit

Permalink
Increase waiting delay for the test
Browse files Browse the repository at this point in the history
  • Loading branch information
proneon267 committed Dec 4, 2024
1 parent 6c55ec3 commit aa4958d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions testbed/tests/window/test_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,7 @@ async def test_window_state_change(
],
)
async def test_window_state_rapid_assignment(
app, second_window, second_window_probe, states
app, app_probe, second_window, second_window_probe, states
):
"""The backends can handle rapid assignment of new window states."""
# Check that the state to be asserted is supported by the backend.
Expand All @@ -803,9 +803,11 @@ async def test_window_state_rapid_assignment(
second_window.state = state

# Add delay to ensure windows are visible after the final state animation.
await second_window_probe.wait_for_window(
f"Secondary window is in {states[-1]}", state_switch_not_from_normal=True
)
# await second_window_probe.wait_for_window(
# f"Secondary window is in {states[-1]}", state_switch_not_from_normal=True
# )
if toga.platform.current_platform == "macOS":
await app_probe.redraw(f"Secondary window is in {states[-1]}", delay=2)

# Verify that the backend handled rapid assignments by checking if
# the window reached the correct final window state.
Expand Down

0 comments on commit aa4958d

Please sign in to comment.