setup :fixtures => :users, :clear_tables => [:projects, :contexts, :todos] login :as => 'admin' open "/integrations" wait_for_element_present "no_context_msg" open "/contexts" type "context_name", "my first context" click "context_new_submit" # wait for new context to appear before navigating away from project page to # make sure that the changes have been saved wait_for_text_present 'DRAG' open "/integrations" wait_for_element_present "applescript1-contexts"