chore: add timeout and assert for the sign out test (#361)

This commit is contained in:
Anastasiya 2023-12-04 18:23:49 +03:00 committed by GitHub
parent 4500d0fb1d
commit c2ac1db048
1 changed files with 2 additions and 1 deletions

View File

@ -16,4 +16,5 @@ def test_sign_out_and_quit(aut, main_screen: MainWindow):
sign_out_screen.sign_out_and_quit() sign_out_screen.sign_out_and_quit()
with step('Check that app was closed'): with step('Check that app was closed'):
psutil.Process(aut.pid).wait() psutil.Process(aut.pid).wait(timeout=5)
assert aut.pid not in psutil.pids(), f"{aut.pid} is still running"