@shard_1 Feature: CMS.Problem Editor As a course author, I want to be able to create problems and edit their settings. Scenario: User can view metadata Given I have created a Blank Common Problem When I edit and select Settings Then I see the advanced settings and their expected values And Edit High Level Source is not visible # Safari is having trouble saving the values on sauce @skip_safari Scenario: User can modify String values Given I have created a Blank Common Problem When I edit and select Settings Then I can modify the display name And my display name change is persisted on save # Safari is having trouble saving the values on sauce @skip_safari Scenario: User can specify special characters in String values Given I have created a Blank Common Problem When I edit and select Settings Then I can specify special characters in the display name And my special characters and persisted on save Scenario: User can revert display name to unset Given I have created a Blank Common Problem When I edit and select Settings Then I can revert the display name to unset And my display name is unset on save # IE will not click the revert button properly @skip_internetexplorer Scenario: User can select values in a Select Given I have created a Blank Common Problem When I edit and select Settings Then I can select Per Student for Randomization And my change to randomization is persisted And I can revert to the default value for randomization # Safari will input it as 35. @skip_safari Scenario: User can modify float input values Given I have created a Blank Common Problem When I edit and select Settings Then I can set the weight to "3.5" And my change to weight is persisted And I can revert to the default value of unset for weight Scenario: User cannot type letters in float number field Given I have created a Blank Common Problem When I edit and select Settings Then if I set the weight to "abc", it remains unset # Safari will input it as 234. @skip_safari Scenario: User cannot type decimal values integer number field Given I have created a Blank Common Problem When I edit and select Settings Then if I set the max attempts to "2.34", it will persist as a valid integer # Safari will input it incorrectly @skip_safari Scenario: User cannot type out of range values in an integer number field Given I have created a Blank Common Problem When I edit and select Settings Then if I set the max attempts to "-3", it will persist as a valid integer # Safari will input it as 35. @skip_safari Scenario: Settings changes are not saved on Cancel Given I have created a Blank Common Problem When I edit and select Settings Then I can set the weight to "3.5" And I can modify the display name Then If I press Cancel my changes are not persisted Scenario: Edit High Level source is available for LaTeX problem Given I have created a LaTeX Problem When I edit and select Settings Then Edit High Level Source is visible # This is a very specific scenario that was failing with some of the # DB rearchitecture changes. It had to do with children IDs being stored # with @draft at the end. To reproduce, must update children while in draft mode. Scenario: Problems can be deleted after being public Given I have created a Blank Common Problem And I have created another Blank Common Problem When I publish the unit And I click on "edit a draft" And I delete "1" component And I click on "replace with draft" And I click on "edit a draft" And I delete "1" component Then I see no components # This is a very specific scenario for a bug where editing a component in draft # impacted the published version. Scenario: Changes to draft problem do not impact published version Given I have created a Blank Common Problem When I publish the unit And I click on "edit a draft" And I change the display name to "draft" And I click on "delete draft" Then the problem display name is "Blank Common Problem" Scenario: Problems can be made private after being made public Given I have created a Blank Common Problem When I publish the unit And I click on "edit a draft" And I click on "delete draft" And I unpublish the unit Then I can edit the problem Scenario: Cheat sheet visible on toggle Given I have created a Blank Common Problem And I can edit the problem Then I can see cheatsheet # Disabled 11/13/2013 after failing in master # The screenshot showed that the LaTeX editor had the text "hi", # but Selenium timed out waiting for the text to appear. # It also caused later tests to fail with "UnexpectedAlertPresent" # # This feature will work in Firefox only when Firefox is the active window # IE will not interact with the high level source in sauce labs #@skip_internetexplorer #Scenario: High Level source is persisted for LaTeX problem (bug STUD-280) # Given I have created a LaTeX Problem # When I edit and compile the High Level Source # Then my change to the High Level Source is persisted # And when I view the High Level Source I see my changes # Disabled 10/28/13 due to flakiness observed in master # Scenario: Exceptions don't cause problem to be uneditable (bug STUD-786) #Given I have an empty course #And I go to the import page #And I import the file "get_html_exception_test.tar.gz" #When I go to the unit "Probability and BMI" #And I click on "edit a draft" #Then I see a message that says "We're having trouble rendering your component" #And I can edit the problem