Commit 85b75bad by Jay Zoldak

Refactor lettuce commands for navigation to the advanced settings page

parent af2690fc
...@@ -8,24 +8,20 @@ Feature: Advanced (manual) course policy ...@@ -8,24 +8,20 @@ Feature: Advanced (manual) course policy
Then I see only the display name Then I see only the display name
Scenario: Test if there are no policy settings without existing UI controls Scenario: Test if there are no policy settings without existing UI controls
Given I have opened a new course in Studio Given I am on the Advanced Course Settings page in Studio
When I select the Advanced Settings When I delete the display name
And I delete the display name
Then there are no advanced policy settings Then there are no advanced policy settings
And I reload the page And I reload the page
Then there are no advanced policy settings Then there are no advanced policy settings
Scenario: Add new entries, and they appear alphabetically after save Scenario: Add new entries, and they appear alphabetically after save
Given I have opened a new course in Studio Given I am on the Advanced Course Settings page in Studio
When I select the Advanced Settings When I create New Entries
And I create New Entries
Then they are alphabetized Then they are alphabetized
And I reload the page And I reload the page
Then they are alphabetized Then they are alphabetized
Scenario: Test how multi-line input appears Scenario: Test how multi-line input appears
Given I have opened a new course in Studio Given I am on the Advanced Course Settings page in Studio
When I select the Advanced Settings When I create a JSON object
And I create a JSON object
Then it is displayed as formatted Then it is displayed as formatted
...@@ -18,6 +18,12 @@ def i_select_advanced_settings(step): ...@@ -18,6 +18,12 @@ def i_select_advanced_settings(step):
css_click(link_css) css_click(link_css)
@step('I am on the Advanced Course Settings page in Studio$')
def i_am_on_advanced_course_settings(step):
step.given('I have opened a new course in Studio')
step.given('I select the Advanced Settings')
@step('I see only the display name$') @step('I see only the display name$')
def i_see_only_display_name(step): def i_see_only_display_name(step):
assert_policy_entries(["display_name"], ['"Robot Super Course"']) assert_policy_entries(["display_name"], ['"Robot Super Course"'])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment