tests: fix typo in method name and update PRs tests list

This commit is contained in:
Anastasiya Semenkevich 2024-08-30 10:04:52 +03:00 committed by Anastasiya
parent ee770257c5
commit 3c4eb3180d
5 changed files with 9 additions and 9 deletions

View File

@ -114,7 +114,7 @@ def test_member_role_cannot_add_edit_and_delete_channels(main_screen: MainWindow
with step('Open context menu from the tool bar'):
more_options = community_screen.tool_bar.open_more_options_dropdown()
with step('Verify that edit item is not present in context menu'):
assert more_options.iedit_channel_from_context.exists is False, \
assert more_options.edit_channel_from_context.exists is False, \
f'Edit channel option is present when it should not'
with step('Verify that delete item is not present in context menu'):
assert more_options.delete_channel_from_context.exists is False, \

View File

@ -30,7 +30,6 @@ pytestmark = marks
string.digits, k=15)), '#2a4af5', 'sunglasses',
'1f60e')
])
@pytest.mark.critical
def test_delete_generated_account_from_wallet_settings(
main_screen: MainWindow, user_account, account_name: str, color: str, emoji: str, emoji_unicode: str):
with step('Open add account pop up from wallet settings'):

View File

@ -25,6 +25,7 @@ pytestmark = marks
pytest.param('#2a4af5', 'sunglasses', '1f60e',
'#216266', 'thumbsup', '1f44d')
])
@pytest.mark.critical
def test_add_edit_delete_generated_account(main_screen: MainWindow, user_account,
color: str, emoji: str, emoji_unicode: str,
new_color: str, new_emoji: str,

View File

@ -4,6 +4,7 @@ from allure_commons._allure import step
from constants import ReturningUser, ReturningUsersData
from constants.onboarding import KeysExistText
from constants.wallet import WalletNetworkSettings
from driver.aut import AUT
from tests.onboarding import marks
@ -32,13 +33,12 @@ def keys_screen(main_window) -> KeysView:
@pytest.mark.parametrize('user_account', [ReturningUser(
seed_phrase=ReturningUsersData.RETURNING_USER_ONE.value[0],
status_address=ReturningUsersData.RETURNING_USER_ONE.value[1])])
@pytest.mark.parametrize('autocomplete, default_name', [
pytest.param(True, 'Account 1', marks=pytest.mark.critical)
])
def test_import_seed_phrase(keys_screen, main_window, aut: AUT, user_account, default_name: str, autocomplete: bool):
@pytest.mark.critical
# TODO: change to use random seeds in onboarding after https://github.com/status-im/status-desktop/issues/16216 is fixed
def test_import_seed_phrase(keys_screen, main_window, aut: AUT, user_account):
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.input_seed_phrase(user_account.seed_phrase, autocomplete)
input_view.input_seed_phrase(user_account.seed_phrase, autocomplete=True)
profile_view = input_view.import_seed_phrase()
profile_view.set_display_name(user_account.name)
@ -59,7 +59,7 @@ def test_import_seed_phrase(keys_screen, main_window, aut: AUT, user_account, de
with (step('Verify that restored account reveals correct status wallet address')):
status_account_index = 0
status_acc_view = (
LeftPanel().open_settings().left_panel.open_wallet_settings().open_account_in_settings(default_name,
LeftPanel().open_settings().left_panel.open_wallet_settings().open_account_in_settings(WalletNetworkSettings.STATUS_ACCOUNT_DEFAULT_NAME.value,
status_account_index))
address = status_acc_view.get_account_address_value()
assert address == user_account.status_address, \
@ -73,7 +73,7 @@ def test_import_seed_phrase(keys_screen, main_window, aut: AUT, user_account, de
with step('Restart application and try re-importing seed phrase again'):
aut.restart()
enter_seed_view = LoginView().add_existing_status_user().open_keys_view().open_enter_seed_phrase_view()
enter_seed_view.input_seed_phrase(user_account.seed_phrase, autocomplete)
enter_seed_view.input_seed_phrase(user_account.seed_phrase, autocomplete=False)
confirm_import = enter_seed_view.click_import_seed_phrase_button()
with step('Verify that keys already exist popup appears and text is correct'):