mirror of
https://github.com/status-im/desktop-qa-automation.git
synced 2025-02-23 09:38:26 +00:00
chore: enabled login_with_wrong_password test
This commit is contained in:
parent
f0c01bb6db
commit
db7b91ded8
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user