rc/2015-07-08-mattdrayer: Hide button behind feature flag

This commit is contained in:
Matt Drayer
2015-07-07 14:14:09 -04:00
parent f9ce8264ed
commit ba7422da87
5 changed files with 32 additions and 22 deletions

View File

@@ -416,8 +416,9 @@ class CertificatesTest(BaseInstructorDashboardTest):
"""
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
Then I see 'Generate Certificates' button
And when I click on 'Generate Certificates' button
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.
"""
self.assertTrue(self.certificates_section.generate_certificates_button.visible)