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

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: 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..c45e2fc4cfcce1ebe3491d056121189f01ba226f 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('ManagedSyncDisabled', function() {
tommycli 2016/07/29 19:25:22 Name instead: CustomizeSync ? Or CustomizeSyncDisa
Dan Beam 2016/07/29 19:27:41 Done.
+ 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