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

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

Issue 9696018: Update pyauto tests to work with the uber page. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: rebase Created 8 years, 9 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
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2011 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 import pyauto_functional # Must be imported before pyauto 6 import pyauto_functional # Must be imported before pyauto
7 import pyauto 7 import pyauto
8 import test_utils 8 import test_utils
9 9
10 10
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 def testPersonalStuffSyncSection(self): 55 def testPersonalStuffSyncSection(self):
56 """Verify the Sync section in Preferences before and after sync.""" 56 """Verify the Sync section in Preferences before and after sync."""
57 creds = self.GetPrivateInfo()['test_google_account'] 57 creds = self.GetPrivateInfo()['test_google_account']
58 username = creds['username'] 58 username = creds['username']
59 password = creds['password'] 59 password = creds['password']
60 default_text = 'Keep everything synced or choose what data to sync' 60 default_text = 'Keep everything synced or choose what data to sync'
61 set_up_button = 'Set Up Sync' 61 set_up_button = 'Set Up Sync'
62 customize_button = 'Customize' 62 customize_button = 'Customize'
63 stop_button = 'Stop Sync' 63 stop_button = 'Stop Sync'
64 signed_in_text = 'Google Dashboard' 64 signed_in_text = 'Google Dashboard'
65 chrome_personal_stuff_url = 'chrome://settings/personal' 65 chrome_settings_url = 'chrome://settings-frame'
66 new_timeout = pyauto.PyUITest.ActionTimeoutChanger(self, 66 new_timeout = pyauto.PyUITest.ActionTimeoutChanger(self,
67 2 * 60 * 1000) # 2 min. 67 2 * 60 * 1000) # 2 min.
68 self.AppendTab(pyauto.GURL(chrome_personal_stuff_url)) 68 self.AppendTab(pyauto.GURL(chrome_settings_url))
69 self.assertTrue(self.WaitUntil( 69 self.assertTrue(self.WaitUntil(
70 lambda: self.FindInPage(default_text, tab_index=1)['match_count'], 70 lambda: self.FindInPage(default_text, tab_index=1)['match_count'],
71 expect_retval=1), 71 expect_retval=1),
72 'No default sync text.') 72 'No default sync text.')
73 self.assertTrue(self.WaitUntil( 73 self.assertTrue(self.WaitUntil(
74 lambda: self.FindInPage(set_up_button, tab_index=1)['match_count'], 74 lambda: self.FindInPage(set_up_button, tab_index=1)['match_count'],
75 expect_retval=1), 75 expect_retval=1),
76 'No set up sync button.') 76 'No set up sync button.')
77 77
78 self.assertTrue(self.SignInToSync(username, password)) 78 self.assertTrue(self.SignInToSync(username, password))
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 217
218 # Verify browser 2 does not contain credit card info. 218 # Verify browser 2 does not contain credit card info.
219 browser2_profile = browser2.GetAutofillProfile() 219 browser2_profile = browser2.GetAutofillProfile()
220 num_cc_profiles = len(browser2_profile['credit_cards']) 220 num_cc_profiles = len(browser2_profile['credit_cards'])
221 self.assertEqual(0, num_cc_profiles, 221 self.assertEqual(0, num_cc_profiles,
222 msg='Browser 2 unexpectedly contains credit card info.') 222 msg='Browser 2 unexpectedly contains credit card info.')
223 223
224 224
225 if __name__ == '__main__': 225 if __name__ == '__main__':
226 pyauto_functional.Main() 226 pyauto_functional.Main()
OLDNEW
« no previous file with comments | « chrome/test/functional/special_tabs.py ('k') | chrome/test/functional/webdriver_pages/settings.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698