mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-16 16:47:24 +00:00
Fix/147 test sync device (#157)
* Code was formatted with pep8 recommendations * Fix attaching squish server config
This commit is contained in:
parent
227e20512d
commit
e292a0d347
@ -20,7 +20,6 @@ if system.IS_WIN and 'bin' not in APP_DIR:
|
||||
exit('Please use launcher from "bin" folder in "APP_DIR"')
|
||||
APP_DIR = SystemPath(APP_DIR)
|
||||
|
||||
|
||||
# Application will be stuck in test execution if set to False (Mac only)
|
||||
# We need to investigate more time on it.
|
||||
ATTACH_MODE = True
|
||||
|
@ -7,9 +7,9 @@ from PIL import ImageGrab
|
||||
|
||||
import configs
|
||||
import driver
|
||||
from fixtures.path import generate_test_info
|
||||
from scripts.utils import local_system
|
||||
from scripts.utils.system_path import SystemPath
|
||||
from fixtures.path import generate_test_info
|
||||
|
||||
_logger = logging.getLogger(__name__)
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
from . import commands
|
||||
from .colors import *
|
||||
from .social_links import *
|
||||
from .tesseract import *
|
||||
from .user import *
|
||||
from .social_links import *
|
||||
|
@ -1,4 +1,5 @@
|
||||
from enum import Enum
|
||||
|
||||
|
||||
class GroupChatMessages(Enum):
|
||||
WELCOME_GROUP_MESSAGE = "Welcome to the beginning of the "
|
||||
|
@ -1,2 +1,3 @@
|
||||
# List of social links
|
||||
social_links = ['testerTwitter', 'status.im', 'testerGithub', 'testerTube', 'testerDiscord', 'testerTelegram', 'customLink', 'https://status.im/']
|
||||
social_links = ['testerTwitter', 'status.im', 'testerGithub', 'testerTube', 'testerDiscord', 'testerTelegram',
|
||||
'customLink', 'https://status.im/']
|
||||
|
@ -3,7 +3,6 @@ from copy import deepcopy
|
||||
|
||||
import configs.timeouts
|
||||
import driver
|
||||
from scripts.utils import local_system
|
||||
|
||||
if configs.system.IS_MAC:
|
||||
from atomacos._a11y import _running_apps_with_bundle_id
|
||||
|
Binary file not shown.
@ -9,6 +9,7 @@ from gui.main_window import MainWindow
|
||||
from scripts.utils import system_path
|
||||
from scripts.utils.system_path import SystemPath
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def application_logs():
|
||||
yield
|
||||
|
@ -19,4 +19,5 @@ def start_squish_server():
|
||||
pytest.exit(err)
|
||||
yield squish_server
|
||||
squish_server.stop()
|
||||
allure.attach.file('Squish server config', str(squish_server.config))
|
||||
if squish_server.config.exists():
|
||||
allure.attach.file(str(squish_server.config), 'Squish server config')
|
||||
|
@ -14,7 +14,6 @@ from gui.elements.scroll import Scroll
|
||||
from gui.elements.text_edit import TextEdit
|
||||
from gui.screens.community import CommunityScreen
|
||||
|
||||
|
||||
_logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
import allure
|
||||
|
||||
from gui.components.community.authenticate_popup import AuthenticatePopup
|
||||
from gui.components.base_popup import BasePopup
|
||||
from gui.components.community.authenticate_popup import AuthenticatePopup
|
||||
from gui.elements.button import Button
|
||||
from gui.elements.object import QObject
|
||||
from gui.elements.text_label import TextLabel
|
||||
|
@ -1,9 +1,9 @@
|
||||
import allure
|
||||
|
||||
import configs
|
||||
from .base_popup import BasePopup
|
||||
from gui.elements.object import QObject
|
||||
from gui.elements.text_edit import TextEdit
|
||||
from .base_popup import BasePopup
|
||||
|
||||
|
||||
class EmojiPopup(BasePopup):
|
||||
|
@ -7,7 +7,8 @@ from gui.elements.object import QObject
|
||||
class ChangesDetectedToastMessage(QObject):
|
||||
|
||||
def __init__(self):
|
||||
super(ChangesDetectedToastMessage, self).__init__('mainWindow_settingsDirtyToastMessage_SettingsDirtyToastMessage')
|
||||
super(ChangesDetectedToastMessage, self).__init__(
|
||||
'mainWindow_settingsDirtyToastMessage_SettingsDirtyToastMessage')
|
||||
self._save_button = Button('settingsSave_StatusButton')
|
||||
|
||||
@allure.step('Save changes')
|
||||
|
@ -3,10 +3,10 @@ import typing
|
||||
|
||||
import allure
|
||||
|
||||
from .base_popup import BasePopup
|
||||
from gui.elements.button import Button
|
||||
from gui.elements.object import QObject
|
||||
from gui.elements.text_edit import TextEdit
|
||||
from .base_popup import BasePopup
|
||||
|
||||
|
||||
class SocialLinksPopup(BasePopup):
|
||||
@ -41,4 +41,3 @@ class SocialLinksPopup(BasePopup):
|
||||
self._get_text_field(occurrence).text = link
|
||||
self._add_button.click()
|
||||
self.wait_until_hidden()
|
||||
|
@ -1,7 +1,6 @@
|
||||
import allure
|
||||
|
||||
import configs
|
||||
|
||||
from gui.elements.object import QObject
|
||||
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
import allure
|
||||
|
||||
from gui.elements.button import Button
|
||||
from gui.elements.text_edit import TextEdit
|
||||
from gui.elements.object import QObject
|
||||
from gui.elements.text_edit import TextEdit
|
||||
|
||||
|
||||
class AuthenticatePopup(QObject):
|
||||
|
@ -1,5 +1,5 @@
|
||||
from gui.elements.object import QObject
|
||||
from gui.elements.button import Button
|
||||
from gui.elements.object import QObject
|
||||
|
||||
|
||||
class TestnetModeBanner(QObject):
|
||||
|
@ -1,14 +1,14 @@
|
||||
import typing
|
||||
|
||||
import allure
|
||||
from gui.components.wallet.authenticate_popup import AuthenticatePopup
|
||||
|
||||
import configs
|
||||
import constants.wallet
|
||||
import driver
|
||||
from gui.components.wallet.back_up_your_seed_phrase_popup import BackUpYourSeedPhrasePopUp
|
||||
from gui.components.base_popup import BasePopup
|
||||
from gui.components.emoji_popup import EmojiPopup
|
||||
from gui.components.wallet.authenticate_popup import AuthenticatePopup
|
||||
from gui.components.wallet.back_up_your_seed_phrase_popup import BackUpYourSeedPhrasePopUp
|
||||
from gui.elements.button import Button
|
||||
from gui.elements.check_box import CheckBox
|
||||
from gui.elements.object import QObject
|
||||
|
@ -412,7 +412,6 @@ class BiometricsView(OnboardingView):
|
||||
return self._yes_use_touch_id_button.is_visible
|
||||
|
||||
|
||||
|
||||
class LoginView(QObject):
|
||||
|
||||
def __init__(self):
|
||||
|
@ -1,12 +1,11 @@
|
||||
from objectmaphelper import RegularExpression
|
||||
import time
|
||||
import typing
|
||||
|
||||
import allure
|
||||
from objectmaphelper import RegularExpression
|
||||
|
||||
import configs.timeouts
|
||||
import driver
|
||||
|
||||
from constants import UserCommunityInfo, wallet_account_list_item
|
||||
from constants.syncing import SyncingSettings
|
||||
from driver import objects_access
|
||||
|
@ -7,11 +7,11 @@ import constants.user
|
||||
import driver
|
||||
from driver.objects_access import walk_children
|
||||
from gui.components.base_popup import BasePopup
|
||||
from gui.components.context_menu import ContextMenu
|
||||
from gui.components.wallet.add_saved_address_popup import AddressPopup, EditSavedAddressPopup
|
||||
from gui.components.wallet.confirmation_popup import ConfirmationPopup
|
||||
from gui.components.wallet.remove_wallet_account_popup import RemoveWalletAccountPopup
|
||||
from gui.components.wallet.wallet_account_popups import AccountPopup
|
||||
from gui.components.context_menu import ContextMenu
|
||||
from gui.elements.button import Button
|
||||
from gui.elements.object import QObject
|
||||
from gui.elements.text_label import TextLabel
|
||||
|
@ -232,4 +232,3 @@ def compare(actual: Image,
|
||||
else:
|
||||
raise AssertionError('Images comparison failed')
|
||||
_logger.info(f'Screenshot comparison passed')
|
||||
|
||||
|
@ -5,13 +5,11 @@ import pytest
|
||||
from allure import step
|
||||
|
||||
import configs.timeouts
|
||||
import driver
|
||||
from gui.components.onboarding.before_started_popup import BeforeStartedPopUp
|
||||
from gui.components.onboarding.beta_consent_popup import BetaConsentPopup
|
||||
from gui.components.picture_edit_popup import shift_image
|
||||
from gui.components.splash_screen import SplashScreen
|
||||
from gui.screens.onboarding import AllowNotificationsView, WelcomeToStatusView, BiometricsView, KeysView
|
||||
from scripts.tools import image
|
||||
|
||||
_logger = logging.getLogger(__name__)
|
||||
pytestmark = allure.suite("Onboarding")
|
||||
|
@ -31,7 +31,6 @@ def sync_screen(main_window) -> SyncCodeView:
|
||||
@allure.testcase('https://ethstatus.testrail.net/index.php?/cases/view/703592', 'Sync device during onboarding')
|
||||
@pytest.mark.case(703592)
|
||||
@pytest.mark.parametrize('user_data', [configs.testpath.TEST_USER_DATA / 'user_account_one'])
|
||||
@pytest.mark.skip(reason = "https://github.com/status-im/desktop-qa-automation/issues/147")
|
||||
def test_sync_device_during_onboarding(multiple_instance, user_data):
|
||||
user: UserAccount = constants.user_account_one
|
||||
main_window = MainWindow()
|
||||
|
@ -11,7 +11,8 @@ from gui.main_window import MainWindow
|
||||
'Change the password and login with new password')
|
||||
@pytest.mark.case(703005)
|
||||
@pytest.mark.parametrize('user_account, user_account_changed_password',
|
||||
[pytest.param(constants.user.user_account_one, constants.user.user_account_one_changed_password)])
|
||||
[pytest.param(constants.user.user_account_one,
|
||||
constants.user.user_account_one_changed_password)])
|
||||
def test_change_password_and_login(aut: AUT, main_screen: MainWindow, user_account, user_account_changed_password):
|
||||
with step('Open profile settings and change password'):
|
||||
main_screen.left_panel.open_settings().left_panel.open_profile_settings().open_change_password_popup().change_password(
|
||||
|
@ -7,8 +7,6 @@ from gui.components.back_up_your_seed_phrase_banner import BackUpSeedPhraseBanne
|
||||
from gui.main_window import MainWindow
|
||||
|
||||
|
||||
|
||||
|
||||
@allure.testcase('https://ethstatus.testrail.net/index.php?/cases/view/703001', 'Backup seed phrase')
|
||||
@pytest.mark.case(703001)
|
||||
def test_back_up_seed_phrase(main_screen: MainWindow):
|
||||
|
Loading…
x
Reference in New Issue
Block a user