Changed wording to I will
This commit is contained in:
@@ -29,6 +29,6 @@ Feature: Create Section
|
||||
Scenario: Delete section
|
||||
Given I have opened a new course in Studio
|
||||
And I have added a new section
|
||||
When I confirm all alerts
|
||||
When I will confirm all alerts
|
||||
And I press the "section" delete icon
|
||||
Then the section does not exist
|
||||
|
||||
@@ -24,7 +24,7 @@ Feature: Overview Toggle Section
|
||||
Scenario: Collapse link is not removed after last section of a course is deleted
|
||||
Given I have a course with 1 section
|
||||
And I navigate to the course overview page
|
||||
When I confirm all alerts
|
||||
When I will confirm all alerts
|
||||
And I press the "section" delete icon
|
||||
Then I see the "Collapse All Sections" link
|
||||
|
||||
|
||||
@@ -36,6 +36,6 @@ Feature: Create Subsection
|
||||
Given I have opened a new course section in Studio
|
||||
And I have added a new subsection
|
||||
And I see my subsection on the Courseware page
|
||||
When I confirm all alerts
|
||||
When I will confirm all alerts
|
||||
And I press the "subsection" delete icon
|
||||
Then the subsection does not exist
|
||||
|
||||
@@ -161,16 +161,16 @@ def dialogs_are_closed(step):
|
||||
assert world.dialogs_closed()
|
||||
|
||||
|
||||
@step('I confirm all alerts')
|
||||
@step('I will confirm all alerts')
|
||||
def i_confirm_all_alerts(step):
|
||||
world.browser.execute_script('window.confirm = function(){return true;} ; window.alert = function(){return;}')
|
||||
|
||||
|
||||
@step('I cancel all alerts')
|
||||
@step('I will cancel all alerts')
|
||||
def i_cancel_all_alerts(step):
|
||||
world.browser.execute_script('window.confirm = function(){return false;} ; window.alert = function(){return;}')
|
||||
|
||||
|
||||
@step('I answer all prompts with "([^"]*)"')
|
||||
@step('I will answer all prompts with "([^"]*)"')
|
||||
def i_answer_prompts_with(step, prompt):
|
||||
world.browser.execute_script('window.prompt = function(){return %s;}') % prompt
|
||||
|
||||
Reference in New Issue
Block a user