chore: enabled login_with_wrong_password test

This commit is contained in:
Valentina Novgorodtceva 2024-03-05 19:44:37 +07:00 committed by Anastasiya
parent 385c7cf803
commit 6a2bbe1904
1 changed files with 2 additions and 2 deletions

View File

@ -18,6 +18,7 @@ from gui.screens.onboarding import AllowNotificationsView, WelcomeToStatusView,
pytestmark = marks pytestmark = marks
@pytest.fixture @pytest.fixture
def keys_screen(main_window) -> KeysView: def keys_screen(main_window) -> KeysView:
with step('Open Generate new keys view'): with step('Open Generate new keys view'):
@ -32,7 +33,6 @@ def keys_screen(main_window) -> KeysView:
@pytest.mark.case(702991) @pytest.mark.case(702991)
@pytest.mark.parametrize('error', [OnboardingMessages.PASSWORD_INCORRECT.value @pytest.mark.parametrize('error', [OnboardingMessages.PASSWORD_INCORRECT.value
]) ])
@pytest.mark.skip(reason="https://github.com/status-im/status-desktop/issues/13758")
def test_login_with_wrong_password(aut: AUT, keys_screen, main_window, error: str): def test_login_with_wrong_password(aut: AUT, keys_screen, main_window, error: str):
user_one: UserAccount = constants.user_account_one user_one: UserAccount = constants.user_account_one
user_one_wrong_password: UserAccount = constants.user_account_one_changed_password user_one_wrong_password: UserAccount = constants.user_account_one_changed_password
@ -63,7 +63,7 @@ def test_login_with_wrong_password(aut: AUT, keys_screen, main_window, error: st
login_view.log_in(user_one_wrong_password) login_view.log_in(user_one_wrong_password)
time.sleep(2) time.sleep(2)
with step ('Verify that user cannot log in and the error appears'): with step('Verify that user cannot log in and the error appears'):
assert login_view.login_error_message == error assert login_view.login_error_message == error