From ae13cd0ad981ff5bd0da84d65e342c60d73760c1 Mon Sep 17 00:00:00 2001 From: Churikova Tetiana Date: Tue, 7 Jan 2020 13:33:47 +0100 Subject: [PATCH] Align e2e with new translations Signed-off-by: Churikova Tetiana --- .../tests/atomic/account_management/test_create_account.py | 4 ++-- test/appium/tests/atomic/account_management/test_profile.py | 2 +- .../atomic/account_management/test_wallet_management.py | 4 ++-- .../appium/tests/atomic/dapps_and_browsing/test_browsing.py | 2 +- test/appium/views/base_view.py | 2 +- test/appium/views/profile_view.py | 2 +- test/appium/views/wallet_view.py | 6 +++--- 7 files changed, 11 insertions(+), 11 deletions(-) diff --git a/test/appium/tests/atomic/account_management/test_create_account.py b/test/appium/tests/atomic/account_management/test_create_account.py index 6ddfcbe5e1..1b14e5221d 100644 --- a/test/appium/tests/atomic/account_management/test_create_account.py +++ b/test/appium/tests/atomic/account_management/test_create_account.py @@ -52,8 +52,8 @@ class TestCreateAccount(SingleDeviceTestCase): sign_in.next_button.click() sign_in.lets_go_button.click() home_view = sign_in.get_home_view() - texts = ['Chat and transact privately with your friends.', - 'Follow your interests in one of the many public chats.', + texts = ['Chat and transact privately with friends', + 'Jump into a public chat and meet new people', '#status'] for text in texts: if not home_view.element_by_text(text).is_element_displayed(): diff --git a/test/appium/tests/atomic/account_management/test_profile.py b/test/appium/tests/atomic/account_management/test_profile.py index 22771c083c..1795b4ce19 100644 --- a/test/appium/tests/atomic/account_management/test_profile.py +++ b/test/appium/tests/atomic/account_management/test_profile.py @@ -33,7 +33,7 @@ class TestProfileSingleDevice(SingleDeviceTestCase): sign_in_view.create_user() sign_in_view.just_fyi("Enable mobile network to see popup and enable syncing") sign_in_view.toggle_mobile_data() - if not sign_in_view.element_by_text_part("Sync using Mobile data").is_element_displayed(): + if not sign_in_view.element_by_text_part("Sync using mobile data?").is_element_displayed(): self.driver.fail('No popup about Mobile data is shown') sign_in_view.wait_for_element_starts_with_text('Continue syncing').click() 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 1427b17b5e..aba0257baa 100644 --- a/test/appium/tests/atomic/account_management/test_wallet_management.py +++ b/test/appium/tests/atomic/account_management/test_wallet_management.py @@ -17,8 +17,8 @@ class TestWalletManagement(SingleDeviceTestCase): sign_in = SignInView(self.driver) sign_in.recover_access(transaction_senders['A']['passphrase']) wallet = sign_in.wallet_button.click() - texts = ['This is your signing phrase', 'You should see these 3 words before signing each transaction', - 'If you see a different combo, cancel the transaction and logout.'] + texts = ['This is your signing phrase', 'These three words prove that a transaction is safe.', + "You should see these words before signing each transaction. If you don't, cancel and sign out."] for text in texts: if not wallet.element_by_text_part(text).is_element_displayed(): self.errors.append("'%s' text is not displayed" % text) diff --git a/test/appium/tests/atomic/dapps_and_browsing/test_browsing.py b/test/appium/tests/atomic/dapps_and_browsing/test_browsing.py index 8c686c655a..54beda4572 100644 --- a/test/appium/tests/atomic/dapps_and_browsing/test_browsing.py +++ b/test/appium/tests/atomic/dapps_and_browsing/test_browsing.py @@ -83,7 +83,7 @@ class TestBrowsing(SingleDeviceTestCase): dapp_view.remove_browser_entry_long_press('Status - Private', clear_all=True) home_view.relogin() home_view.dapp_tab_button.click() - if not dapp_view.element_by_text('Browsed websites will appear here.').is_element_displayed(): + if not dapp_view.element_by_text('Browser history will appear here').is_element_displayed(): self.errors.append('Browser history is not empty') @marks.testrail_id(5320) diff --git a/test/appium/views/base_view.py b/test/appium/views/base_view.py index e4bdfafcd8..5bdaba637c 100644 --- a/test/appium/views/base_view.py +++ b/test/appium/views/base_view.py @@ -300,7 +300,7 @@ class OpenInStatusButton(BaseButton): class OkGotItButton(BaseButton): def __init__(self,driver): super(OkGotItButton, self).__init__(driver) - self.locator = self.Locator.xpath_selector("//*[@text='OK, got it']") + self.locator = self.Locator.xpath_selector("//*[@text='OKay, got it']") def click(self): self.wait_for_element().click() diff --git a/test/appium/views/profile_view.py b/test/appium/views/profile_view.py index 85242ff56a..7af46f0fdd 100644 --- a/test/appium/views/profile_view.py +++ b/test/appium/views/profile_view.py @@ -197,7 +197,7 @@ class OkContinueButton(BaseButton): def __init__(self, driver): super(OkContinueButton, self).__init__(driver) - self.locator = self.Locator.xpath_selector("//*[@text='Ok, continue']") + self.locator = self.Locator.xpath_selector("//*[@text='Okay, continue']") class RecoveryPhraseTable(BaseText): diff --git a/test/appium/views/wallet_view.py b/test/appium/views/wallet_view.py index 9d7c8a2a72..447b98ae17 100644 --- a/test/appium/views/wallet_view.py +++ b/test/appium/views/wallet_view.py @@ -103,7 +103,7 @@ class SetUpButton(BaseButton): class SetCurrencyButton(BaseButton): def __init__(self, driver): super(SetCurrencyButton, self).__init__(driver) - self.locator = self.Locator.text_selector("Set currency") + self.locator = self.Locator.text_selector("Set default currency") class SignInPhraseText(BaseText): @@ -124,7 +124,7 @@ class SignInPhraseText(BaseText): class RemindMeLaterButton(BaseButton): def __init__(self, driver): super(RemindMeLaterButton, self).__init__(driver) - self.locator = self.Locator.xpath_selector("//*[@text='Remind me later']") + self.locator = self.Locator.xpath_selector("//*[@text='Show me this again']") class AssetTextElement(BaseText): @@ -194,7 +194,7 @@ class ViewInCryptoKittiesButton(BaseButton): class BackupRecoveryPhrase(BaseButton): def __init__(self, driver): super(BackupRecoveryPhrase, self).__init__(driver) - self.locator = self.Locator.text_selector('Backup your seed phrase') + self.locator = self.Locator.text_selector('Back up your seed phrase') def navigate(self): from views.profile_view import ProfileView