Address doc review
This commit is contained in:
committed by
Diana Huang
parent
67fdca1847
commit
84f3c33df7
@@ -717,9 +717,9 @@ class DataDownloadPage(PageObject):
|
||||
return self.q(css='input[name=calculate-grades-csv]')
|
||||
|
||||
@property
|
||||
def generate_weighted_problem_grade_report_button(self):
|
||||
def generate_problem_grade_report_button(self):
|
||||
"""
|
||||
Returns the "Generate Weighted Problem Grade Report" button.
|
||||
Returns the "Generate Problem Grade Report" button.
|
||||
"""
|
||||
return self.q(css='input[name=problem-grade-report]')
|
||||
|
||||
|
||||
@@ -387,20 +387,20 @@ class DataDownloadsTest(BaseInstructorDashboardTest):
|
||||
self.verify_report_requested_event(report_name)
|
||||
self.verify_report_download(report_name)
|
||||
|
||||
def test_weighted_problem_grade_report_download(self):
|
||||
def test_problem_grade_report_download(self):
|
||||
"""
|
||||
Scenario: Verify that an instructor can download a weighted problem grade report
|
||||
Scenario: Verify that an instructor can download a problem grade report
|
||||
|
||||
Given that I am an instructor
|
||||
And I visit the instructor dashboard's "Data Downloads" tab
|
||||
And I click on the "Generate Weighted Problem Grade Report" button
|
||||
And I click on the "Generate Problem Grade Report" button
|
||||
Then a report should be generated
|
||||
And a report requested event should be emitted
|
||||
When I click on the report
|
||||
Then a report downloaded event should be emitted
|
||||
"""
|
||||
report_name = u"problem_grade_report"
|
||||
self.data_download_section.generate_weighted_problem_grade_report_button.click()
|
||||
self.data_download_section.generate_problem_grade_report_button.click()
|
||||
self.data_download_section.wait_for_available_report()
|
||||
self.verify_report_requested_event(report_name)
|
||||
self.verify_report_download(report_name)
|
||||
|
||||
Reference in New Issue
Block a user