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

Unified Diff: chrome/test/data/webui/md_user_manager/create_profile_tests.js

Issue 1916913010: MD User Manager: latest design change, css refactoring, accessiblity, and bug fixes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@md-user-manager-stylesheets
Patch Set: Created 4 years, 8 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/ui/webui/signin/signin_create_profile_handler.cc ('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/md_user_manager/create_profile_tests.js
diff --git a/chrome/test/data/webui/md_user_manager/create_profile_tests.js b/chrome/test/data/webui/md_user_manager/create_profile_tests.js
index cd5ad3d52e4233c7d135854168e7b788dfa34d5a..f084bef3ab70417edcc651f4372cc79106c1b099 100644
--- a/chrome/test/data/webui/md_user_manager/create_profile_tests.js
+++ b/chrome/test/data/webui/md_user_manager/create_profile_tests.js
@@ -58,7 +58,7 @@ cr.define('user_manager.create_profile_tests', function() {
// The 'learn more' link is visible.
assertTrue(!!createProfileElement.$$('#learn-more'));
- // The dropdown menu is visible only when the checkbox is checked.
+ // The dropdown menu becomes visible when the checkbox is checked.
assertFalse(!!createProfileElement.$$('paper-dropdown-menu'));
// Simulate checking the checkbox.
@@ -378,9 +378,16 @@ cr.define('user_manager.create_profile_tests', function() {
return browserProxy.whenCalled('getSignedInUsers').then(function() {
assertEquals(0, createProfileElement.signedInUsers_.length);
- // '#supervised-user-container' is not present in the DOM.
- var container = createProfileElement.$$('#supervised-user-container');
- assertFalse(!!container);
+ // Simulate checking the checkbox.
+ MockInteractions.tap(createProfileElement.$$('paper-checkbox'));
+ Polymer.dom.flush();
+
+ // The dropdown menu is not visible when there are no signed in users.
+ assertFalse(!!createProfileElement.$$('paper-dropdown-menu'));
+
+ // Instead a message containing a link to the Help Center on how
+ // to sign in to Chrome is displaying.
+ assertTrue(!!createProfileElement.$$('#sign-in-to-chrome'));
});
});
« no previous file with comments | « chrome/browser/ui/webui/signin/signin_create_profile_handler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698