pdate e2e and fleet in e2e env
Signed-off-by: Serhy <sergii@status.im>
This commit is contained in:
parent
e088a61247
commit
280063b687
2
.env.e2e
2
.env.e2e
|
@ -3,7 +3,7 @@ DEFAULT_NETWORK=testnet_rpc
|
||||||
ERC20_CONTRACT_WARNINGS=1
|
ERC20_CONTRACT_WARNINGS=1
|
||||||
ETHEREUM_DEV_CLUSTER=1
|
ETHEREUM_DEV_CLUSTER=1
|
||||||
EXTENSIONS=0
|
EXTENSIONS=0
|
||||||
FLEET=eth.staging
|
FLEET=eth.prod
|
||||||
GROUP_CHATS_ENABLED=1
|
GROUP_CHATS_ENABLED=1
|
||||||
LOG_LEVEL_STATUS_GO=info
|
LOG_LEVEL_STATUS_GO=info
|
||||||
LOG_LEVEL=debug
|
LOG_LEVEL=debug
|
||||||
|
|
|
@ -234,12 +234,12 @@ class TestChatManagement(SingleDeviceTestCase):
|
||||||
chat_view.just_fyi("Clear quotes from both chats")
|
chat_view.just_fyi("Clear quotes from both chats")
|
||||||
chat_view.cancel_reply_button.click()
|
chat_view.cancel_reply_button.click()
|
||||||
|
|
||||||
if chat_view.tiny_reply_icon_in_message_input.is_element_displayed():
|
if chat_view.cancel_reply_button.is_element_displayed():
|
||||||
self.errors.append("Message quote kept in public chat input after it's cancelation")
|
self.errors.append("Message quote kept in public chat input after it's cancelation")
|
||||||
chat_view.get_back_to_home_view(times_to_click_on_back_btn=1)
|
chat_view.get_back_to_home_view(times_to_click_on_back_btn=1)
|
||||||
home.get_chat_with_user(dummy_user["username"]).click()
|
home.get_chat_with_user(dummy_user["username"]).click()
|
||||||
chat_view.cancel_reply_button.click()
|
chat_view.cancel_reply_button.click()
|
||||||
if chat_view.tiny_reply_icon_in_message_input.is_element_displayed():
|
if chat_view.cancel_reply_button.is_element_displayed():
|
||||||
self.errors.append("Message quote kept in 1-1 chat input after it's cancelation")
|
self.errors.append("Message quote kept in 1-1 chat input after it's cancelation")
|
||||||
|
|
||||||
self.errors.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
@ -482,7 +482,7 @@ class TestChatManagementMultipleDevice(MultipleDeviceTestCase):
|
||||||
device_1_chat = home_1.add_contact(device_2_public_key)
|
device_1_chat = home_1.add_contact(device_2_public_key)
|
||||||
device_1_chat.send_message(message_from_sender)
|
device_1_chat.send_message(message_from_sender)
|
||||||
device_1_chat.quote_message(message_from_sender)
|
device_1_chat.quote_message(message_from_sender)
|
||||||
if device_1_chat.quote_username_in_message_input.text != "You":
|
if device_1_chat.quote_username_in_message_input.text != "↪ You":
|
||||||
self.errors.append("'You' is not displayed in reply quote snippet replying to own message")
|
self.errors.append("'You' is not displayed in reply quote snippet replying to own message")
|
||||||
reply_to_message_from_sender = message_from_sender + " reply"
|
reply_to_message_from_sender = message_from_sender + " reply"
|
||||||
device_1_chat.send_message(reply_to_message_from_sender)
|
device_1_chat.send_message(reply_to_message_from_sender)
|
||||||
|
@ -505,7 +505,7 @@ class TestChatManagementMultipleDevice(MultipleDeviceTestCase):
|
||||||
chat_public_1, chat_public_2 = home_1.get_chat_view(), home_2.get_chat_view()
|
chat_public_1, chat_public_2 = home_1.get_chat_view(), home_2.get_chat_view()
|
||||||
chat_public_1.send_message(message_from_sender)
|
chat_public_1.send_message(message_from_sender)
|
||||||
chat_public_2.quote_message(message_from_sender)
|
chat_public_2.quote_message(message_from_sender)
|
||||||
if chat_public_2.quote_username_in_message_input.text != device_1_username:
|
if chat_public_2.quote_username_in_message_input.text != ("↪ " + device_1_username):
|
||||||
self.errors.append(" %s is not displayed in reply quote snippet replying to own message " % device_1_username)
|
self.errors.append(" %s is not displayed in reply quote snippet replying to own message " % device_1_username)
|
||||||
|
|
||||||
device_1.just_fyi('Message receiver verifies reply is present in received message')
|
device_1.just_fyi('Message receiver verifies reply is present in received message')
|
||||||
|
|
|
@ -48,7 +48,7 @@ class TestDApps(SingleDeviceTestCase):
|
||||||
wallet_view.just_fyi('create new account in multiaccount')
|
wallet_view.just_fyi('create new account in multiaccount')
|
||||||
wallet_view.set_up_wallet()
|
wallet_view.set_up_wallet()
|
||||||
status_account = 'Status account'
|
status_account = 'Status account'
|
||||||
account_name = 'subaccount'
|
account_name = 'Subaccount'
|
||||||
wallet_view.add_account(account_name)
|
wallet_view.add_account(account_name)
|
||||||
address = wallet_view.get_wallet_address(account_name)
|
address = wallet_view.get_wallet_address(account_name)
|
||||||
|
|
||||||
|
@ -78,7 +78,6 @@ class TestDApps(SingleDeviceTestCase):
|
||||||
if not status_test_dapp.element_by_text(account_name).is_element_displayed():
|
if not status_test_dapp.element_by_text(account_name).is_element_displayed():
|
||||||
self.errors.append("No expected account %s is shown in authorize web3 popup for wallet" % account_name)
|
self.errors.append("No expected account %s is shown in authorize web3 popup for wallet" % account_name)
|
||||||
status_test_dapp.allow_button.click()
|
status_test_dapp.allow_button.click()
|
||||||
status_test_dapp.allow_button.click()
|
|
||||||
dapp_view.profile_button.click()
|
dapp_view.profile_button.click()
|
||||||
profile_view.element_by_text(test_dapp_name).click()
|
profile_view.element_by_text(test_dapp_name).click()
|
||||||
for text in 'Chat key', account_name:
|
for text in 'Chat key', account_name:
|
||||||
|
@ -93,6 +92,17 @@ class TestDApps(SingleDeviceTestCase):
|
||||||
if not send_transaction_view.element_by_text(address).is_element_displayed():
|
if not send_transaction_view.element_by_text(address).is_element_displayed():
|
||||||
self.errors.append("Wallet address %s in not shown in 'From' on Send Transaction screen" % address)
|
self.errors.append("Wallet address %s in not shown in 'From' on Send Transaction screen" % address)
|
||||||
|
|
||||||
|
sign_in_view.just_fyi('Relogin and check multiaccount loads fine')
|
||||||
|
send_transaction_view.cancel_button.click()
|
||||||
|
sign_in_view.profile_button.click()
|
||||||
|
sign_in_view.get_back_to_home_view()
|
||||||
|
sign_in_view.relogin()
|
||||||
|
sign_in_view.wallet_button.click()
|
||||||
|
if not wallet_view.element_by_text(account_name).is_element_displayed():
|
||||||
|
self.errors.append("Subaccount is gone after relogin in Wallet!")
|
||||||
|
sign_in_view.dapp_tab_button.click()
|
||||||
|
if not dapp_view.element_by_text(account_name).is_element_displayed():
|
||||||
|
self.errors.append("Subaccount is not selected after relogin in Dapps!")
|
||||||
self.errors.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
@marks.testrail_id(5654)
|
@marks.testrail_id(5654)
|
||||||
|
|
|
@ -25,8 +25,8 @@ class TinyReplyIconInMessageInput(BaseElement):
|
||||||
class QuoteUsernameInMessageInput(BaseText):
|
class QuoteUsernameInMessageInput(BaseText):
|
||||||
def __init__(self, driver):
|
def __init__(self, driver):
|
||||||
super().__init__(driver)
|
super().__init__(driver)
|
||||||
self.locator = self.Locator.xpath_selector("//android.view.ViewGroup[@content-desc='tiny-reply-icon']/"
|
self.locator = self.Locator.xpath_selector("//android.view.ViewGroup[@content-desc='cancel-message-reply']/"
|
||||||
"../android.widget.TextView[1]")
|
"..//android.widget.TextView[1]")
|
||||||
|
|
||||||
|
|
||||||
class CancelReplyButton(BaseEditBox):
|
class CancelReplyButton(BaseEditBox):
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB |
|
@ -144,8 +144,8 @@ class PrivacyPolicyLink(BaseButton):
|
||||||
element = self.find_element()
|
element = self.find_element()
|
||||||
location = element.location
|
location = element.location
|
||||||
size = element.size
|
size = element.size
|
||||||
x = int(location['x'] + size['width'] * 0.8)
|
x = int(location['x'] + size['width'] * 0.9)
|
||||||
y = int(location['y'] + size['height'] / 2)
|
y = int(location['y'] + size['height'] * 0.8)
|
||||||
TouchAction(self.driver).tap(None, x, y).perform()
|
TouchAction(self.driver).tap(None, x, y).perform()
|
||||||
self.driver.info('Tap on %s' % self.name)
|
self.driver.info('Tap on %s' % self.name)
|
||||||
return self.navigate()
|
return self.navigate()
|
||||||
|
|
Loading…
Reference in New Issue