2023-10-30 08:59:01 +00:00
|
|
|
import allure
|
|
|
|
import pytest
|
2023-11-30 10:51:00 +00:00
|
|
|
import psutil
|
2023-10-30 08:59:01 +00:00
|
|
|
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()
|
2023-10-30 08:59:01 +00:00
|
|
|
|
|
|
|
with step('Check that app was closed'):
|
2023-11-30 10:51:00 +00:00
|
|
|
psutil.Process(aut.pid).wait()
|