mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-10 11:18:51 +01:00
migrate tickler, tagging, toggle context and done. This finishes the first migration pass
This commit is contained in:
parent
1236b5985c
commit
41ebd2ec9b
12 changed files with 64 additions and 72 deletions
|
|
@ -1,23 +1,20 @@
|
|||
Then /^I should see a message that you need a context to see scripts$/ do
|
||||
Then 'I should see "You do not have any context yet. The script will be available after you add your first context"'
|
||||
step 'I should see "You do not have any context yet. The script will be available after you add your first context"'
|
||||
end
|
||||
|
||||
Then /^I should see scripts$/ do
|
||||
# check on a small snippet of the first applescript
|
||||
Then 'I should see "set returnValue to call xmlrpc"'
|
||||
step 'I should see "set returnValue to call xmlrpc"'
|
||||
end
|
||||
|
||||
Then /^I should see a script "([^\"]*)" for "([^\"]*)"$/ do |script, context_name|
|
||||
selenium.is_visible(script)
|
||||
page.should have_css("##{script}", :visible => true)
|
||||
context = Context.find_by_name(context_name)
|
||||
|
||||
# wait for the script to refresh
|
||||
wait_for :timeout => 15 do
|
||||
selenium.is_text_present("#{context.id} (* #{context_name} *)")
|
||||
end
|
||||
page.should have_content("#{context.id} (* #{context_name} *)")
|
||||
|
||||
# make sure the text is found within the textarea
|
||||
script_source = selenium.get_text("//textarea[@id='#{script}']")
|
||||
script_source = page.find(:xpath, "//textarea[@id='#{script}']").text
|
||||
script_source.should =~ /#{context.id} \(\* #{context_name} \*\)/
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue