'Scenario: On the Certificates tab of the Instructor Dashboard, Generate Certificates button is visible.
Given that I am on the Certificates tab on the Instructor Dashboard
And the instructor-generation feature flag has been enabled
Then I see a \'Generate Certificates\' button
And when I click on the \'Generate Certificates\' button
Then I should see a status message and \'Generate Certificates\' button should be disabled.'

def test_generate_certificates_buttons_is_visible(self):

    self.assertTrue(self.certificates_section.generate_certificates_button.visible)
    self.certificates_section.generate_certificates_button.click()
    alert = get_modal_alert(self.certificates_section.browser)
    alert.accept()
    self.certificates_section.wait_for_ajax()
    EmptyPromise((lambda : self.certificates_section.certificate_generation_status.visible), 'Certificate    generation    status    shown').fulfill()
    disabled = self.certificates_section.generate_certificates_button.attrs('disabled')
    self.assertEqual(disabled[0], 'true')
