mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-23 23:54:07 +01:00
Add a bold state to emphasize the project status on the project detail page.
The bold state changes once the ajax operation is complete. Project status changes now also show a flash notice when the ajax operation completes. Add a selenium test to confirm this behavior. Fixed a bug where hiding a project would make deferred items hidden. Now we leave them deferred. Added a little breathing room between the project status options. git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@395 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
parent
f73401a850
commit
ead9a4cfe9
7 changed files with 38 additions and 4 deletions
|
|
@ -0,0 +1,14 @@
|
|||
setup :fixtures => :all
|
||||
include_partial 'login/login', :username => 'admin', :password => 'abracadabra'
|
||||
open '/project/Build_a_working_time_machine'
|
||||
assert_checked 'project_state_active', 'ignored'
|
||||
assert_attribute 'css=#project_status .active span', 'class', 'active_state'
|
||||
assert_attribute 'css=#project_status .hidden span', 'class', 'inactive_state'
|
||||
assert_text 'badge_count', '2'
|
||||
click 'project_state_hidden'
|
||||
wait_for_attribute 'css=#project_status .active span', 'class', 'inactive_state'
|
||||
wait_for_attribute 'css=#project_status .hidden span', 'class', 'active_state'
|
||||
assert_text 'badge_count', '2'
|
||||
open '/project/Build_a_working_time_machine'
|
||||
assert_text 'badge_count', '2'
|
||||
assert_checked 'project_state_hidden', 'ignored'
|
||||
Loading…
Add table
Add a link
Reference in a new issue