chore: align wallet tests with test rail
This commit is contained in:
parent
0e26b834fc
commit
9334508711
|
@ -3,7 +3,7 @@ import time
|
||||||
import allure
|
import allure
|
||||||
import pytest
|
import pytest
|
||||||
from allure import step
|
from allure import step
|
||||||
from . import marks
|
from tests.wallet_main_screen import marks
|
||||||
|
|
||||||
import constants
|
import constants
|
||||||
from driver.aut import AUT
|
from driver.aut import AUT
|
||||||
|
@ -25,7 +25,6 @@ pytestmark = marks
|
||||||
[
|
[
|
||||||
pytest.param('GenAcc2', '#2a4af5', 'sunglasses', '1f60e')
|
pytest.param('GenAcc2', '#2a4af5', 'sunglasses', '1f60e')
|
||||||
])
|
])
|
||||||
@pytest.mark.xfail(reason='https://github.com/status-im/status-desktop/issues/12973')
|
|
||||||
def test_add_generated_account_restart_add_again(
|
def test_add_generated_account_restart_add_again(
|
||||||
aut: AUT, main_screen: MainWindow, user_account,
|
aut: AUT, main_screen: MainWindow, user_account,
|
||||||
color: str, emoji: str, emoji_unicode: str, name: str,
|
color: str, emoji: str, emoji_unicode: str, name: str,
|
|
@ -3,7 +3,7 @@ import time
|
||||||
import allure
|
import allure
|
||||||
import pytest
|
import pytest
|
||||||
from allure_commons._allure import step
|
from allure_commons._allure import step
|
||||||
from . import marks
|
from tests.wallet_main_screen import marks
|
||||||
|
|
||||||
import constants
|
import constants
|
||||||
from gui.components.signing_phrase_popup import SigningPhrasePopup
|
from gui.components.signing_phrase_popup import SigningPhrasePopup
|
|
@ -3,7 +3,7 @@ import time
|
||||||
import allure
|
import allure
|
||||||
import pytest
|
import pytest
|
||||||
from allure import step
|
from allure import step
|
||||||
from . import marks
|
from tests.wallet_main_screen import marks
|
||||||
|
|
||||||
import constants
|
import constants
|
||||||
import driver
|
import driver
|
||||||
|
@ -13,6 +13,8 @@ from gui.components.toast_message import ToastMessage
|
||||||
from gui.main_window import MainWindow
|
from gui.main_window import MainWindow
|
||||||
|
|
||||||
pytestmark = marks
|
pytestmark = marks
|
||||||
|
|
||||||
|
|
||||||
@allure.testcase('https://ethstatus.testrail.net/index.php?/cases/view/703036',
|
@allure.testcase('https://ethstatus.testrail.net/index.php?/cases/view/703036',
|
||||||
'Manage an account created from the generated seed phrase')
|
'Manage an account created from the generated seed phrase')
|
||||||
@pytest.mark.case(703036)
|
@pytest.mark.case(703036)
|
||||||
|
@ -21,10 +23,11 @@ pytestmark = marks
|
||||||
'new_name, new_color, new_emoji, new_emoji_unicode, keypair_name', [
|
'new_name, new_color, new_emoji, new_emoji_unicode, keypair_name', [
|
||||||
pytest.param('SPAcc', '#2a4af5', 'sunglasses', '1f60e',
|
pytest.param('SPAcc', '#2a4af5', 'sunglasses', '1f60e',
|
||||||
'SPAccedited', '#216266', 'thumbsup', '1f44d', 'SPKeyPair')])
|
'SPAccedited', '#216266', 'thumbsup', '1f44d', 'SPKeyPair')])
|
||||||
@pytest.mark.xfail(reason="https://github.com/status-im/status-desktop/issues/12914")
|
def test_plus_button_manage_account_added_for_new_seed(main_screen: MainWindow, user_account,
|
||||||
def test_plus_button_manage_account_added_for_imported_seed_phrase(main_screen: MainWindow, user_account,
|
name: str, color: str, emoji: str,
|
||||||
name: str, color: str, emoji: str, emoji_unicode: str,
|
emoji_unicode: str,
|
||||||
new_name: str, new_color: str, new_emoji: str, new_emoji_unicode: str,
|
new_name: str, new_color: str, new_emoji: str,
|
||||||
|
new_emoji_unicode: str,
|
||||||
keypair_name: str):
|
keypair_name: str):
|
||||||
with step('Create generated seed phrase wallet account'):
|
with step('Create generated seed phrase wallet account'):
|
||||||
wallet = main_screen.left_panel.open_wallet()
|
wallet = main_screen.left_panel.open_wallet()
|
|
@ -3,7 +3,7 @@ import time
|
||||||
import allure
|
import allure
|
||||||
import pytest
|
import pytest
|
||||||
from allure_commons._allure import step
|
from allure_commons._allure import step
|
||||||
from . import marks
|
from tests.wallet_main_screen import marks
|
||||||
|
|
||||||
import constants
|
import constants
|
||||||
import driver
|
import driver
|
||||||
|
@ -22,7 +22,6 @@ pytestmark = marks
|
||||||
pytest.param('PrivKeyAcc1', '#2a4af5', 'sunglasses', '1f60e',
|
pytest.param('PrivKeyAcc1', '#2a4af5', 'sunglasses', '1f60e',
|
||||||
'PrivKeyAcc1edited', '#216266', 'thumbsup', '1f44d')
|
'PrivKeyAcc1edited', '#216266', 'thumbsup', '1f44d')
|
||||||
])
|
])
|
||||||
@pytest.mark.xfail(reason="https://github.com/status-im/status-desktop/issues/12914")
|
|
||||||
def test_plus_button_manage_account_from_private_key(main_screen: MainWindow, user_account, address_pair,
|
def test_plus_button_manage_account_from_private_key(main_screen: MainWindow, user_account, address_pair,
|
||||||
name: str, color: str, emoji: str, emoji_unicode: str,
|
name: str, color: str, emoji: str, emoji_unicode: str,
|
||||||
new_name: str, new_color: str, new_emoji: str, new_emoji_unicode: str):
|
new_name: str, new_color: str, new_emoji: str, new_emoji_unicode: str):
|
||||||
|
@ -70,7 +69,7 @@ def test_plus_button_manage_account_from_private_key(main_screen: MainWindow, us
|
||||||
raise LookupError(f'Account {expected_account} not found in {wallet.left_panel.accounts}')
|
raise LookupError(f'Account {expected_account} not found in {wallet.left_panel.accounts}')
|
||||||
|
|
||||||
with step('Delete wallet account'):
|
with step('Delete wallet account'):
|
||||||
wallet.left_panel.delete_account_from_context_menu(new_name).confirm()
|
wallet.left_panel.delete_account_from_context_menu(new_name).agree_and_confirm()
|
||||||
|
|
||||||
with step('Verify toast message notification when removing account'):
|
with step('Verify toast message notification when removing account'):
|
||||||
messages = ToastMessage().get_toast_messages
|
messages = ToastMessage().get_toast_messages
|
|
@ -3,7 +3,7 @@ import time
|
||||||
import allure
|
import allure
|
||||||
import pytest
|
import pytest
|
||||||
from allure_commons._allure import step
|
from allure_commons._allure import step
|
||||||
from . import marks
|
from tests.wallet_main_screen import marks
|
||||||
|
|
||||||
import constants
|
import constants
|
||||||
import driver
|
import driver
|
||||||
|
@ -13,6 +13,8 @@ from gui.components.wallet.authenticate_popup import AuthenticatePopup
|
||||||
from gui.main_window import MainWindow
|
from gui.main_window import MainWindow
|
||||||
|
|
||||||
pytestmark = marks
|
pytestmark = marks
|
||||||
|
|
||||||
|
|
||||||
@allure.testcase('https://ethstatus.testrail.net/index.php?/cases/view/703030', 'Manage a seed phrase imported account')
|
@allure.testcase('https://ethstatus.testrail.net/index.php?/cases/view/703030', 'Manage a seed phrase imported account')
|
||||||
@pytest.mark.case(703030)
|
@pytest.mark.case(703030)
|
||||||
@pytest.mark.parametrize('user_account', [constants.user.user_account_one])
|
@pytest.mark.parametrize('user_account', [constants.user.user_account_one])
|
||||||
|
@ -30,10 +32,10 @@ pytestmark = marks
|
||||||
'SPAcc12edited', '#216266', 'thumbsup', '1f44d',
|
'SPAcc12edited', '#216266', 'thumbsup', '1f44d',
|
||||||
'pelican chief sudden oval media rare swamp elephant lawsuit wheat knife initial')
|
'pelican chief sudden oval media rare swamp elephant lawsuit wheat knife initial')
|
||||||
])
|
])
|
||||||
@pytest.mark.xfail(reason="https://github.com/status-im/status-desktop/issues/12914")
|
|
||||||
def test_plus_button_manage_account_from_seed_phrase(main_screen: MainWindow, user_account,
|
def test_plus_button_manage_account_from_seed_phrase(main_screen: MainWindow, user_account,
|
||||||
name: str, color: str, emoji: str, emoji_unicode: str,
|
name: str, color: str, emoji: str, emoji_unicode: str,
|
||||||
new_name: str, new_color: str, new_emoji: str, new_emoji_unicode: str,
|
new_name: str, new_color: str, new_emoji: str,
|
||||||
|
new_emoji_unicode: str,
|
||||||
seed_phrase: str):
|
seed_phrase: str):
|
||||||
with step('Create imported seed phrase wallet account'):
|
with step('Create imported seed phrase wallet account'):
|
||||||
wallet = main_screen.left_panel.open_wallet()
|
wallet = main_screen.left_panel.open_wallet()
|
|
@ -3,7 +3,7 @@ import time
|
||||||
import allure
|
import allure
|
||||||
import pytest
|
import pytest
|
||||||
from allure_commons._allure import step
|
from allure_commons._allure import step
|
||||||
from . import marks
|
from tests.wallet_main_screen import marks
|
||||||
|
|
||||||
import constants
|
import constants
|
||||||
import driver
|
import driver
|
||||||
|
@ -21,7 +21,6 @@ pytestmark = marks
|
||||||
pytest.param('GenAcc1', '#2a4af5', 'sunglasses', '1f60e',
|
pytest.param('GenAcc1', '#2a4af5', 'sunglasses', '1f60e',
|
||||||
'GenAcc1edited', '#216266', 'thumbsup', '1f44d')
|
'GenAcc1edited', '#216266', 'thumbsup', '1f44d')
|
||||||
])
|
])
|
||||||
@pytest.mark.xfail(reason="https://github.com/status-im/status-desktop/issues/12914")
|
|
||||||
def test_plus_button_manage_generated_account(main_screen: MainWindow, user_account,
|
def test_plus_button_manage_generated_account(main_screen: MainWindow, user_account,
|
||||||
color: str, emoji: str, emoji_unicode: str,
|
color: str, emoji: str, emoji_unicode: str,
|
||||||
name: str, new_name: str, new_color: str, new_emoji: str, new_emoji_unicode: str):
|
name: str, new_name: str, new_color: str, new_emoji: str, new_emoji_unicode: str):
|
|
@ -3,7 +3,7 @@ import time
|
||||||
import allure
|
import allure
|
||||||
import pytest
|
import pytest
|
||||||
from allure_commons._allure import step
|
from allure_commons._allure import step
|
||||||
from . import marks
|
from tests.wallet_main_screen import marks
|
||||||
|
|
||||||
import constants
|
import constants
|
||||||
import driver
|
import driver
|
|
@ -1,7 +1,7 @@
|
||||||
import allure
|
import allure
|
||||||
import pytest
|
import pytest
|
||||||
from allure_commons._allure import step
|
from allure_commons._allure import step
|
||||||
from . import marks
|
from tests.settings.settings_keycard import marks
|
||||||
|
|
||||||
from gui.components.signing_phrase_popup import SigningPhrasePopup
|
from gui.components.signing_phrase_popup import SigningPhrasePopup
|
||||||
from gui.main_window import MainWindow
|
from gui.main_window import MainWindow
|
||||||
|
@ -9,17 +9,16 @@ from gui.screens.settings_keycard import KeycardSettingsView
|
||||||
|
|
||||||
pytestmark = marks
|
pytestmark = marks
|
||||||
|
|
||||||
|
|
||||||
@allure.testcase('https://ethstatus.testrail.net/index.php?/cases/view/703514',
|
@allure.testcase('https://ethstatus.testrail.net/index.php?/cases/view/703514',
|
||||||
'Choosing Use Keycard when adding account')
|
'Choosing Use Keycard when adding account')
|
||||||
@pytest.mark.case(703514)
|
@pytest.mark.case(703514)
|
||||||
@pytest.mark.xfail(reason="https://github.com/status-im/status-desktop/issues/12914")
|
|
||||||
def test_use_keycard_when_adding_account(main_screen: MainWindow):
|
def test_use_keycard_when_adding_account(main_screen: MainWindow):
|
||||||
with step('Choose continue in keycard settings'):
|
with step('Choose continue in keycard settings'):
|
||||||
wallet = main_screen.left_panel.open_wallet()
|
wallet = main_screen.left_panel.open_wallet()
|
||||||
SigningPhrasePopup().wait_until_appears().confirm_phrase()
|
SigningPhrasePopup().wait_until_appears().confirm_phrase()
|
||||||
account_popup = wallet.left_panel.open_add_account_popup()
|
account_popup = wallet.left_panel.open_add_account_popup()
|
||||||
account_popup.continue_in_keycard_settings()
|
account_popup.continue_in_keycard_settings()
|
||||||
account_popup.wait_until_hidden()
|
|
||||||
|
|
||||||
with (step('Verify that keycard settings view opened and all keycard settings available')):
|
with (step('Verify that keycard settings view opened and all keycard settings available')):
|
||||||
keycard_view = KeycardSettingsView()
|
keycard_view = KeycardSettingsView()
|
|
@ -3,7 +3,7 @@ import time
|
||||||
import allure
|
import allure
|
||||||
import pytest
|
import pytest
|
||||||
from allure_commons._allure import step
|
from allure_commons._allure import step
|
||||||
from . import marks
|
from tests.wallet_main_screen import marks
|
||||||
|
|
||||||
import constants
|
import constants
|
||||||
from gui.components.signing_phrase_popup import SigningPhrasePopup
|
from gui.components.signing_phrase_popup import SigningPhrasePopup
|
|
@ -3,7 +3,7 @@ import time
|
||||||
import allure
|
import allure
|
||||||
import pytest
|
import pytest
|
||||||
from allure_commons._allure import step
|
from allure_commons._allure import step
|
||||||
from . import marks
|
from tests.wallet_main_screen import marks
|
||||||
|
|
||||||
import constants
|
import constants
|
||||||
from gui.components.signing_phrase_popup import SigningPhrasePopup
|
from gui.components.signing_phrase_popup import SigningPhrasePopup
|
|
@ -7,7 +7,7 @@ from allure import step
|
||||||
|
|
||||||
from gui.components.toast_message import ToastMessage
|
from gui.components.toast_message import ToastMessage
|
||||||
from gui.screens.wallet import SavedAddressesView
|
from gui.screens.wallet import SavedAddressesView
|
||||||
from . import marks
|
from tests.wallet_main_screen import marks
|
||||||
|
|
||||||
import configs
|
import configs
|
||||||
import driver
|
import driver
|
Loading…
Reference in New Issue