mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-23 17:26:11 +01:00
fix cucumber scenario's.
One still fails on Cookie overflow, but works testing by hand...
This commit is contained in:
parent
7465ecce26
commit
8ffacca393
6 changed files with 11 additions and 23 deletions
|
|
@ -34,17 +34,17 @@ Given /^the following user records with hash algorithm$/ do |table|
|
|||
end
|
||||
end
|
||||
|
||||
When /^I change my password to "([^"]*)"$/ do |password|
|
||||
Given("no users exists") do
|
||||
User.delete_all
|
||||
end
|
||||
|
||||
When(/^I change my password to "([^"]*)"$/) do |password|
|
||||
step 'I should be on the change password page'
|
||||
fill_in "user[password]", :with => password
|
||||
fill_in "user[password_confirmation]", :with => password
|
||||
click_button "Change password"
|
||||
end
|
||||
|
||||
Given "no users exists" do
|
||||
User.delete_all
|
||||
end
|
||||
|
||||
When /^I delete the user "([^\"]*)"$/ do |username|
|
||||
# click "//tr[@id='user-3']//img"
|
||||
# assert_confirmation "Warning: this will delete user 'john', all their actions, contexts, project and notes. Are you sure that you want to continue?"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue