mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-21 14:44:07 +01:00
Test and fix issue preventing editing the same context twice on the context listing page. Fixes #442
Remove unused edit_context partial. git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@448 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
parent
341e1fa603
commit
4c7d27004d
4 changed files with 39 additions and 26 deletions
19
tracks/test/selenium/context_listing/edit_twice.rsel
Normal file
19
tracks/test/selenium/context_listing/edit_twice.rsel
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
setup :fixtures => :all
|
||||
include_partial 'login/login', :username => 'admin', :password => 'abracadabra'
|
||||
open "/contexts"
|
||||
click "css=#context_3 .buttons img.edit_item"
|
||||
wait_for_visible "edit_context_3"
|
||||
wait_for_not_visible "context_3"
|
||||
type "//div[@id='edit_context_3'] //input[@name='context[name]']", "telegraph"
|
||||
click "//div[@id='edit_context_3'] //input[@value='Update']"
|
||||
wait_for_not_visible "edit_context_3"
|
||||
wait_for_visible "context_3"
|
||||
assert_text 'css=#context_3 .data a', 'telegraph'
|
||||
click "css=#context_3 .buttons img.edit_item"
|
||||
wait_for_visible "edit_context_3"
|
||||
wait_for_not_visible "context_3"
|
||||
type "//div[@id='edit_context_3'] //input[@name='context[name]']", "email"
|
||||
click "//div[@id='edit_context_3'] //input[@value='Update']"
|
||||
wait_for_not_visible "edit_context_3"
|
||||
wait_for_visible "context_3"
|
||||
assert_text 'css=#context_3 .data a', 'email'
|
||||
Loading…
Add table
Add a link
Reference in a new issue