From 923bfeb6948e6e4de14c0800b3be3ff667cefd4d Mon Sep 17 00:00:00 2001 From: Michal Wieja <142460464+mwieja@users.noreply.github.com> Date: Wed, 25 Oct 2023 23:16:58 -0400 Subject: [PATCH] Fixed E2E test DiscoverSheetFlow (#5160) --- e2e/discoverSheetFlow.spec.js | 2 +- src/navigation/SwipeNavigator.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/e2e/discoverSheetFlow.spec.js b/e2e/discoverSheetFlow.spec.js index 188fd007316..801c20d63bb 100644 --- a/e2e/discoverSheetFlow.spec.js +++ b/e2e/discoverSheetFlow.spec.js @@ -51,7 +51,7 @@ describe('Discover Screen Flow', () => { }); it('Should navigate to the Profile screen after swiping left', async () => { - await Helpers.swipe('discover-home', 'left', 'slow'); + await Helpers.waitAndTap('tab-bar-icon-ProfileScreen'); await Helpers.checkIfVisible('profile-screen'); }); diff --git a/src/navigation/SwipeNavigator.js b/src/navigation/SwipeNavigator.js index 0debdf4af8b..a109ff3caa4 100644 --- a/src/navigation/SwipeNavigator.js +++ b/src/navigation/SwipeNavigator.js @@ -283,6 +283,7 @@ const TabBar = ({ width="full" justifyContent="flex-start" paddingTop="6px" + testID={`tab-bar-icon-${route.name}`} >