diff --git a/e2e/pages/Drawer/Browser.js b/e2e/pages/Drawer/Browser.js index cc27c93b15a..117dc72e893 100644 --- a/e2e/pages/Drawer/Browser.js +++ b/e2e/pages/Drawer/Browser.js @@ -97,6 +97,10 @@ export class Browser { await TestHelpers.checkIfNotVisible(ADD_BOOKMARKS_SCREEN_ID); } + static async isBrowserFavoriteVisible(browserFavoriteName) { + await TestHelpers.checkIfElementWithTextIsVisible(browserFavoriteName); + } + static async isBackToSafetyButtonVisible() { await TestHelpers.checkIfElementWithTextIsVisible('Back to safety'); } diff --git a/e2e/pages/SendView.js b/e2e/pages/SendView.js index 90983be0364..7bd0db8770e 100644 --- a/e2e/pages/SendView.js +++ b/e2e/pages/SendView.js @@ -18,11 +18,7 @@ export default class SendView { await TestHelpers.waitAndTap(NEXT_BUTTON_ID); } static async inputAddress(address) { - if (device.getPlatform() === 'android') { - await TestHelpers.replaceTextInField(ADDRESS_INPUT_BOX_ID, address); - } else { - await TestHelpers.typeTextAndHideKeyboard(ADDRESS_INPUT_BOX_ID, address); - } + await TestHelpers.replaceTextInField(ADDRESS_INPUT_BOX_ID, address); } static async tapAndLongPress() { diff --git a/e2e/specs/browser-tests.spec.js b/e2e/specs/browser-tests.spec.js index 84fc3ae389d..5b2d8a7f148 100644 --- a/e2e/specs/browser-tests.spec.js +++ b/e2e/specs/browser-tests.spec.js @@ -140,18 +140,16 @@ describe('Browser Tests', () => { await Browser.isAddBookmarkScreenNotVisible(); // Add bookmark screen should not be visible }); - it('should go back home', async () => { + it('tap on home button', async () => { // Tap on home on bottom navbar await Browser.tapHomeButton(); // Wait for page to load await TestHelpers.delay(1000); await Browser.isVisible(); }); - it('should navigate to favorites', async () => { - if (device.getPlatform() === 'ios') { - await Browser.tapOptionsButton(); - await Browser.tapOpenTabButton(); + it('should tap on Uniswap in favorites', async () => { + if (device.getPlatform() === 'ios') { // Tapping on favourite tap await TestHelpers.tapAtPoint(BROWSER_SCREEN_ID, { x: 174, y: 281 }); await TestHelpers.delay(1500);