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

Unified Diff: ios/showcase/content_suggestions/sc_content_suggestions_egtest.mm

Issue 2769063005: Add CSDataSource in showcase (Closed)
Patch Set: Address comments Created 3 years, 7 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
Index: ios/showcase/content_suggestions/sc_content_suggestions_egtest.mm
diff --git a/ios/showcase/content_suggestions/sc_content_suggestions_egtest.mm b/ios/showcase/content_suggestions/sc_content_suggestions_egtest.mm
index 369a0a12f205c74f7ac298bcd3afb1cfb6b99033..77f15e9f0f14db93d1ef2c95efd289cfb8059f15 100644
--- a/ios/showcase/content_suggestions/sc_content_suggestions_egtest.mm
+++ b/ios/showcase/content_suggestions/sc_content_suggestions_egtest.mm
@@ -4,6 +4,9 @@
#import <EarlGrey/EarlGrey.h>
+#include "components/strings/grit/components_strings.h"
+#include "ios/chrome/grit/ios_strings.h"
+#import "ios/chrome/test/earl_grey/chrome_matchers.h"
#import "ios/showcase/test/showcase_eg_utils.h"
#import "ios/showcase/test/showcase_test_case.h"
@@ -20,6 +23,14 @@
// Tests launching ContentSuggestionsViewController.
- (void)testLaunch {
showcase_utils::Open(@"ContentSuggestionsViewController");
+ [[EarlGrey
+ selectElementWithMatcher:chrome_test_util::ButtonWithAccessibilityLabelId(
+ IDS_IOS_CONTENT_SUGGESTIONS_FOOTER_TITLE)]
+ assertWithMatcher:grey_interactable()];
+ [[EarlGrey selectElementWithMatcher:
+ chrome_test_util::StaticTextWithAccessibilityLabelId(
+ IDS_NTP_ARTICLE_SUGGESTIONS_SECTION_HEADER)]
+ assertWithMatcher:grey_sufficientlyVisible()];
showcase_utils::Close();
}

Powered by Google App Engine
This is Rietveld 408576698