From af028efd00781a9dae4e07f950fe09f33ab1760e Mon Sep 17 00:00:00 2001 From: JonahStanley Date: Wed, 21 Aug 2013 09:04:22 -0400 Subject: [PATCH] Made the lambda statement more resistant to errors Made the statement better pylint fix Accidently left off parameter Removed logout --- cms/djangoapps/contentstore/features/common.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cms/djangoapps/contentstore/features/common.py b/cms/djangoapps/contentstore/features/common.py index 516659fadb..9f6a7e90e1 100644 --- a/cms/djangoapps/contentstore/features/common.py +++ b/cms/djangoapps/contentstore/features/common.py @@ -152,7 +152,8 @@ def log_into_studio( world.log_in(username=uname, password=password, email=email, name=name) # Navigate to the studio dashboard world.visit('/') - world.wait_for(lambda _driver: uname in world.css_find('h2.title')[0].text) + + assert uname in world.css_text('h2.title', max_attempts=15) def create_a_course(): course = world.CourseFactory.create(org='MITx', course='999', display_name='Robot Super Course')