chore(@e2e): enable change password test in nightly
This commit is contained in:
parent
748b9b94fc
commit
5518df3af9
|
@ -12,8 +12,8 @@ class ChangePasswordPopup(BasePopup):
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super(ChangePasswordPopup, self).__init__()
|
super(ChangePasswordPopup, self).__init__()
|
||||||
self._re_encrypt_data_restart_button = Button(names.reEncryptRestartButton)
|
self.re_encrypt_data_restart_button = Button(names.reEncryptRestartButton)
|
||||||
self._re_encryption_complete_element = TextLabel(names.reEncryptionComplete)
|
self.re_encryption_complete_element = TextLabel(names.reEncryptionComplete)
|
||||||
|
|
||||||
def click_re_encrypt_data_restart_button(self):
|
def click_re_encrypt_data_restart_button(self):
|
||||||
"""
|
"""
|
||||||
|
@ -23,9 +23,9 @@ class ChangePasswordPopup(BasePopup):
|
||||||
This time is not really predictable, especially for huge DBs.
|
This time is not really predictable, especially for huge DBs.
|
||||||
In case it does not please check https://github.com/status-im/status-desktop/issues/13013 for context
|
In case it does not please check https://github.com/status-im/status-desktop/issues/13013 for context
|
||||||
"""
|
"""
|
||||||
self._re_encrypt_data_restart_button.click()
|
self.re_encrypt_data_restart_button.click()
|
||||||
assert driver.waitForObject(self._re_encryption_complete_element.real_name, 30000), \
|
assert driver.waitForObject(self.re_encryption_complete_element.real_name, 30000), \
|
||||||
f'Re-encryption confirmation is not present within 30 seconds'
|
f'Re-encryption confirmation is not present within 30 seconds'
|
||||||
assert driver.waitForObject(self._re_encrypt_data_restart_button.real_name, 30000)
|
assert driver.waitForObject(self.re_encrypt_data_restart_button.real_name, 30000)
|
||||||
assert getattr(self._re_encrypt_data_restart_button.object, 'text') == PasswordView.RESTART_STATUS.value
|
assert getattr(self.re_encrypt_data_restart_button.object, 'text') == PasswordView.RESTART_STATUS.value
|
||||||
self._re_encrypt_data_restart_button.click()
|
self.re_encrypt_data_restart_button.click()
|
||||||
|
|
|
@ -1,14 +1,12 @@
|
||||||
import allure
|
import allure
|
||||||
import psutil
|
|
||||||
import pytest
|
import pytest
|
||||||
from allure_commons._allure import step
|
from allure_commons._allure import step
|
||||||
|
|
||||||
from constants import UserAccount, RandomUser
|
from constants import UserAccount, RandomUser
|
||||||
from scripts.utils.generators import random_name_string, random_password_string
|
from scripts.utils.generators import random_password_string
|
||||||
from gui.components.change_password_popup import ChangePasswordPopup
|
from gui.components.change_password_popup import ChangePasswordPopup
|
||||||
from tests.settings.settings_profile import marks
|
from tests.settings.settings_profile import marks
|
||||||
|
|
||||||
import constants
|
|
||||||
from driver.aut import AUT
|
from driver.aut import AUT
|
||||||
from gui.main_window import MainWindow
|
from gui.main_window import MainWindow
|
||||||
|
|
||||||
|
@ -19,15 +17,13 @@ pytestmark = marks
|
||||||
@allure.testcase('https://ethstatus.testrail.net/index.php?/cases/view/703005',
|
@allure.testcase('https://ethstatus.testrail.net/index.php?/cases/view/703005',
|
||||||
'Change the password and login with new password')
|
'Change the password and login with new password')
|
||||||
@pytest.mark.case(703005)
|
@pytest.mark.case(703005)
|
||||||
@pytest.mark.parametrize('user_account',[RandomUser()])
|
@pytest.mark.parametrize('user_account', [RandomUser()])
|
||||||
@pytest.mark.skip(reason='https://github.com/status-im/status-desktop/issues/15178')
|
# @pytest.mark.skip(reason='https://github.com/status-im/status-desktop/issues/15178')
|
||||||
# @pytest.mark.critical
|
# @pytest.mark.critical
|
||||||
# TODO: follow up on https://github.com/status-im/status-desktop/issues/13013
|
# TODO: follow up on https://github.com/status-im/status-desktop/issues/13013
|
||||||
def test_change_password_and_login(aut: AUT, main_screen: MainWindow, user_account):
|
def test_change_password_and_login(aut: AUT, main_screen: MainWindow, user_account):
|
||||||
with step('Open profile settings'):
|
|
||||||
settings_scr = main_screen.left_panel.open_settings()
|
|
||||||
|
|
||||||
with step('Open change password view'):
|
with step('Open change password view'):
|
||||||
|
settings_scr = main_screen.left_panel.open_settings()
|
||||||
password_view = settings_scr.left_panel.open_password_settings()
|
password_view = settings_scr.left_panel.open_password_settings()
|
||||||
|
|
||||||
with step('Fill in the change password form and submit'):
|
with step('Fill in the change password form and submit'):
|
||||||
|
@ -41,8 +37,8 @@ def test_change_password_and_login(aut: AUT, main_screen: MainWindow, user_accou
|
||||||
aut.restart()
|
aut.restart()
|
||||||
|
|
||||||
with step('Login with new password'):
|
with step('Login with new password'):
|
||||||
main_screen.authorize_user(user_account=UserAccount(name=user_account.name,
|
main_screen.authorize_user(UserAccount(name=user_account.name,
|
||||||
password=new_password))
|
password=new_password))
|
||||||
|
|
||||||
with step('Verify that the user logged in correctly'):
|
with step('Verify that the user logged in correctly'):
|
||||||
online_identifier = main_screen.left_panel.open_online_identifier()
|
online_identifier = main_screen.left_panel.open_online_identifier()
|
||||||
|
|
Loading…
Reference in New Issue