mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-25 10:16:11 +01:00
rebase to master to include i18n changes and fix merge conflicts
This commit is contained in:
parent
7a74025253
commit
97e8602ef9
13 changed files with 43 additions and 34 deletions
|
|
@ -17,7 +17,7 @@ Feature: Manage users
|
|||
|
||||
Scenario: Add new account
|
||||
When I go to the manage users page
|
||||
And I follow "Signup new user"
|
||||
And I follow "Sign up new user"
|
||||
Then I should be on the signup page
|
||||
When I submit the signup form with username "new.user", password "secret123" and confirm with "secret123"
|
||||
Then I should be on the manage users page
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ Feature: Show statistics
|
|||
And I should see "you have a total of 9 actions"
|
||||
And I should see "2 of these are completed"
|
||||
Then I should see "Totals"
|
||||
And I should see "Actions"
|
||||
And I should see "actions"
|
||||
And I should see "Contexts"
|
||||
And I should see "Projects"
|
||||
And I should see "Tags"
|
||||
|
|
|
|||
|
|
@ -74,9 +74,4 @@ end
|
|||
|
||||
Then /^he should see that a context named "([^\"]*)" is not present$/ do |context_name|
|
||||
Then "I should not see \"#{context_name} (\""
|
||||
end
|
||||
|
||||
Then /^I should see feeds for "([^"]*)" in list of "([^"]*)"$/ do |name, list_type|
|
||||
xpath= "//div[@id='feeds-for-#{list_type}']//strong"
|
||||
name.should == response.selenium.get_text("xpath=#{xpath}")
|
||||
end
|
||||
end
|
||||
|
|
@ -1,9 +1,9 @@
|
|||
Then /^I should see a message that you need a context to get feeds for contexts$/ do
|
||||
Then "I should see \"There need to be at least one context before you can request a feed\""
|
||||
Then "I should see \"There needs to be at least one context before you can request a feed\""
|
||||
end
|
||||
|
||||
Then /^I should see a message that you need a project to get feeds for projects$/ do
|
||||
Then "I should see \"There need to be at least one project before you can request a feed\""
|
||||
Then "I should see \"There needs to be at least one project before you can request a feed\""
|
||||
end
|
||||
|
||||
Then /^I should see feeds for projects$/ do
|
||||
|
|
@ -29,3 +29,9 @@ Then /^I should see "([^"]*)" as the selected context$/ do |context_name|
|
|||
scope.should have_selector("option[selected=\"selected\"]", :content => context_name)
|
||||
end
|
||||
end
|
||||
|
||||
Then /^I should see feeds for "([^"]*)" in list of "([^"]*)"$/ do |name, list_type|
|
||||
selenium.wait_for :wait_for => :ajax, :javascript_framework => :jquery
|
||||
xpath= "//div[@id='feeds-for-#{list_type}']//strong"
|
||||
name.should == response.selenium.get_text("xpath=#{xpath}")
|
||||
end
|
||||
|
|
|
|||
|
|
@ -12,5 +12,4 @@ end
|
|||
|
||||
Then /^the multiple action form should not be visible$/ do
|
||||
selenium.is_visible("todo_multi_add").should == false
|
||||
end
|
||||
|
||||
end
|
||||
|
|
@ -236,4 +236,4 @@ 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?"
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue