Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(45)

Unified Diff: ios/chrome/browser/context_menu/context_menu_egtest.mm

Issue 2752583004: Add helpers to swipe up and down on the current web view.
Patch Set: more typos! Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ios/chrome/browser/ui/fullscreen_egtest.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/context_menu/context_menu_egtest.mm
diff --git a/ios/chrome/browser/context_menu/context_menu_egtest.mm b/ios/chrome/browser/context_menu/context_menu_egtest.mm
index 923a41ed8126b9f97ce4a1d10439a39cdcad8989..2199db3440abb85e5cd39399956b26356e4477bf 100644
--- a/ios/chrome/browser/context_menu/context_menu_egtest.mm
+++ b/ios/chrome/browser/context_menu/context_menu_egtest.mm
@@ -209,10 +209,7 @@ void SelectTabAtIndexInCurrentMode(NSUInteger index) {
chrome_test_util::AssertMainTabCount(1U);
// Scroll down on the web view to make the link visible.
- [[EarlGrey
- selectElementWithMatcher:WebViewScrollView(
- chrome_test_util::GetCurrentWebState())]
- performAction:grey_swipeFastInDirection(kGREYDirectionUp)];
+ [ChromeEarlGreyUI swipeUpOnWebView];
[[EarlGrey selectElementWithMatcher:chrome_test_util::WebViewContainingText(
kDestinationLinkID)]
assertWithMatcher:grey_notNil()];
@@ -237,10 +234,7 @@ void SelectTabAtIndexInCurrentMode(NSUInteger index) {
// Make the toolbar visible by scrolling up on the web view to select the
// newly opened tab.
- [[EarlGrey
- selectElementWithMatcher:WebViewScrollView(
- chrome_test_util::GetCurrentWebState())]
- performAction:grey_swipeFastInDirection(kGREYDirectionDown)];
+ [ChromeEarlGreyUI swipeDownOnWebView];
chrome_test_util::AssertToolbarVisible();
SelectTabAtIndexInCurrentMode(1U);
« no previous file with comments | « no previous file | ios/chrome/browser/ui/fullscreen_egtest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698