mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-18 23:16:10 +01:00
fix #1101. Most strings were pushed into html attributes. The remaining are generated from the layout into an array
This commit is contained in:
parent
e528af30a6
commit
f2760ed7de
21 changed files with 147 additions and 76 deletions
|
|
@ -80,3 +80,12 @@ Feature: Manage the list of contexts
|
|||
Scenario: I can drag and drop to order the contexts
|
||||
# TODO: pending scenario
|
||||
Given this is a pending scenario
|
||||
|
||||
@selenium @wip
|
||||
Scenario: Hiding and unhiding the new project form
|
||||
When I go to the contexts page
|
||||
Then the new context form should be visible
|
||||
When I follow "Hide form"
|
||||
Then the new context form should not be visible
|
||||
When I follow "Create a new context"
|
||||
Then the new context form should be visible
|
||||
|
|
|
|||
|
|
@ -12,8 +12,13 @@ Feature: Edit a next action from every page
|
|||
Scenario: I can toggle the star of a todo
|
||||
Given this is a pending scenario
|
||||
|
||||
@selenium @wip
|
||||
Scenario: I can delete a todo
|
||||
Given this is a pending scenario
|
||||
Given I have a todo with description "delete me" in the context "@home"
|
||||
When I go to the home page
|
||||
Then I should see "delete me"
|
||||
And I delete the todo
|
||||
Then I should not see "delete me"
|
||||
|
||||
Scenario: Removing the last todo in context will hide context # delete, edit
|
||||
Given this is a pending scenario
|
||||
|
|
|
|||
|
|
@ -72,9 +72,9 @@ Feature: Manage the list of projects
|
|||
Scenario: Hiding and unhiding the new project form
|
||||
When I go to the projects page
|
||||
Then the new project form should be visible
|
||||
When I follow "« Hide form"
|
||||
When I follow "Hide form"
|
||||
Then the new project form should not be visible
|
||||
When I follow "Create a new project »"
|
||||
When I follow "Create a new project"
|
||||
Then the new project form should be visible
|
||||
|
||||
@selenium
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ Feature: Add new next action from every page
|
|||
Scenario Outline: I can hide the input form for single next action on a page
|
||||
When I <action> the <page>
|
||||
Then the single action form should be visible
|
||||
When I follow "« Hide form"
|
||||
When I follow "Hide form"
|
||||
Then the single action form should not be visible
|
||||
|
||||
Scenarios:
|
||||
|
|
@ -32,7 +32,7 @@ Feature: Add new next action from every page
|
|||
Then the single action form should be visible
|
||||
When I follow "Add multiple next actions"
|
||||
Then the multiple action form should be visible
|
||||
When I follow "« Hide form"
|
||||
When I follow "Hide form"
|
||||
Then the single action form should not be visible
|
||||
And the multiple action form should not be visible
|
||||
|
||||
|
|
@ -48,11 +48,11 @@ Feature: Add new next action from every page
|
|||
Scenario Outline: I can hide the input form and then choose both input forms
|
||||
When I <action> the <page>
|
||||
Then the single action form should be visible
|
||||
When I follow "« Hide form"
|
||||
When I follow "Hide form"
|
||||
Then the single action form should not be visible
|
||||
When I follow "Add multiple next actions"
|
||||
Then the multiple action form should be visible
|
||||
When I follow "« Hide form"
|
||||
When I follow "Hide form"
|
||||
Then the single action form should not be visible
|
||||
And the multiple action form should not be visible
|
||||
|
||||
|
|
@ -71,7 +71,7 @@ Feature: Add new next action from every page
|
|||
When I follow "Add multiple next actions"
|
||||
Then the single action form should not be visible
|
||||
And the multiple action form should be visible
|
||||
When I follow "Add single next action"
|
||||
When I follow "Add a next action"
|
||||
Then the single action form should be visible
|
||||
And the multiple action form should not be visible
|
||||
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ end
|
|||
When /^I edit the context name in place to be "([^\"]*)"$/ do |new_context_name|
|
||||
selenium.click "context_name"
|
||||
fill_in "value", :with => new_context_name
|
||||
click_button "OK"
|
||||
click_button "Ok"
|
||||
end
|
||||
|
||||
Then /^I should see the context name is "([^\"]*)"$/ do |context_name|
|
||||
|
|
|
|||
|
|
@ -104,7 +104,7 @@ end
|
|||
When /^I edit the project name in place to be "([^"]*)"$/ do |new_project_name|
|
||||
selenium.click "project_name"
|
||||
fill_in "value", :with => new_project_name
|
||||
click_button "OK"
|
||||
click_button "Ok"
|
||||
end
|
||||
|
||||
When /^I edit the project state of "([^"]*)" to "([^"]*)"$/ do |project_name, state_name|
|
||||
|
|
|
|||
|
|
@ -243,7 +243,7 @@ Then /^the container for the context "([^"]*)" should not be visible$/ do |conte
|
|||
end
|
||||
|
||||
Then /^a confirmation for adding a new context "([^"]*)" should be asked$/ do |context_name|
|
||||
selenium.get_confirmation.should == "New context \"#{context_name}\" will be also created. Are you sure?"
|
||||
selenium.get_confirmation.should == "New context '#{context_name}' will be also created. Are you sure?"
|
||||
end
|
||||
|
||||
Then /^I should see "([^"]*)" in the deferred container$/ do |todo_description|
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue