From abeaaa42189cf0bbb645c762dacda138e1efcdd6 Mon Sep 17 00:00:00 2001 From: Serhy Date: Tue, 7 May 2019 18:21:30 +0300 Subject: [PATCH] Enable TX history view test on PR level Signed-off-by: Serhy --- .../account_management/test_wallet_management.py | 2 +- test/appium/views/base_view.py | 2 +- test/appium/views/web_views/status_test_dapp.py | 10 +++++++++- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/test/appium/tests/atomic/account_management/test_wallet_management.py b/test/appium/tests/atomic/account_management/test_wallet_management.py index 5487729fc7..1366d31033 100644 --- a/test/appium/tests/atomic/account_management/test_wallet_management.py +++ b/test/appium/tests/atomic/account_management/test_wallet_management.py @@ -41,7 +41,7 @@ class TestWalletManagement(SingleDeviceTestCase): self.verify_no_errors() @marks.testrail_id(5384) - @marks.high + @marks.critical def test_open_transaction_on_etherscan(self): user = wallet_users['A'] sign_in_view = SignInView(self.driver) diff --git a/test/appium/views/base_view.py b/test/appium/views/base_view.py index ce961948ee..2b864a7103 100644 --- a/test/appium/views/base_view.py +++ b/test/appium/views/base_view.py @@ -281,7 +281,7 @@ class OpenInStatusButton(BaseButton): self.wait_for_visibility_of_element() # 'Open in Status' button already in DOM but need to scroll down so that click action works - self.driver.swipe(500, 500, 500, 100) + self.driver.swipe(500, 500, 500, 200) self.driver.info('Tap on %s' % self.name) self.wait_for_element().click() diff --git a/test/appium/views/web_views/status_test_dapp.py b/test/appium/views/web_views/status_test_dapp.py index 18b5120218..4bc1261a9c 100644 --- a/test/appium/views/web_views/status_test_dapp.py +++ b/test/appium/views/web_views/status_test_dapp.py @@ -58,12 +58,17 @@ class TransactionsButton(BaseButton): class SendTwoTxOneByOneButton(BaseButton): def __init__(self, driver): super(TransactionsButton.SendTwoTxOneByOneButton, self).__init__(driver) - self.locator = self.Locator.text_selector('Send two Txs, one after another, 0.00001 and 0.00002 ETH') + self.locator = self.Locator.webview_selector('Send two Txs, one after another, 0.00001 and 0.00002 ETH') def navigate(self): from views.send_transaction_view import SendTransactionView return SendTransactionView(self.driver) + def click(self): + self.driver.swipe(500, 1000, 500, 800) + self.find_element().click() + return self.navigate() + class SendTwoTxInBatchButton(BaseButton): def __init__(self, driver): super(TransactionsButton.SendTwoTxInBatchButton, self).__init__(driver) @@ -90,6 +95,9 @@ class StatusAPIButton(BaseButton): super(StatusAPIButton.RequestContactCodeButton, self).__init__(driver) self.locator = self.Locator.text_part_selector('Request contact code') + def click(self): + self.wait_for_visibility_of_element().click() + class SendOneTransactionInBatchButton(BaseButton): def __init__(self, driver):