e2e: simpledapp on goerli
This commit is contained in:
parent
8217cff62e
commit
8d96877e04
|
@ -57,11 +57,8 @@ mailserver_hk = 'mail-01.ac-cn-hongkong-c'
|
||||||
mailserver_gc = 'mail-01.gc-us-central1-a'
|
mailserver_gc = 'mail-01.gc-us-central1-a'
|
||||||
|
|
||||||
test_dapp_web_url = "status-im.github.io/dapp"
|
test_dapp_web_url = "status-im.github.io/dapp"
|
||||||
# TODO: temp due to goerli transition
|
test_dapp_url = 'https://simpledapp.status.im/'
|
||||||
# test_dapp_url = 'simpledapp.eth'
|
test_dapp_name = 'simpledapp.status.im'
|
||||||
# test_dapp_name = 'simpledapp.eth'
|
|
||||||
test_dapp_url = 'https://bafybeidzlqpkbtvpjtxnzgew6ffxhozq5f4ojbk64iq3tjl7lkjue2biby.ipfs.infura-ipfs.io/'
|
|
||||||
test_dapp_name = 'bafybeidzlqpkbtvpjtxnzgew6ffxhozq5f4ojbk64iq3tjl7lkjue2biby.ipfs.infura-ipfs.io'
|
|
||||||
|
|
||||||
emojis = {'thumbs-up': 2, 'thumbs-down': 3, 'love': 1, 'laugh': 4, 'angry': 6, 'sad': 5}
|
emojis = {'thumbs-up': 2, 'thumbs-down': 3, 'love': 1, 'laugh': 4, 'angry': 6, 'sad': 5}
|
||||||
|
|
||||||
|
|
|
@ -404,14 +404,8 @@ class TestOneToOneChatMultipleSharedDevices(MultipleSharedDeviceTestCase):
|
||||||
if self.chat_2.user_name_text.text != self.default_username_1:
|
if self.chat_2.user_name_text.text != self.default_username_1:
|
||||||
self.errors.append("Default username '%s' is not shown in one-to-one chat" % self.default_username_1)
|
self.errors.append("Default username '%s' is not shown in one-to-one chat" % self.default_username_1)
|
||||||
|
|
||||||
# TODO: disabled until https://github.com/status-im/status-mobile/issues/12936 fix
|
self.chat_1.just_fyi("Check that messages are shown for sender and receiver under today")
|
||||||
# profile_1.just_fyi("Check timestamps for sender and receiver")
|
[chat.verify_message_is_under_today_text(timestamp_message, self.errors) for chat in (self.chat_1, self.chat_2)]
|
||||||
# for chat in device_1_chat, device_2_chat:
|
|
||||||
# chat.verify_message_is_under_today_text(timestamp_message, self.errors)
|
|
||||||
# timestamp = chat.chat_element_by_text(timestamp_message).timestamp_message.text
|
|
||||||
# if timestamp not in sent_time_variants:
|
|
||||||
# self.errors.append(
|
|
||||||
# "Timestamp is not shown, expected '%s', in fact '%s'" % (sent_time_variants.join(","), timestamp))
|
|
||||||
|
|
||||||
self.chat_2.just_fyi("Add user to contact and verify his default username")
|
self.chat_2.just_fyi("Add user to contact and verify his default username")
|
||||||
self.chat_2.add_to_contacts.click()
|
self.chat_2.add_to_contacts.click()
|
||||||
|
@ -1159,7 +1153,7 @@ class TestEnsStickersMultipleDevicesMerged(MultipleSharedDeviceTestCase):
|
||||||
self.errors.append('Sticker was not sent from Recent')
|
self.errors.append('Sticker was not sent from Recent')
|
||||||
|
|
||||||
# self.home_2.just_fyi('Check that can install stickers by tapping on sticker message')
|
# self.home_2.just_fyi('Check that can install stickers by tapping on sticker message')
|
||||||
# TODO: disabled because of #13683
|
# TODO: disabled because of #13683 (rechecked 27.07.22, valid)
|
||||||
self.home_2.home_button.double_click()
|
self.home_2.home_button.double_click()
|
||||||
self.home_2.get_chat(self.sender['username']).click()
|
self.home_2.get_chat(self.sender['username']).click()
|
||||||
# self.chat_2.chat_item.click()
|
# self.chat_2.chat_item.click()
|
||||||
|
|
|
@ -5,7 +5,7 @@ from tests.users import transaction_senders, basic_user, ens_user, ens_user_mess
|
||||||
from views.sign_in_view import SignInView
|
from views.sign_in_view import SignInView
|
||||||
|
|
||||||
|
|
||||||
# TODO: suspended according to #13257
|
# TODO: suspended according to #13257 (rechecked 27.07.22, valid)
|
||||||
@pytest.mark.xdist_group(name="pairing_2")
|
@pytest.mark.xdist_group(name="pairing_2")
|
||||||
@marks.critical
|
@marks.critical
|
||||||
@marks.skip
|
@marks.skip
|
||||||
|
@ -44,18 +44,15 @@ class TestPairingMultipleDevicesMerged(MultipleSharedDeviceTestCase):
|
||||||
self.errors.append('Expected preview for %s is "%s", in fact "%s" after initial sync' %
|
self.errors.append('Expected preview for %s is "%s", in fact "%s" after initial sync' %
|
||||||
(chat, expected_chat_preview, actual_chat_preview))
|
(chat, expected_chat_preview, actual_chat_preview))
|
||||||
|
|
||||||
# TODO: blocked due to 13176
|
self.profile_2.just_fyi("Check unread indicator")
|
||||||
# self.profile_2.just_fyi("Check unread indicator")
|
if self.home_2.home_button.counter.text != '2':
|
||||||
# if self.home_2.home_button.counter.text != '2':
|
self.errors.append('New messages counter is not shown on Home button')
|
||||||
# self.errors.append('New messages counter is not shown on Home button')
|
for chat in chats.keys():
|
||||||
# for chat in chats.keys():
|
if 'unread' in chats.keys():
|
||||||
# if 'unread' in chats.keys():
|
if self.home_2.get_chat(chat).new_messages_counter.text != chats[chat]['unread']:
|
||||||
# if self.home_2.get_chat(chat).new_messages_counter.text != chats[chat]['unread']:
|
self.errors.append('No unread for %s after initial sync' % chat)
|
||||||
# self.errors.append('No unread for %s after initial sync' % chat)
|
|
||||||
self.errors.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
@marks.skip
|
|
||||||
# TODO: blocked due to 13176
|
|
||||||
def test_pairing_initial_sync_activity_centre(self):
|
def test_pairing_initial_sync_activity_centre(self):
|
||||||
from views.dbs.main_pairing.data import activity_centre
|
from views.dbs.main_pairing.data import activity_centre
|
||||||
if self.home_2.notifications_unread_badge.is_element_displayed():
|
if self.home_2.notifications_unread_badge.is_element_displayed():
|
||||||
|
|
|
@ -59,12 +59,11 @@ class TestSendTxDeviceMerged(MultipleSharedDeviceTestCase):
|
||||||
status_test_dapp = self.home.open_status_test_dapp()
|
status_test_dapp = self.home.open_status_test_dapp()
|
||||||
status_test_dapp.wait_for_d_aap_to_load()
|
status_test_dapp.wait_for_d_aap_to_load()
|
||||||
|
|
||||||
# TODO: temp due to goerli transition
|
self.wallet.just_fyi("Checking request STT")
|
||||||
# self.wallet.just_fyi("Checking request STT")
|
status_test_dapp.assets_button.click()
|
||||||
# status_test_dapp.assets_button.click()
|
status_test_dapp.request_stt_button.wait_for_element(60)
|
||||||
# status_test_dapp.request_stt_button.wait_for_element(60)
|
send_transaction = status_test_dapp.request_stt_button.click()
|
||||||
# send_transaction = status_test_dapp.request_stt_button.click()
|
send_transaction.sign_transaction()
|
||||||
# send_transaction.sign_transaction()
|
|
||||||
|
|
||||||
self.wallet.just_fyi("Checking signing message")
|
self.wallet.just_fyi("Checking signing message")
|
||||||
status_test_dapp.transactions_button.click()
|
status_test_dapp.transactions_button.click()
|
||||||
|
@ -156,7 +155,7 @@ class TestSendTxDeviceMerged(MultipleSharedDeviceTestCase):
|
||||||
self.errors.append("Tx is not sent!")
|
self.errors.append("Tx is not sent!")
|
||||||
send_tx.ok_button.click()
|
send_tx.ok_button.click()
|
||||||
|
|
||||||
# TODO: disabled due to 10838 (rechecked 23.11.21, valid)
|
# TODO: disabled due to 10838 (rechecked 27.07.22, valid)
|
||||||
# transactions_view = wallet.transaction_history_button.click()
|
# transactions_view = wallet.transaction_history_button.click()
|
||||||
# transactions_view.transactions_table.find_transaction(amount=amount, asset=symbol)
|
# transactions_view.transactions_table.find_transaction(amount=amount, asset=symbol)
|
||||||
self.errors.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
@ -323,11 +322,10 @@ class TestKeycardTxOneDeviceMerged(MultipleSharedDeviceTestCase):
|
||||||
status_test_dapp = self.home.open_status_test_dapp()
|
status_test_dapp = self.home.open_status_test_dapp()
|
||||||
status_test_dapp.wait_for_d_aap_to_load()
|
status_test_dapp.wait_for_d_aap_to_load()
|
||||||
|
|
||||||
# TODO: temp due to goerli transition
|
self.wallet.just_fyi("Requesting STT in dapp")
|
||||||
# self.wallet.just_fyi("Requesting STT in dapp")
|
status_test_dapp.assets_button.click()
|
||||||
# status_test_dapp.assets_button.click()
|
send_tx = status_test_dapp.request_stt_button.click()
|
||||||
# send_tx = status_test_dapp.request_stt_button.click()
|
send_tx.sign_transaction(keycard=True)
|
||||||
# send_tx.sign_transaction(keycard=True)
|
|
||||||
|
|
||||||
send_tx = self.home.get_send_transaction_view()
|
send_tx = self.home.get_send_transaction_view()
|
||||||
self.wallet.just_fyi("Checking signing message")
|
self.wallet.just_fyi("Checking signing message")
|
||||||
|
@ -361,10 +359,9 @@ class TestKeycardTxOneDeviceMerged(MultipleSharedDeviceTestCase):
|
||||||
self.sign_in.driver.fail('Second send transaction screen did not appear!')
|
self.sign_in.driver.fail('Second send transaction screen did not appear!')
|
||||||
send_tx.sign_transaction(keycard=True)
|
send_tx.sign_transaction(keycard=True)
|
||||||
|
|
||||||
# TODO: temp due to goerli transition
|
self.wallet.just_fyi('Verify that wallet balance is updated after receiving money from faucet')
|
||||||
# self.wallet.just_fyi('Verify that wallet balance is updated after receiving money from faucet')
|
self.home.wallet_button.click()
|
||||||
# self.home.wallet_button.click()
|
self.wallet.wait_balance_is_changed('STT', initial_balance=self.initial_balances['STT'])
|
||||||
# self.wallet.wait_balance_is_changed('STT', initial_balance=self.initial_balances['STT'])
|
|
||||||
self.errors.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
@marks.testrail_id(700770)
|
@marks.testrail_id(700770)
|
||||||
|
|
|
@ -148,7 +148,7 @@ class TestTimelineHistoryNodesBootnodesMultipleDeviceMergedMedium(MultipleShared
|
||||||
self.profile_1.bootnodes_button.click()
|
self.profile_1.bootnodes_button.click()
|
||||||
self.profile_1.add_bootnode_button.click()
|
self.profile_1.add_bootnode_button.click()
|
||||||
self.profile_1.specify_name_input.set_value('test')
|
self.profile_1.specify_name_input.set_value('test')
|
||||||
# TODO: blocked as validation is missing for bootnodes (rechecked 23.11.21, valid)
|
# TODO: blocked as validation is missing for bootnodes (rechecked 27.07.22, valid)
|
||||||
# profile_1.bootnode_address_input.set_value('invalid_bootnode_address')
|
# profile_1.bootnode_address_input.set_value('invalid_bootnode_address')
|
||||||
# if not profile_1.element_by_text_part('Invalid format').is_element_displayed():
|
# if not profile_1.element_by_text_part('Invalid format').is_element_displayed():
|
||||||
# self.errors.append('Validation message about invalid format of bootnode is not shown')
|
# self.errors.append('Validation message about invalid format of bootnode is not shown')
|
||||||
|
|
|
@ -102,7 +102,7 @@ class TestPairingSyncMediumMultipleDevicesMerged(MultipleSharedDeviceTestCase):
|
||||||
self.profile_1.sync_all_button.wait_for_visibility_of_element(20)
|
self.profile_1.sync_all_button.wait_for_visibility_of_element(20)
|
||||||
[device.profile_button.double_click() for device in (self.profile_1, self.profile_2)]
|
[device.profile_button.double_click() for device in (self.profile_1, self.profile_2)]
|
||||||
[device.home_button.double_click() for device in (self.profile_1, self.device_3)]
|
[device.home_button.double_click() for device in (self.profile_1, self.device_3)]
|
||||||
#TODO Performing relogin as some of data does not appear after sync until relogin. Should be removed after fix of the issue #13647.
|
# TODO Relogin to workaround #13647, should be removed after fix of the issue(rechecked 27.07.22, valid)
|
||||||
self.profile_2.relogin()
|
self.profile_2.relogin()
|
||||||
self.device_3.put_app_to_background_and_back()
|
self.device_3.put_app_to_background_and_back()
|
||||||
|
|
||||||
|
|
|
@ -650,7 +650,7 @@ class TestChatManagement(SingleDeviceTestCase):
|
||||||
if send_transaction.network_fee_button.is_element_displayed():
|
if send_transaction.network_fee_button.is_element_displayed():
|
||||||
self.errors.append("Still can set tx fee when balance is not enough")
|
self.errors.append("Still can set tx fee when balance is not enough")
|
||||||
|
|
||||||
## TODO: should be moved to another test after 8f52b9b63ccd9a52b7fe37ab4f89a2e7b6721fcd
|
# TODO: should be moved to another test after 8f52b9b63ccd9a52b7fe37ab4f89a2e7b6721fcd
|
||||||
# send_transaction = wallet.get_send_transaction_view()
|
# send_transaction = wallet.get_send_transaction_view()
|
||||||
# send_transaction.gas_limit_input.clear()
|
# send_transaction.gas_limit_input.clear()
|
||||||
# send_transaction.gas_limit_input.set_value(default_limit)
|
# send_transaction.gas_limit_input.set_value(default_limit)
|
||||||
|
@ -1129,7 +1129,7 @@ class TestChatManagement(SingleDeviceTestCase):
|
||||||
|
|
||||||
@marks.testrail_id(6300)
|
@marks.testrail_id(6300)
|
||||||
@marks.skip
|
@marks.skip
|
||||||
# TODO: waiting mode (rechecked 23.11.21, valid)
|
# TODO: waiting mode (rechecked 27.07.22, valid)
|
||||||
def test_webview_security(self):
|
def test_webview_security(self):
|
||||||
home_view = SignInView(self.driver).create_user()
|
home_view = SignInView(self.driver).create_user()
|
||||||
daap_view = home_view.dapp_tab_button.click()
|
daap_view = home_view.dapp_tab_button.click()
|
||||||
|
|
|
@ -24,8 +24,6 @@ class TestKeycardMediumMultipleDevicesMerged(MultipleSharedDeviceTestCase):
|
||||||
self.home.home_button.click()
|
self.home.home_button.click()
|
||||||
|
|
||||||
@marks.testrail_id(702317)
|
@marks.testrail_id(702317)
|
||||||
@marks.skip
|
|
||||||
# TODO: skipped until fix #13606 and full transition to Goerli
|
|
||||||
def test_keycard_testdapp_sign_typed_message(self):
|
def test_keycard_testdapp_sign_typed_message(self):
|
||||||
test_dapp = self.home.open_status_test_dapp()
|
test_dapp = self.home.open_status_test_dapp()
|
||||||
test_dapp.wait_for_d_aap_to_load()
|
test_dapp.wait_for_d_aap_to_load()
|
||||||
|
@ -34,7 +32,7 @@ class TestKeycardMediumMultipleDevicesMerged(MultipleSharedDeviceTestCase):
|
||||||
send_transaction.sign_with_keycard_button.click()
|
send_transaction.sign_with_keycard_button.click()
|
||||||
keycard = send_transaction.sign_with_keycard_button.click()
|
keycard = send_transaction.sign_with_keycard_button.click()
|
||||||
keycard.enter_default_pin()
|
keycard.enter_default_pin()
|
||||||
if not keycard.element_by_text_part('0x925141b').is_element_displayed():
|
if not keycard.element_by_text_part('0xc053c4').is_element_displayed():
|
||||||
self.errors.append('Typed message was not signed')
|
self.errors.append('Typed message was not signed')
|
||||||
self.errors.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
|
@ -235,8 +233,6 @@ class TestWalletTestDappMediumMultipleDevicesMerged(MultipleSharedDeviceTestCase
|
||||||
self.errors.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
@marks.testrail_id(702325)
|
@marks.testrail_id(702325)
|
||||||
@marks.skip
|
|
||||||
# TODO: skipped until fix #13606 and full transition to Goerli
|
|
||||||
def test_testdapp_sign_typed_message(self):
|
def test_testdapp_sign_typed_message(self):
|
||||||
self.home.just_fyi("Checking sign typed message")
|
self.home.just_fyi("Checking sign typed message")
|
||||||
test_dapp = self.home.open_status_test_dapp(allow_all=True)
|
test_dapp = self.home.open_status_test_dapp(allow_all=True)
|
||||||
|
@ -244,7 +240,7 @@ class TestWalletTestDappMediumMultipleDevicesMerged(MultipleSharedDeviceTestCase
|
||||||
send_transaction = test_dapp.sign_typed_message_button.click()
|
send_transaction = test_dapp.sign_typed_message_button.click()
|
||||||
send_transaction.enter_password_input.send_keys(common_password)
|
send_transaction.enter_password_input.send_keys(common_password)
|
||||||
send_transaction.sign_button.click_until_absense_of_element(send_transaction.sign_button)
|
send_transaction.sign_button.click_until_absense_of_element(send_transaction.sign_button)
|
||||||
if not test_dapp.element_by_text_part('0x1673d96e836').is_element_displayed(30):
|
if not test_dapp.element_by_text_part('0x0876752fe').is_element_displayed(30):
|
||||||
self.errors.append("Hash of signed typed message is not shown!")
|
self.errors.append("Hash of signed typed message is not shown!")
|
||||||
self.errors.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue