Changed wording to I will

This commit is contained in:
JonahStanley
2013-06-05 16:01:45 -04:00
parent f652a5d8c4
commit d226a21eb0
4 changed files with 6 additions and 6 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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