Skip to content
This repository was archived by the owner on Aug 13, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import allure
import pytest
from allure import step
from . import marks
from tests.wallet_main_screen import marks

import constants
from driver.aut import AUT
Expand All @@ -25,7 +25,6 @@
[
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(
aut: AUT, main_screen: MainWindow, user_account,
color: str, emoji: str, emoji_unicode: str, name: str,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import allure
import pytest
from allure_commons._allure import step
from . import marks
from tests.wallet_main_screen import marks

import constants
from gui.components.signing_phrase_popup import SigningPhrasePopup
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import allure
import pytest
from allure import step
from . import marks
from tests.wallet_main_screen import marks

import constants
import driver
Expand All @@ -13,6 +13,8 @@
from gui.main_window import MainWindow

pytestmark = marks


@allure.testcase('https://ethstatus.testrail.net/index.php?/cases/view/703036',
'Manage an account created from the generated seed phrase')
@pytest.mark.case(703036)
Expand All @@ -21,11 +23,12 @@
'new_name, new_color, new_emoji, new_emoji_unicode, keypair_name', [
pytest.param('SPAcc', '#2a4af5', 'sunglasses', '1f60e',
'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_imported_seed_phrase(main_screen: MainWindow, user_account,
name: str, color: str, emoji: str, emoji_unicode: str,
new_name: str, new_color: str, new_emoji: str, new_emoji_unicode: str,
keypair_name: str):
def test_plus_button_manage_account_added_for_new_seed(main_screen: MainWindow, user_account,
name: str, color: str, emoji: str,
emoji_unicode: str,
new_name: str, new_color: str, new_emoji: str,
new_emoji_unicode: str,
keypair_name: str):
with step('Create generated seed phrase wallet account'):
wallet = main_screen.left_panel.open_wallet()
SigningPhrasePopup().wait_until_appears().confirm_phrase()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import allure
import pytest
from allure_commons._allure import step
from . import marks
from tests.wallet_main_screen import marks

import constants
import driver
Expand All @@ -22,7 +22,6 @@
pytest.param('PrivKeyAcc1', '#2a4af5', 'sunglasses', '1f60e',
'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,
name: str, color: str, emoji: str, emoji_unicode: str,
new_name: str, new_color: str, new_emoji: str, new_emoji_unicode: str):
Expand Down Expand Up @@ -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}')

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'):
messages = ToastMessage().get_toast_messages
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import allure
import pytest
from allure_commons._allure import step
from . import marks
from tests.wallet_main_screen import marks

import constants
import driver
Expand All @@ -13,6 +13,8 @@
from gui.main_window import MainWindow

pytestmark = marks


@allure.testcase('https://ethstatus.testrail.net/index.php?/cases/view/703030', 'Manage a seed phrase imported account')
@pytest.mark.case(703030)
@pytest.mark.parametrize('user_account', [constants.user.user_account_one])
Expand All @@ -30,10 +32,10 @@
'SPAcc12edited', '#216266', 'thumbsup', '1f44d',
'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,
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):
with step('Create imported seed phrase wallet account'):
wallet = main_screen.left_panel.open_wallet()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import allure
import pytest
from allure_commons._allure import step
from . import marks
from tests.wallet_main_screen import marks

import constants
import driver
Expand All @@ -21,7 +21,6 @@
pytest.param('GenAcc1', '#2a4af5', 'sunglasses', '1f60e',
'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,
color: str, emoji: str, emoji_unicode: str,
name: str, new_name: str, new_color: str, new_emoji: str, new_emoji_unicode: str):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import allure
import pytest
from allure_commons._allure import step
from . import marks
from tests.wallet_main_screen import marks

import constants
import driver
Expand Down
Original file line number Diff line number Diff line change
@@ -1,25 +1,24 @@
import allure
import pytest
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.main_window import MainWindow
from gui.screens.settings_keycard import KeycardSettingsView

pytestmark = marks


@allure.testcase('https://ethstatus.testrail.net/index.php?/cases/view/703514',
'Choosing Use Keycard when adding account')
@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):
with step('Choose continue in keycard settings'):
wallet = main_screen.left_panel.open_wallet()
SigningPhrasePopup().wait_until_appears().confirm_phrase()
account_popup = wallet.left_panel.open_add_account_popup()
account_popup.continue_in_keycard_settings()
account_popup.wait_until_hidden()

with (step('Verify that keycard settings view opened and all keycard settings available')):
keycard_view = KeycardSettingsView()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import allure
import pytest
from allure_commons._allure import step
from . import marks
from tests.wallet_main_screen import marks

import constants
from gui.components.signing_phrase_popup import SigningPhrasePopup
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import allure
import pytest
from allure_commons._allure import step
from . import marks
from tests.wallet_main_screen import marks

import constants
from gui.components.signing_phrase_popup import SigningPhrasePopup
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

from gui.components.toast_message import ToastMessage
from gui.screens.wallet import SavedAddressesView
from . import marks
from tests.wallet_main_screen import marks

import configs
import driver
Expand Down