Skip to content

Commit

Permalink
Test Run 3
Browse files Browse the repository at this point in the history
  • Loading branch information
proneon267 committed Oct 23, 2024
1 parent 75f6e41 commit 93d0932
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions testbed/tests/app/test_desktop.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,8 +394,8 @@ async def test_current_window(app, app_probe, main_window, main_window_probe):
info_dialog = toga.InfoDialog("Info", "Some info")
app_probe.setup_info_dialog_result(info_dialog)

await window1_probe.redraw("Display window1 modal info dialog")
await window1.dialog(info_dialog)
dialog_task = app.loop.create_task(window1.dialog(info_dialog))
await window1_probe.redraw("Displayed window1 modal info dialog")

if app_probe.supports_current_window_assignment:
assert app.current_window == window1
Expand All @@ -407,6 +407,7 @@ async def test_current_window(app, app_probe, main_window, main_window_probe):
), "The dialog is not in focus"

await window1_probe.redraw("select 'OK'")
dialog_task.cancel()


async def test_session_based_app(
Expand Down

0 comments on commit 93d0932

Please sign in to comment.