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

Unified Diff: functional/netflix.py

Issue 10538096: Fixing Netflix tests due to plugin data storage race condition (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/chrome/test/
Patch Set: Created 8 years, 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: functional/netflix.py
===================================================================
--- functional/netflix.py (revision 141571)
+++ functional/netflix.py (working copy)
@@ -82,6 +82,10 @@
index = 0
for infobar in infobars:
if 'netflix' in infobar['text']:
+ # After storage infobar pops up, clicking the Ok button immediately
+ # returns the Storage error on faster machines like Stumpy/Lumpy so
+ # adding a delay of 1 second here.
+ time.sleep(1)
self._pyauto.PerformActionOnInfobar('accept', infobar_index=index)
return True
index = index + 1
@@ -225,9 +229,8 @@
self.CheckNetflixPlaying(
self.IS_GUEST_MODE_ERROR,
'Netflix player did not return a Guest mode error.')
- # Page contents parsing doesn't work : crosbug.com/27977
- # Uncomment the following line when that bug is fixed.
- # self.assertTrue('Guest Mode Unsupported' in self.GetTabContents())
+ self.assertTrue('Guest Mode Unsupported' in self.GetTabContents(),
+ msg='Guest Mode error is not found on the page.')
if __name__ == '__main__':
« 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