Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9025)

Unified Diff: chrome/test/data/webui/settings/people_page_test.js

Issue 2195793003: MD Settings: add test for managed actionability of people section (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@people-sync-disabled-actionable
Patch Set: tommycli@ review Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/resources/settings/people_page/people_page.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/webui/settings/people_page_test.js
diff --git a/chrome/test/data/webui/settings/people_page_test.js b/chrome/test/data/webui/settings/people_page_test.js
index 916d7bb2c292f406eba972ab4e0d4c4490e7b8b3..424e4be44ca773c3325fb05cf18446feab95f5f6 100644
--- a/chrome/test/data/webui/settings/people_page_test.js
+++ b/chrome/test/data/webui/settings/people_page_test.js
@@ -214,6 +214,33 @@ cr.define('settings_people_page', function() {
assertTrue(activityControls.hidden);
});
});
+
+ test('CustomizeSyncDisabledForManagedSignin', function() {
+ assertFalse(!!peoplePage.$$('#customize-sync'));
+
+ return browserProxy.whenCalled('getSyncStatus').then(function() {
+ cr.webUIListenerCallback('sync-status-changed', {
+ signedIn: true,
+ syncSystemEnabled: true,
+ });
+ Polymer.dom.flush();
+
+ var customizeSync = peoplePage.$$('#customize-sync');
+ assertTrue(!!customizeSync);
+ assertTrue(customizeSync.hasAttribute('actionable'));
+ }).then(function() {
+ cr.webUIListenerCallback('sync-status-changed', {
+ managed: true,
+ signedIn: true,
+ syncSystemEnabled: true,
+ });
+ Polymer.dom.flush();
+
+ var customizeSync = peoplePage.$$('#customize-sync');
+ assertTrue(!!customizeSync);
+ assertFalse(customizeSync.hasAttribute('actionable'));
+ });
+ });
});
}
« no previous file with comments | « chrome/browser/resources/settings/people_page/people_page.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698