'Scenario: Verify that an instructor can download a grade report
Given that I am an instructor
And I visit the instructor dashboard\'s "Data Downloads" tab
And I click on the "Generate 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'

def test_grade_report_download(self):

    report_name = u'grade_report'
    self.data_download_section.generate_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)
