desktop-qa-automation/tests/settings/test_settings_sign_out_and_...

20 lines
661 B
Python
Raw Normal View History

import allure
import pytest
import psutil
from allure_commons._allure import step
from gui.main_window import MainWindow
@allure.testcase('https://ethstatus.testrail.net/index.php?/cases/view/703010', 'Settings - Sign out & Quit')
@pytest.mark.case(703010)
def test_sign_out_and_quit(aut, main_screen: MainWindow):
with step('Open settings'):
settings = main_screen.left_panel.open_settings()
with step('Click sign out and quit in settings'):
2023-12-01 04:32:44 +00:00
sign_out_screen = settings.left_panel.open_sign_out_and_quit()
sign_out_screen.sign_out_and_quit()
with step('Check that app was closed'):
psutil.Process(aut.pid).wait()