Commit db19268d authored by edchin's avatar edchin Committed by Commit Bot

[ios] Add eg2 tests for managed bookmarks

This CL adds eg2 tests for changes in crrev.com/c/2140953.

The test fixture in this CL must enable certain command-line flags
to be able to run the managed bookmarks enterprise policy.

The eg2 tests for managed bookmarks include testing:
- disabling long-press for managed items (URLs and folders)
- disabling swipe-to-delete for managed items (URLs and folders)
- disabling new folder context menu button when inside a managed folder
- disabling edit context menu button when inside a managed folder

Bug: 1065187
Change-Id: Ide92b87f03585d186b133f192d1e39a4fbbaa1cd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2145260Reviewed-by: default avatarSergio Collazos <sczs@chromium.org>
Commit-Queue: edchin <edchin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#758848}
parent 3fb4bda5
......@@ -99,13 +99,12 @@ source_set("eg2_tests") {
testonly = true
sources = [
"policy_app_interface.h",
"policy_app_interface_stub.mm",
"policy_egtest.mm",
"policy_platform_provider_egtest.mm",
]
deps = [
":eg_test_support+eg2",
"//base",
"//components/password_manager/core/common",
"//components/policy:generated",
......@@ -141,3 +140,20 @@ source_set("eg_app_support+eg2") {
]
libs = [ "Foundation.framework" ]
}
source_set("eg_test_support+eg2") {
defines = [ "CHROME_EARL_GREY_2" ]
configs += [
"//build/config/compiler:enable_arc",
"//build/config/ios:xctest_config",
]
testonly = true
sources = [
"policy_app_interface.h",
"policy_app_interface_stub.mm",
]
deps = [
"//ios/testing/earl_grey:eg_test_support+eg2",
"//ios/third_party/earl_grey2:test_lib",
]
}
......@@ -246,13 +246,17 @@ source_set("eg2_tests") {
"bookmarks_folders_egtest.mm",
"bookmarks_promo_egtest.mm",
"bookmarks_search_egtest.mm",
"managed_bookmarks_egtest.mm",
]
deps = [
":bookmarks_ui",
":eg_test_support+eg2",
"//base/test:test_support",
"//components/policy:generated",
"//components/strings",
"//ios/chrome/app/strings",
"//ios/chrome/browser:utils",
"//ios/chrome/browser/policy:eg_test_support+eg2",
"//ios/chrome/browser/ui/authentication:eg_test_support+eg2",
"//ios/chrome/browser/ui/popup_menu:constants",
"//ios/chrome/browser/ui/table_view:feature_flags",
......
This diff is collapsed.
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