File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11require File . expand_path ( File . dirname ( __FILE__ ) + '/common' )
2+ require File . expand_path ( File . dirname ( __FILE__ ) + '/helpers/notifications_common' )
3+ include NotificationsCommon
4+
25
36describe "dashboard" do
47 include_context "in-process server selenium tests"
@@ -135,6 +138,14 @@ def disable_recent_activity_header_course_link
135138 expect ( ff ( '#conversation-details tbody tr' ) . size ) . to eq 1
136139 end
137140
141+ it "shows a stream item under the assignments in dashboard" , priority : "1" , test_id : 108725 do
142+ NotificationsCommon . setup_notification ( @student , name : 'Assignment Created' )
143+ assignment_model ( { :submission_types => [ 'online_text_entry' ] , :course => @course } )
144+ get "/"
145+ find ( '.toggle-details' ) . click
146+ expect ( element_exists ( fj ( '.fake-link:contains("Unnamed")' ) ) ) . to be true
147+ end
148+
138149 it "should show account notifications on the dashboard" , priority : "1" , test_id : 215582 do
139150 a1 = @course . account . announcements . create! ( :subject => 'test' ,
140151 :message => "hey there" ,
Original file line number Diff line number Diff line change 11require File . expand_path ( File . dirname ( __FILE__ ) + '/common' )
2+ require File . expand_path ( File . dirname ( __FILE__ ) + '/helpers/notifications_common' )
3+ include NotificationsCommon
4+
25
36describe "dashboard" do
47 include_context "in-process server selenium tests"
108111
109112 end
110113
114+ it "shows a stream item under the assignments in dashboard" , priority : "1" , test_id : 108723 do
115+ NotificationsCommon . setup_notification ( @teacher , name : 'Assignment Created' )
116+ assignment_model ( { :submission_types => [ 'online_text_entry' ] , :course => @course } )
117+ get "/"
118+ find ( '.toggle-details' ) . click
119+ expect ( element_exists ( fj ( '.fake-link:contains("Unnamed")' ) ) ) . to be true
120+ end
121+
111122 context "moderation to do" do
112123 before do
113124 @teacher = @user
You can’t perform that action at this time.
0 commit comments