chore: comment out password strength test and other minor updates

This commit is contained in:
Anastasiya Semenkevich 2024-02-29 12:09:35 +03:00 committed by Anastasiya
parent bc18f06367
commit f7b975ec17
4 changed files with 12 additions and 10 deletions

View File

@ -132,4 +132,4 @@ def test_generate_new_keys_sign_out_from_settings(aut, main_window, keys_screen,
sign_out_screen.sign_out_and_quit() sign_out_screen.sign_out_and_quit()
with step('Check the application process is not running'): with step('Check the application process is not running'):
psutil.Process(aut.pid).wait(timeout=10) psutil.Process(aut.pid).wait(timeout=30)

View File

@ -12,6 +12,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'):
@ -26,6 +27,7 @@ def keys_screen(main_window) -> KeysView:
'Strength of the password') 'Strength of the password')
@pytest.mark.case(702989) @pytest.mark.case(702989)
@pytest.mark.parametrize('user_account', [constants.user.user_account_one]) @pytest.mark.parametrize('user_account', [constants.user.user_account_one])
@pytest.mark.skip(reason="To add a bug later")
def test_check_password_strength_and_login(keys_screen, main_window, user_account): def test_check_password_strength_and_login(keys_screen, main_window, user_account):
values = [('abcdefghij', very_weak_lower_elements), values = [('abcdefghij', very_weak_lower_elements),
('ABCDEFGHIJ', very_weak_upper_elements), ('ABCDEFGHIJ', very_weak_upper_elements),

View File

@ -18,8 +18,7 @@ pytestmark = marks
@pytest.mark.parametrize('user_data_one, user_data_two', [ @pytest.mark.parametrize('user_data_one, user_data_two', [
(configs.testpath.TEST_USER_DATA / 'user_account_one', configs.testpath.TEST_USER_DATA / 'user_account_two') (configs.testpath.TEST_USER_DATA / 'user_account_one', configs.testpath.TEST_USER_DATA / 'user_account_two')
]) ])
@pytest.mark.flaky # TODO: reason='https://github.com/status-im/desktop-qa-automation/issues/346'
# reason='https://github.com/status-im/desktop-qa-automation/issues/346'
def test_messaging_settings_accepting_request(multiple_instance, user_data_one, user_data_two): def test_messaging_settings_accepting_request(multiple_instance, user_data_one, user_data_two):
user_one: UserAccount = constants.user_account_one user_one: UserAccount = constants.user_account_one
user_two: UserAccount = constants.user_account_two user_two: UserAccount = constants.user_account_two
@ -68,12 +67,13 @@ def test_messaging_settings_accepting_request(multiple_instance, user_data_one,
assert user_one.name == contacts_settings.contact_items[0].contact assert user_one.name == contacts_settings.contact_items[0].contact
assert len(contacts_settings.contact_items) == 1 assert len(contacts_settings.contact_items) == 1
with step('Verify toast message about new contact request received'): # TODO: https://github.com/status-im/desktop-qa-automation/issues/547
assert len(ToastMessage().get_toast_messages) == 1, \ # with step('Verify toast message about new contact request received'):
f"Multiple toast messages appeared" # assert len(ToastMessage().get_toast_messages) == 1, \
message = ToastMessage().get_toast_messages[0] # f"Multiple toast messages appeared"
assert message == Messaging.NEW_CONTACT_REQUEST.value, \ # message = ToastMessage().get_toast_messages[0]
f"Toast message is incorrect, current message is {message}" # assert message == Messaging.NEW_CONTACT_REQUEST.value, \
# f"Toast message is incorrect, current message is {message}"
with step(f'User {user_two.name}, accept contact request from {user_one.name}'): with step(f'User {user_two.name}, accept contact request from {user_one.name}'):
contacts_settings.accept_contact_request(user_one.name) contacts_settings.accept_contact_request(user_one.name)

View File

@ -31,7 +31,7 @@ def keys_screen(main_window) -> KeysView:
@pytest.mark.case(704597) @pytest.mark.case(704597)
@pytest.mark.parametrize('user_account', [constants.user.user_with_funds]) @pytest.mark.parametrize('user_account', [constants.user.user_with_funds])
@pytest.mark.parametrize('ens_name', [pytest.param(constants.user.ens_user_name)]) @pytest.mark.parametrize('ens_name', [pytest.param(constants.user.ens_user_name)])
@pytest.mark.xfail(reason='https://github.com/status-im/status-desktop/issues/12988') @pytest.mark.skip(reason='https://github.com/status-im/status-desktop/issues/12988')
def test_ens_name_purchase(keys_screen, main_window, user_account, ens_name): def test_ens_name_purchase(keys_screen, main_window, user_account, ens_name):
with step('Open import seed phrase view and enter seed phrase'): with step('Open import seed phrase view and enter seed phrase'):
input_view = keys_screen.open_import_seed_phrase_view().open_seed_phrase_input_view() input_view = keys_screen.open_import_seed_phrase_view().open_seed_phrase_input_view()