Skip to content

Commit 5dd76b1

Browse files
committed
chore(@e2e): fix tests to reflect the changes in UI
1 parent e27f960 commit 5dd76b1

File tree

9 files changed

+9
-13
lines changed

9 files changed

+9
-13
lines changed

test/e2e/gui/main_window.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,9 +179,9 @@ def create_profile(self, user_account: UserAccount):
179179
splash_screen.wait_until_appears()
180180
splash_screen.wait_until_hidden(APP_LOAD_TIMEOUT_MSEC)
181181

182-
# Navigate from home to settings first
183182
# since we now struggle with 3 words names, I need to change display name first
184-
settings_screen = self.home.open_from_dock(DockButtons.SETTINGS.value)
183+
left_panel = MainLeftPanel()
184+
settings_screen = left_panel.open_settings()
185185
profile = settings_screen.left_panel.open_profile_settings()
186186
profile.set_name(user_account.name)
187187
profile.save_changes_button.click()

test/e2e/helpers/settings_helper.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33

44
def enable_testnet_mode(main_window):
5-
main_window.home.open_from_dock(DockButtons.SETTINGS.value)
65
wallet_settings = main_window.left_panel.open_settings().left_panel.open_wallet_settings()
76
test_mode_popup = wallet_settings.open_networks().switch_testnet_mode_toggle()
87
test_mode_popup.turn_on_testnet_mode()

test/e2e/tests/communities/test_communities_categories.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
from allure_commons._allure import step
77

88
from constants import RandomCommunity
9-
from constants.dock_buttons import DockButtons
109
from tests import test_data
1110
from gui.components.context_menu import ContextMenu
1211
from gui.main_window import MainWindow
@@ -22,7 +21,6 @@
2221
def test_member_role_cannot_add_edit_or_delete_category(main_screen, user_data, user_account):
2322

2423
with step('Choose community user is not owner of'):
25-
main_screen.home.open_from_dock(DockButtons.WALLET.value)
2624
community_screen = main_screen.left_panel.select_community('Community with 2 users')
2725

2826
with step('Verify that member cannot add category'):

test/e2e/tests/communities/test_communities_channels.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ def test_create_edit_remove_community_channel(main_screen, channel_name, channel
8484
def test_member_role_cannot_add_edit_and_delete_channels(main_screen: MainWindow):
8585

8686
with step('Choose community user is not owner of'):
87-
main_screen.home.open_from_dock(DockButtons.WALLET.value)
8887
community_screen = main_screen.left_panel.select_community('Community with 2 users')
8988
with step('Verify that member cannot add new channel'):
9089
with step('Verify that create channel or category button is not present'):

test/e2e/tests/crtitical_tests_prs/test_add_edit_restart_add_delete_generated_account.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def test_add_edit_restart_add_delete_generated_account(aut: AUT, main_screen: Ma
6565
main_screen.authorize_user(user_account)
6666

6767
with step('Add second generated wallet account'):
68-
wallet = main_screen.home.open_from_dock(DockButtons.WALLET.value)
68+
wallet = main_screen.left_panel.open_wallet()
6969
account_popup = wallet.left_panel.open_add_account_popup()
7070
account_popup.set_name(name2).save_changes()
7171

test/e2e/tests/crtitical_tests_prs/test_onboarding_import_seed.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def test_import_and_reimport_random_seed(
3232
import_seed_and_log_in(create_your_profile_view, seed_phrase, user_account)
3333

3434
with step('Verify that restored account reveals correct status wallet address'):
35-
profile = main_window.home.open_from_dock(DockButtons.SETTINGS.value).left_panel.open_profile_settings()
35+
profile = main_window.left_panel.open_settings().left_panel.open_profile_settings()
3636
profile.set_name(user_account.name)
3737
profile.save_changes_button.click()
3838

test/e2e/tests/crtitical_tests_prs/test_onboarding_sync_with_code.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,9 @@ def test_sync_devices_during_onboarding_change_settings_unpair(multiple_instance
7575
SplashScreen().wait_until_hidden(APP_LOAD_TIMEOUT_MSEC)
7676

7777
with step('Verify user details are the same with user in first instance'):
78-
home = HomeScreen()
79-
online_identifier = home.open_online_identifier_from_home_screen()
78+
online_identifier = main_window.left_panel.open_online_identifier()
8079
assert online_identifier.get_user_name == user.name, \
8180
f'Name in online identifier and display name do not match'
82-
main_window.home.click()
8381
main_window.hide()
8482

8583
with step(f'Open first instance {aut_one.aut_id} and verify it is synced, click done'):
@@ -90,6 +88,7 @@ def test_sync_devices_during_onboarding_change_settings_unpair(multiple_instance
9088
lambda: 'Device synced!' in sync_device_found.device_synced_notifications, 23000)
9189
assert user.name in sync_device_found.device_synced_notifications
9290
sync_device_found.done_button.click()
91+
9392
# TODO: https://github.com/status-im/status-desktop/issues/18680
9493
# with step('Change Allow contact requests toggle state to OFF'):
9594
# home = main_window.left_panel.open_home_screen()
@@ -129,3 +128,4 @@ def test_sync_devices_during_onboarding_change_settings_unpair(multiple_instance
129128
# assert driver.waitFor(
130129
# lambda: not msg_stngs.allow_contact_requests_toggle.object.checked, 15000), \
131130
# f'Toggle state should remain unchecked becase devices are not paired'
131+

test/e2e/tests/crtitical_tests_prs/test_settings_password_change_password.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@ def test_change_password_and_login(aut: AUT, main_screen: MainWindow, user_accou
3434
password=new_password))
3535

3636
with step('Verify that the user logged in correctly'):
37-
online_identifier = main_screen.home.open_online_identifier_from_home_screen()
37+
online_identifier = main_screen.left_panel.open_online_identifier()
3838
profile_popup = online_identifier.open_profile_popup_from_online_identifier()
3939
assert profile_popup.user_name == user_account.name

test/e2e/tests/wallet_main_screen/wallet_load_time/test_wallet_loading_time.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def test_wallet_loading_time(main_screen, user_data, user_account, tmp_path):
2222
os.environ['STATUS_RUNTIME_TEST_MODE'] = 'True' # to omit banners
2323

2424
with step('Open wallet after login'):
25-
main_screen.home.open_from_dock(DockButtons.WALLET.value)
25+
main_screen.left_panel.open_wallet()
2626

2727
load_times = []
2828
report_lines = []

0 commit comments

Comments
 (0)