Commit 28360d24 authored by Justin Cohen's avatar Justin Cohen Committed by Commit Bot

[ios] Disable more context menu tests on iOS13.

TBR: rohitrao
Bug: 989550
Change-Id: I717c4edcdfccd37ce09a95e270ee6908a400ff10
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1730556
Commit-Queue: Justin Cohen <justincohen@chromium.org>
Auto-Submit: Justin Cohen <justincohen@chromium.org>
Reviewed-by: default avatarMike Dougherty <michaeldo@chromium.org>
Cr-Commit-Position: refs/heads/master@{#683432}
parent 73733459
......@@ -671,6 +671,12 @@ void CloseTabAtIndexAndSync(NSUInteger i) {
// Tests that opening links in a new tab will not evict the source tab.
- (void)testOpenLinkInNewTab {
// TODO(crbug.com/989550) Disable broken context menu tests on Xc11b5.
if (@available(iOS 13, *)) {
if ([ChromeEarlGrey isIPadIdiom]) {
EARL_GREY_TEST_DISABLED(@"Test disabled on iPad.");
}
}
// Create map of canned responses and set up the test HTML server.
std::map<GURL, std::string> responses;
const GURL initialURL =
......
......@@ -581,9 +581,7 @@ void TapSuppressDialogsButton() {
- (void)testShowJavaScriptAfterNewTabAnimation {
// TODO(crbug.com/989550) Disable broken context menu tests on Xc11b5.
if (@available(iOS 13, *)) {
if ([ChromeEarlGrey isIPadIdiom]) {
EARL_GREY_TEST_DISABLED(@"Test disabled on iPad.");
}
EARL_GREY_TEST_DISABLED(@"Test disabled on iOS13.");
}
// Load the test page with a link to kOnLoadAlertURL and long tap on the link.
......
......@@ -176,6 +176,13 @@ bool WaitForDownloadButton() {
// Tests "Open in New Tab" on download link.
- (void)testDownloadInNewTab {
// TODO(crbug.com/989550) Disable broken context menu tests on Xc11b5.
if (@available(iOS 13, *)) {
if ([ChromeEarlGrey isIPadIdiom]) {
EARL_GREY_TEST_DISABLED(@"Test disabled on iPad.");
}
}
[ChromeEarlGrey loadURL:self.testServer->GetURL("/")];
[ChromeEarlGrey waitForWebStateContainingText:"Download"];
......
......@@ -625,6 +625,12 @@ void FocusOmnibox() {
// Verifies that the back/forward buttons are working and are correctly enabled
// during navigations.
- (void)testNavigationButtons {
// TODO(crbug.com/989550) Disable broken context menu tests on Xc11b5.
if (@available(iOS 13, *)) {
if ([ChromeEarlGrey isIPadIdiom]) {
EARL_GREY_TEST_DISABLED(@"Test disabled on iPad.");
}
}
// Setup the server.
self.testServer->RegisterRequestHandler(
base::BindRepeating(&StandardResponse));
......
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