mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-11 01:44:23 +01:00
fix regressions
This commit is contained in:
parent
d732779e14
commit
a8e426a2cd
8 changed files with 24 additions and 16 deletions
|
|
@ -48,7 +48,7 @@ Then(/^I should (not see|see) "([^"]*)" in the deferred container$/) do |visible
|
|||
end
|
||||
|
||||
Then(/^I should (not see|see) "([^"]*)" in the action container$/) do |visible, todo_description|
|
||||
check_xpath_visibility(visible, todo_in_container_xpath(@source_view.to_s, find_todo(todo_description)))
|
||||
check_xpath_visibility(visible, todo_in_container_xpath(find_todo(todo_description), @source_view.to_sym))
|
||||
end
|
||||
|
||||
####### Project #######
|
||||
|
|
|
|||
|
|
@ -142,7 +142,7 @@ Given /^I have (\d+) completed todos in project "([^"]*)" in context "([^"]*)" w
|
|||
end
|
||||
|
||||
Given(/^I have ([0-9]+) completed todos in context "([^"]*)"$/) do |count, context_name|
|
||||
find_context(context_name)
|
||||
context = find_context(context_name)
|
||||
|
||||
count.to_i.downto 1 do |i|
|
||||
todo = @current_user.todos.create!(:context_id => context.id, :description => "todo #{i}")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue