Skip to content

Commit b51a449

Browse files
committed
chore(@e2e): use Qt Convenience API minimize function
1 parent 19cbdfa commit b51a449

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

test/e2e/gui/screens/messages.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -391,9 +391,7 @@ def open_edit_group_name_form(self):
391391

392392
@allure.step('Choose leave group option')
393393
def leave_group(self):
394-
time.sleep(2)
395394
self.open_more_options()
396-
time.sleep(2)
397395
self._leave_group_item.click()
398396
return LeaveGroupPopup().wait_until_appears()
399397

test/e2e/helpers/multiple_instances_helper.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ def authorize_user_in_aut(aut, main_window, user_account):
3434
aut.attach()
3535
main_window.wait_until_appears(configs.timeouts.APP_LOAD_TIMEOUT_MSEC).prepare()
3636
main_window.authorize_user(user_account)
37+
main_window.minimize()
3738

3839

3940
@allure.step('Get chat key from user')

test/e2e/tests/crtitical_tests_prs/test_messaging_group_chat.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,14 @@ def test_group_chat_add_contact_in_ac(multiple_instances, community_name, domain
4949

5050
with step(f'User {user_two.name}, get chat key'):
5151
user_2_chat_key = get_chat_key(aut_two, main_window)
52+
main_window.minimize()
5253

5354
with step(f'User {user_one.name}, send contact request to {user_two.name}'):
5455
switch_to_aut(aut_one, main_window)
5556
settings = main_window.left_panel.open_settings()
5657
contact_request_form = settings.left_panel.open_messaging_settings().open_contacts_settings().open_contact_request_form()
5758
contact_request_form.send(user_2_chat_key, f'Hello {user_two.name}')
59+
main_window.minimize()
5860

5961
with step(f'User {user_two.name}, accept contact request from {user_one.name} via activity center'):
6062
switch_to_aut(aut_two, main_window)
@@ -66,12 +68,14 @@ def test_group_chat_add_contact_in_ac(multiple_instances, community_name, domain
6668

6769
with step(f'User {user_three.name}, get chat key'):
6870
user_3_chat_key = get_chat_key(aut_three, main_window)
71+
main_window.minimize()
6972

7073
with step(f'User {user_one.name}, send contact request to {user_three.name}'):
7174
switch_to_aut(aut_one, main_window)
7275
settings = main_window.left_panel.open_settings()
7376
contact_request_form = settings.left_panel.open_messaging_settings().open_contacts_settings().open_contact_request_form()
7477
contact_request_form.send(user_3_chat_key, f'Hello {user_three.name}')
78+
main_window.minimize()
7579

7680
with step(f'User {user_three.name}, accept contact request from {user_one.name} via activity center'):
7781
switch_to_aut(aut_three, main_window)

0 commit comments

Comments
 (0)