e2e: nightly fixes and py upgrade

Signed-off-by: Churikova Tetiana <churikova.tm@gmail.com>
This commit is contained in:
Churikova Tetiana 2021-02-17 12:05:57 +01:00
parent 452e54fc19
commit 8698e13fa1
No known key found for this signature in database
GPG Key ID: 0D4EA7B33B47E6D8
6 changed files with 9 additions and 7 deletions

View File

@ -24,7 +24,7 @@ namedlist==1.8
numpy==1.19.4 numpy==1.19.4
pbkdf2==1.3 pbkdf2==1.3
Pillow==8.1.0 Pillow==8.1.0
py==1.9.0 py==1.10.0
py-ecc==5.1.0 py-ecc==5.1.0
pycryptodome==3.9.9 pycryptodome==3.9.9
pyethash==0.1.27 pyethash==0.1.27

View File

@ -106,7 +106,8 @@ class TestWalletManagement(SingleDeviceTestCase):
wallet.just_fyi('Check "Open in OpenSea"') wallet.just_fyi('Check "Open in OpenSea"')
wallet.element_by_translation_id("check-on-opensea").click() wallet.element_by_translation_id("check-on-opensea").click()
wallet.element_by_text('Sign In').click()
wallet.element_by_text('Sign In').wait_and_click(60)
if not wallet.allow_button.is_element_displayed(40): if not wallet.allow_button.is_element_displayed(40):
self.errors.append('Can not sign in in OpenSea dapp') self.errors.append('Can not sign in in OpenSea dapp')
self.errors.verify_no_errors() self.errors.verify_no_errors()

View File

@ -87,8 +87,10 @@ class TestCommandsMultipleDevices(MultipleDeviceTestCase):
home_1.just_fyi("Check 'Confirmed' state for sender and receiver(use pull-to-refresh to update history)") home_1.just_fyi("Check 'Confirmed' state for sender and receiver(use pull-to-refresh to update history)")
chat_2.status_in_background_button.click() chat_2.status_in_background_button.click()
chat_2.wallet_button.click() chat_2.wallet_button.click()
wallet_2.wait_balance_is_changed()
wallet_2.find_transaction_in_history(amount=amount) wallet_2.find_transaction_in_history(amount=amount)
wallet_2.home_button.click(desired_view="chat") wallet_2.home_button.click()
home_2.get_chat(sender['username']).click()
[message.transaction_status.wait_for_element_text(message.confirmed, 60) for message in [message.transaction_status.wait_for_element_text(message.confirmed, 60) for message in
(sender_message, receiver_message)] (sender_message, receiver_message)]

View File

@ -510,7 +510,7 @@ class TestGroupChatMultipleDevice(MultipleDeviceTestCase):
device_1.send_message_button.click() device_1.send_message_button.click()
device_1_chat.chat_message_input.click() device_1_chat.chat_message_input.click()
for chat in device_1_chat, device_2_chat, device_3_chat: for chat in device_1_chat, device_2_chat, device_3_chat:
if not chat.play_pause_audio_message_button.is_element_displayed(): if not chat.play_pause_audio_message_button.is_element_displayed(30):
self.errors.append('Audio message is not shown in chat after sending!') self.errors.append('Audio message is not shown in chat after sending!')
device_1.just_fyi('Send sticker to group chat and verify it on all devices') device_1.just_fyi('Send sticker to group chat and verify it on all devices')
@ -524,7 +524,7 @@ class TestGroupChatMultipleDevice(MultipleDeviceTestCase):
sleep(2) sleep(2)
device_1_chat.swipe_left() device_1_chat.swipe_left()
device_1_chat.sticker_icon.click() device_1_chat.sticker_icon.click()
if not device_1_chat.sticker_message.is_element_displayed(): if not device_1_chat.sticker_message.is_element_displayed(30):
self.errors.append('Sticker was not sent') self.errors.append('Sticker was not sent')
self.errors.verify_no_errors() self.errors.verify_no_errors()

View File

@ -343,7 +343,7 @@ class SilentButton(Button):
return self.driver.find_element(self.by, self.locator) return self.driver.find_element(self.by, self.locator)
except NoSuchElementException: except NoSuchElementException:
raise NoSuchElementException( raise NoSuchElementException(
"Device %s: '%s' is not found on the screen" % (self.driver.number, self.name)) from None "Device %s: '%s' by %s:'%s' not found on the screen" % (self.driver.number, self.name, self.by, self.locator)) from None
except Exception as exception: except Exception as exception:
if 'Internal Server Error' in str(exception): if 'Internal Server Error' in str(exception):
continue continue

View File

@ -121,7 +121,6 @@ class HomeView(BaseView):
if add_in_contacts: if add_in_contacts:
one_to_one_chat.add_to_contacts.click() one_to_one_chat.add_to_contacts.click()
if nickname: if nickname:
self.driver.info("**Setting nickname '%s'**" % nickname)
one_to_one_chat.chat_options.click() one_to_one_chat.chat_options.click()
one_to_one_chat.view_profile_button.click() one_to_one_chat.view_profile_button.click()
one_to_one_chat.set_nickname(nickname) one_to_one_chat.set_nickname(nickname)