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

Side by Side Diff: chrome/test/functional/chromeos_retail_mode.py

Issue 10834041: [cros] Retail mode test should not attempt to skip OOBE (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import pyauto_functional # Must come before pyauto (and thus, policy_base). 5 import pyauto_functional # Must come before pyauto (and thus, policy_base).
6 import policy_base 6 import policy_base
7 7
8 8
9 class ChromeosRetailMode(policy_base.PolicyTestBase): 9 class ChromeosRetailMode(policy_base.PolicyTestBase):
10 """Tests for retail mode.""" 10 """Tests for retail mode."""
11 11
12 # The inherited setUp() method fakes enterprise enrollment. Setting the mode 12 # The inherited setUp() method fakes enterprise enrollment. Setting the mode
13 # to 'kiosk' causes enrollment into retail mode instead of the default 13 # to 'kiosk' causes enrollment into retail mode instead of the default
14 # enterprise mode. 14 # enterprise mode.
15 mode = 'kiosk' 15 mode = 'kiosk'
16 machine_id = 'KIOSK' 16 machine_id = 'KIOSK'
17 17
18 def ShouldOOBESkipToLogin(self):
19 # There's no OOBE to skip.
20 return False
21
18 def _CheckOnRetailModeLoginScreen(self): 22 def _CheckOnRetailModeLoginScreen(self):
19 """Checks that the retail mode login screen is visible.""" 23 """Checks that the retail mode login screen is visible."""
20 return self.ExecuteJavascriptInOOBEWebUI( 24 return self.ExecuteJavascriptInOOBEWebUI(
21 """window.domAutomationController.send( 25 """window.domAutomationController.send(
22 !!document.getElementById('demo-login-text')); 26 !!document.getElementById('demo-login-text'));
23 """) 27 """)
24 28
25 def Login(self): 29 def Login(self):
26 """Login to retail mode by simulating a mouse click.""" 30 """Login to retail mode by simulating a mouse click."""
27 self.ExecuteJavascriptInOOBEWebUI( 31 self.ExecuteJavascriptInOOBEWebUI(
(...skipping 10 matching lines...) Expand all
38 msg='Expected to be on the retail mode login screen.') 42 msg='Expected to be on the retail mode login screen.')
39 43
40 self.Login() 44 self.Login()
41 self.assertTrue(self.GetLoginInfo()['is_logged_in'], 45 self.assertTrue(self.GetLoginInfo()['is_logged_in'],
42 msg='Expected to be logged in.') 46 msg='Expected to be logged in.')
43 self.Logout() 47 self.Logout()
44 48
45 49
46 if __name__ == '__main__': 50 if __name__ == '__main__':
47 pyauto_functional.Main() 51 pyauto_functional.Main()
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698