-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(e2e): new onboarding tests changes
- Loading branch information
1 parent
989c31c
commit c6d8b65
Showing
67 changed files
with
636 additions
and
628 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
import logging | ||
import os | ||
|
||
from os import path | ||
from scripts.utils.system_path import SystemPath | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
import os | ||
import time | ||
|
||
import allure | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
import allure | ||
import pytest | ||
import logging | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
test/e2e/gui/components/community/leave_community_confirmation.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
test/e2e/gui/components/onboarding/login_by_syncing_checklist.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
from gui.components.base_popup import BasePopup | ||
from gui.elements.button import Button | ||
from gui.objects_map import onboarding_names | ||
from gui.elements.check_box import CheckBox | ||
|
||
|
||
class LogInBySyncingChecklist(BasePopup): | ||
def __init__(self): | ||
super().__init__() | ||
self.connect_both_devices_option = CheckBox(onboarding_names.connectBothDevicesOption) | ||
self.make_sure_you_are_logged_option = CheckBox(onboarding_names.makeSureYouAreLoggedOption) | ||
self.disable_the_firewall_option = CheckBox(onboarding_names.disableTheFirewallOption) | ||
self.cancel_button = Button(onboarding_names.cancelButton) | ||
self.continue_button = Button(onboarding_names.continueButton) | ||
|
||
def complete(self): | ||
self.connect_both_devices_option.set(True) | ||
self.make_sure_you_are_logged_option.set(True) | ||
self.disable_the_firewall_option.set(True) | ||
assert self.continue_button.is_enabled | ||
self.continue_button.click() |
28 changes: 28 additions & 0 deletions
28
test/e2e/gui/components/onboarding/login_users_list_popup.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import driver | ||
from gui.components.base_popup import BasePopup | ||
from gui.elements.button import Button | ||
from gui.elements.object import QObject | ||
from gui.objects_map import onboarding_names | ||
|
||
|
||
class OnboardingLoginUsersPopup(BasePopup): | ||
def __init__(self): | ||
super().__init__() | ||
self.user_login_item = QObject(onboarding_names.userLoginItem) | ||
self.create_profile_button = Button(onboarding_names.createProfileButton) | ||
self.login_button = Button(onboarding_names.returningLoginButton) | ||
|
||
def select_user_by_name(self, user_name): | ||
raw_data = driver.findAllObjects(self.user_login_item.real_name) | ||
if not raw_data: | ||
raise ValueError(f"Can't find {user_name} in list of users as the list is empty") | ||
for _user in raw_data: | ||
name_label = str(QObject(_user).object.label) | ||
if name_label == user_name: | ||
try: | ||
QObject(_user).click() | ||
return self | ||
except RuntimeError as e: | ||
raise RuntimeError(f'Could not click user with user name "{user_name}": {e}') | ||
else: | ||
raise ValueError(f'User "{user_name}" was not found') |
23 changes: 13 additions & 10 deletions
23
test/e2e/gui/components/onboarding/share_usage_data_popup.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,21 @@ | ||
import allure | ||
|
||
from gui.components.base_popup import BasePopup | ||
from gui.elements.button import Button | ||
from gui.elements.object import QObject | ||
from gui.objects_map import names | ||
from gui.objects_map import names, onboarding_names | ||
|
||
|
||
class ShareUsageDataPopup(QObject): | ||
# this is old modal shown on relogin | ||
class ShareUsageDataPopup(BasePopup): | ||
|
||
def __init__(self): | ||
super().__init__(names.share_usage_data_StatusButton) | ||
self._not_now_button = Button(names.not_now_StatusButton ) | ||
self._share_usage_data_button = Button(names.share_usage_data_StatusButton) | ||
super().__init__() | ||
self.not_now_button = Button(names.not_now_StatusButton) | ||
self.share_usage_data_button = Button(names.share_usage_data_StatusButton) | ||
|
||
|
||
@allure.step('Click not now button') | ||
def skip(self): | ||
self._not_now_button.click() | ||
# this is new modal shown for initial onboarding | ||
class HelpUsImproveStatusView(QObject): | ||
def __init__(self): | ||
super().__init__(onboarding_names.helpUsImproveStatusPage) | ||
self.share_usage_data_button = Button(onboarding_names.shareUsageDataButton) | ||
self.not_now_button = Button(onboarding_names.notNowButton) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 3 additions & 7 deletions
10
test/e2e/gui/components/wallet/popup_delete_account_from_settings.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.