From b2fee69c089f908be742b9c6b77e4403904a6fb1 Mon Sep 17 00:00:00 2001 From: Sarina Canelake Date: Fri, 13 Dec 2013 12:21:10 -0500 Subject: [PATCH] Fix acceptance test to wait for text area to be populated --- lms/djangoapps/instructor/features/data_download.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lms/djangoapps/instructor/features/data_download.py b/lms/djangoapps/instructor/features/data_download.py index df085a4f1b9e..966dfd348cb7 100644 --- a/lms/djangoapps/instructor/features/data_download.py +++ b/lms/djangoapps/instructor/features/data_download.py @@ -15,6 +15,10 @@ def find_student_profile_table(step): # pylint: disable=unused-argument # Find the grading configuration display world.wait_for_visible('#data-student-profiles-table') + + # Wait for the data table to be populated + world.wait_for(lambda _: world.css_text('#data-student-profiles-table') not in [u'', u'Loading...']) + if world.role == 'instructor': expected_data = [ world.instructor.username,