e2e: nightly fix

Signed-off-by: andrey <motor4ik@gmail.com>
This commit is contained in:
Churikova Tetiana 2021-08-09 13:16:02 +02:00 committed by andrey
parent f7cf172761
commit d15860c93e
No known key found for this signature in database
GPG Key ID: 89B67245FD2F0272
4 changed files with 7 additions and 7 deletions

View File

@ -35,6 +35,7 @@ unique_password = 'unique' + get_current_time()
pin = '121212' pin = '121212'
puk = '000000000000' puk = '000000000000'
pair_code= '000000' pair_code= '000000'
background_service_message = 'Background service for notifications'
bootnode_address = "enode://a8a97f126f5e3a340cb4db28a1187c325290ec08b2c9a6b1f19845ac86c46f9fac2ba13328822590" \ bootnode_address = "enode://a8a97f126f5e3a340cb4db28a1187c325290ec08b2c9a6b1f19845ac86c46f9fac2ba13328822590" \
"fd3de3acb09cc38b5a05272e583a2365ad1fa67f66c55b34@167.99.210.203:30404" "fd3de3acb09cc38b5a05272e583a2365ad1fa67f66c55b34@167.99.210.203:30404"

View File

@ -2,7 +2,7 @@ import time
import random import random
import emoji import emoji
from tests import marks from tests import marks, background_service_message
from tests.users import basic_user, dummy_user, ens_user_ropsten, ens_user, ens_user_message_sender from tests.users import basic_user, dummy_user, ens_user_ropsten, ens_user, ens_user_message_sender
from tests.base_test_case import SingleDeviceTestCase, MultipleDeviceTestCase from tests.base_test_case import SingleDeviceTestCase, MultipleDeviceTestCase
from views.sign_in_view import SignInView from views.sign_in_view import SignInView
@ -700,7 +700,7 @@ class TestChatManagementMultipleDevice(MultipleDeviceTestCase):
device_1.open_notification_bar() device_1.open_notification_bar()
if device_1.element_by_text_part(message_after_block_2).is_element_displayed(): if device_1.element_by_text_part(message_after_block_2).is_element_displayed():
self.errors.append("Push notification is received from blocked user") self.errors.append("Push notification is received from blocked user")
device_1.element_by_text_part("Background service for notifications").click() device_1.element_by_text_part(background_service_message).click()
if public_chat_after_block_1.chat_element_by_text(message_after_block_2).is_element_displayed(): if public_chat_after_block_1.chat_element_by_text(message_after_block_2).is_element_displayed():
self.errors.append("Message from blocked user '%s' is received" % device_2.driver.number) self.errors.append("Message from blocked user '%s' is received" % device_2.driver.number)
@ -739,7 +739,7 @@ class TestChatManagementMultipleDevice(MultipleDeviceTestCase):
device_1.just_fyi("check that PNs are still enabled in profile after closing 'background notification centre' " device_1.just_fyi("check that PNs are still enabled in profile after closing 'background notification centre' "
"message and relogin") "message and relogin")
device_1.open_notification_bar() device_1.open_notification_bar()
if not device_1.element_by_text_part("Background notification service").is_element_displayed(): if not device_1.element_by_text_part(background_service_message).is_element_displayed():
self.errors.append("Background notification service is not started after relogin") self.errors.append("Background notification service is not started after relogin")
self.errors.verify_no_errors() self.errors.verify_no_errors()

View File

@ -88,8 +88,7 @@ class TestPublicChatMultipleDevice(MultipleDeviceTestCase):
chat_2.select_mention_from_suggestion_list(username_1, username_1[:2]) chat_2.select_mention_from_suggestion_list(username_1, username_1[:2])
chat_2.send_message_button.click() chat_2.send_message_button.click()
chat_element.new_messages_counter.wait_for_element(30) chat_element.new_messages_counter.wait_for_element(30)
if chat_element.new_messages_counter.text == '1': chat_element.new_messages_counter.wait_for_element_text("1", 60)
self.errors.append('Counter is not shown for mention in public chat')
chat_element.click() chat_element.click()
home_1.home_button.double_click() home_1.home_button.double_click()

View File

@ -211,8 +211,8 @@ class HomeView(BaseView):
if set_image: if set_image:
from views.profile_view import ProfileView from views.profile_view import ProfileView
set_picture_view = ProfileView(self.driver) set_picture_view = ProfileView(self.driver)
set_picture_view.element_by_translation_id("community-thumbnail-upload").click() set_picture_view.element_by_translation_id("community-thumbnail-upload").scroll_and_click()
set_picture_view.element_by_translation_id("community-image-pick").click() set_picture_view.element_by_translation_id("community-image-pick").scroll_and_click()
set_picture_view.select_photo_from_gallery(file_name) set_picture_view.select_photo_from_gallery(file_name)
set_picture_view.crop_photo_button.click() set_picture_view.crop_photo_button.click()