| Index: ios/chrome/browser/ui/tabs/tab_strip_egtest.mm
|
| diff --git a/ios/chrome/browser/ui/tabs/tab_strip_egtest.mm b/ios/chrome/browser/ui/tabs/tab_strip_egtest.mm
|
| index e6cb58c436c3d4caa60c052e8bce2ddc3ee044ae..c22b8cc7a80130335b02b0961f504463600f76d5 100644
|
| --- a/ios/chrome/browser/ui/tabs/tab_strip_egtest.mm
|
| +++ b/ios/chrome/browser/ui/tabs/tab_strip_egtest.mm
|
| @@ -55,50 +55,4 @@
|
| }
|
| }
|
|
|
| -// Tests switching the mode using the mode toggle.
|
| -- (void)testTabStripSwitchModes {
|
| - // The toggle button only exists on iPad, and when the Tablet Tab Switcher
|
| - // isn't enabled.
|
| - if (IsCompact() || experimental_flags::IsTabSwitcherEnabled()) {
|
| - return;
|
| - }
|
| -
|
| - // Open two normal tabs.
|
| - [ChromeEarlGreyUI openNewTab];
|
| - [ChromeEarlGreyUI openNewTab];
|
| -
|
| - // Open two incognito tabs.
|
| - [ChromeEarlGreyUI openNewIncognitoTab];
|
| - [ChromeEarlGreyUI openNewIncognitoTab];
|
| -
|
| - // Switch back to normal mode.
|
| - [[EarlGrey selectElementWithMatcher:
|
| - grey_accessibilityLabel(l10n_util::GetNSString(
|
| - IDS_IOS_SWITCH_BROWSER_MODE_LEAVE_INCOGNITO))]
|
| - performAction:grey_tap()];
|
| - GREYAssertFalse(chrome_test_util::IsIncognitoMode(),
|
| - @"Current tab is incognito.");
|
| -
|
| - // Switch back to incognito mode.
|
| - [[EarlGrey selectElementWithMatcher:
|
| - grey_accessibilityLabel(l10n_util::GetNSString(
|
| - IDS_IOS_SWITCH_BROWSER_MODE_ENTER_INCOGNITO))]
|
| - performAction:grey_tap()];
|
| - GREYAssertTrue(chrome_test_util::IsIncognitoMode(),
|
| - @"Current tab is not incognito.");
|
| -
|
| - // Close both incognito tabs.
|
| - chrome_test_util::CloseAllTabsInCurrentMode();
|
| -
|
| - // We should be in normal mode.
|
| - GREYAssertFalse(chrome_test_util::IsIncognitoMode(),
|
| - @"Current tab is incognito.");
|
| -
|
| - // There should be no incognito switch.
|
| - [[EarlGrey selectElementWithMatcher:
|
| - grey_accessibilityID(l10n_util::GetNSString(
|
| - IDS_IOS_SWITCH_BROWSER_MODE_ENTER_INCOGNITO))]
|
| - assertWithMatcher:grey_notVisible()];
|
| -}
|
| -
|
| @end
|
|
|