Commit 78b9be0c authored by gambard's avatar gambard Committed by Commit bot

Test accessibility of Reading List

BUG=none

Review-Url: https://codereview.chromium.org/2610923010
Cr-Commit-Position: refs/heads/master@{#441910}
parent c5f4d723
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
#import "ios/chrome/browser/ui/reading_list/reading_list_collection_view_item.h" #import "ios/chrome/browser/ui/reading_list/reading_list_collection_view_item.h"
#include "ios/chrome/grit/ios_strings.h" #include "ios/chrome/grit/ios_strings.h"
#import "ios/chrome/test/app/chrome_test_util.h" #import "ios/chrome/test/app/chrome_test_util.h"
#import "ios/chrome/test/earl_grey/accessibility_util.h"
#import "ios/chrome/test/earl_grey/chrome_earl_grey.h" #import "ios/chrome/test/earl_grey/chrome_earl_grey.h"
#import "ios/chrome/test/earl_grey/chrome_earl_grey_ui.h" #import "ios/chrome/test/earl_grey/chrome_earl_grey_ui.h"
#import "ios/chrome/test/earl_grey/chrome_matchers.h" #import "ios/chrome/test/earl_grey/chrome_matchers.h"
...@@ -178,6 +179,15 @@ size_t ModelReadSize(ReadingListModel* model) { ...@@ -178,6 +179,15 @@ size_t ModelReadSize(ReadingListModel* model) {
model->RemoveEntryByURL(url); model->RemoveEntryByURL(url);
} }
// Tests that the Reading List view is accessible.
- (void)testAccessibility {
AddEntriesAndEnterEdit();
// In edit mode.
chrome_test_util::VerifyAccessibilityForCurrentScreen();
TapButtonWithID(IDS_IOS_READING_LIST_CANCEL_BUTTON);
chrome_test_util::VerifyAccessibilityForCurrentScreen();
}
// Tests that sharing a web page to the Reading List results in a snackbar // Tests that sharing a web page to the Reading List results in a snackbar
// appearing, and that the Reading List entry is present in the Reading List. // appearing, and that the Reading List entry is present in the Reading List.
- (void)testSavingToReadingList { - (void)testSavingToReadingList {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment