diff options
author | dyu@chromium.org <dyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-05 01:10:09 +0000 |
---|---|---|
committer | dyu@chromium.org <dyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-05 01:10:09 +0000 |
commit | 81ed3149a45b5998a3d6cef232ccae6699613d63 (patch) | |
tree | 017f8188077484fea9572853d5fb54b887f6895a /chrome | |
parent | 26234cd563687a8eb7b5675cf8ba8a5a5ec5b5a5 (diff) | |
download | chromium_src-81ed3149a45b5998a3d6cef232ccae6699613d63.zip chromium_src-81ed3149a45b5998a3d6cef232ccae6699613d63.tar.gz chromium_src-81ed3149a45b5998a3d6cef232ccae6699613d63.tar.bz2 |
Fixed the race condition issue for testDisplayLineItemForEntriesWithNoCCNum
by refreshing the page after adding the data through the DOMUI.
TEST=none
BUG=80682
Review URL: http://codereview.chromium.org/6944002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84181 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rwxr-xr-x | chrome/test/webdriver/chromedriver_tests.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/chrome/test/webdriver/chromedriver_tests.py b/chrome/test/webdriver/chromedriver_tests.py index 069ed64..be84ac4 100755 --- a/chrome/test/webdriver/chromedriver_tests.py +++ b/chrome/test/webdriver/chromedriver_tests.py @@ -534,10 +534,12 @@ class AutofillTest(unittest.TestCase): query_year).select() driver.find_element_by_id( 'autofill-edit-credit-card-apply-button').click() - list_entry = driver.find_element_by_class_name( - 'autofill-list-item') + # Refresh the page to ensure the UI is up-to-date. + driver.refresh() + list_entry = driver.find_element_by_class_name('autofill-list-item') self.assertTrue(list_entry.is_displayed) - self.assertEqual(list_entry.text, creditcard_data['CREDIT_CARD_NAME'], + self.assertEqual(list_entry.text, + creditcard_data['CREDIT_CARD_NAME'], 'Saved CC line item not same as what was entered.') |