mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-30 12:45:18 +01:00
adds a selenium test for #691. Needed to add a span around the description for the test
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@813 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
parent
1450ca96c6
commit
10453ad965
2 changed files with 23 additions and 2 deletions
|
|
@ -10,8 +10,8 @@
|
|||
<%= remote_star_icon %>
|
||||
<%= remote_toggle_checkbox unless source_view_is :deferred %>
|
||||
<div class="description<%= staleness_class( todo ) %>">
|
||||
<%= date_span %>
|
||||
<%= sanitize(todo.description) %>
|
||||
<%= date_span -%>
|
||||
<span class="todo.descr"><%= sanitize(todo.description) %></span>
|
||||
<%= tag_list %>
|
||||
<%= deferred_due_date %>
|
||||
<%= project_and_context_links( parent_container_type, :suppress_context => suppress_context, :suppress_project => suppress_project ) %>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,21 @@
|
|||
# adding a new action to context and collapsing context should remove
|
||||
# all actions in context including the newly added one
|
||||
|
||||
setup :fixtures => :all
|
||||
login :as => 'admin'
|
||||
open "/"
|
||||
|
||||
assert_element_present "todo_9"
|
||||
|
||||
# add new action to existing context
|
||||
type "todo_description", "a new action"
|
||||
type "todo_context_name", "Agenda"
|
||||
click "css=#todo-form-new-action .submit_box button"
|
||||
wait_for_visible "flash"
|
||||
|
||||
# toggle Agenda context c1 and wait until the context has collapsed
|
||||
click "css=#toggle_c1"
|
||||
wait_for_not_visible "todo_9"
|
||||
|
||||
# check that newly added action is not there
|
||||
wait_for_not_visible "xpath=//span[text()='a new action']"
|
||||
Loading…
Add table
Add a link
Reference in a new issue