Commit 42e1f2de authored by Tina Wang's avatar Tina Wang Committed by Commit Bot

[ios] Add EG test for 3-dot menu enterprise info item

Bug: 1113353
Change-Id: Ib14715fd050517e6099b0532bb31b829065a8951
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2416938Reviewed-by: default avatarMike Dougherty <michaeldo@chromium.org>
Commit-Queue: Tina Wang <tinazwang@chromium.org>
Cr-Commit-Position: refs/heads/master@{#808530}
parent 7befc533
......@@ -232,4 +232,21 @@ id<GREYMatcher> ToolsMenuTranslateButton() {
SetPolicy(true, policy::key::kTranslateEnabled);
}
// Test whether the managed item will be shown if a policy is set.
- (void)testPopupMenuItem {
// Setup a machine level policy.
SetPolicy(false, policy::key::kTranslateEnabled);
// Open the menu and click on the item.
[ChromeEarlGreyUI openToolsMenu];
[ChromeEarlGreyUI
tapToolsMenuButton:grey_accessibilityID(kTextMenuEnterpriseInfo)];
[ChromeEarlGrey waitForPageToFinishLoading];
// Check the navigation.
[[EarlGrey selectElementWithMatcher:chrome_test_util::OmniboxText(
"chrome://management")]
assertWithMatcher:grey_notNil()];
}
@end
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