Commit 0e8c98fa authored by Eugene But's avatar Eugene But Committed by Commit Bot

Disable testSucessfullDownloadInIncognito on device.

Bug: 1059320
Change-Id: Ib14a8dd209e277d01b7d2769b2b7ff6da5169f7e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2091937
Auto-Submit: Eugene But <eugenebut@chromium.org>
Reviewed-by: default avatarSergio Collazos <sczs@chromium.org>
Commit-Queue: Sergio Collazos <sczs@chromium.org>
Cr-Commit-Position: refs/heads/master@{#747837}
parent 00f08389
...@@ -134,7 +134,15 @@ bool WaitForOpenInDownloadsButton() { ...@@ -134,7 +134,15 @@ bool WaitForOpenInDownloadsButton() {
// Tests sucessfull download up to the point where "Open in..." button is // Tests sucessfull download up to the point where "Open in..." button is
// presented. EarlGrey does not allow testing "Open in..." dialog, because it // presented. EarlGrey does not allow testing "Open in..." dialog, because it
// is run in a separate process. Performs download in Incognito. // is run in a separate process. Performs download in Incognito.
- (void)testSucessfullDownloadInIncognito { #if !TARGET_IPHONE_SIMULATOR
// TODO(crbug.com/1059320): Test consistently failing on device.
#define MAYBE_testSucessfullDownloadInIncognito \
DISABLED_testSucessfullDownloadInIncognito
#else
#define MAYBE_testSucessfullDownloadInIncognito \
testSucessfullDownloadInIncognito
#endif
- (void)MAYBE_testSucessfullDownloadInIncognito {
[ChromeEarlGrey openNewIncognitoTab]; [ChromeEarlGrey openNewIncognitoTab];
[ChromeEarlGrey loadURL:self.testServer->GetURL("/")]; [ChromeEarlGrey loadURL:self.testServer->GetURL("/")];
[ChromeEarlGrey waitForWebStateContainingText:"Download"]; [ChromeEarlGrey waitForWebStateContainingText:"Download"];
......
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