| 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();
|
| }
|
|
|
|
|