Skip to content

Commit 2aeaf45

Browse files
hh-Robert Lamb
authored andcommitted
Spec: 108723, 108725 - Stream Items - Published Assignments
Change-Id: I8151b765d370d639396da9f2fdc844122e7a19de Reviewed-on: https://gerrit.instructure.com/69105 Tested-by: Jenkins Reviewed-by: Jahnavi Yetukuri <jyetukuri@instructure.com> Product-Review: Robert Lamb <rlamb@instructure.com> QA-Review: Robert Lamb <rlamb@instructure.com>
1 parent e2ea36d commit 2aeaf45

2 files changed

Lines changed: 22 additions & 0 deletions

File tree

spec/selenium/dashboard_spec.rb

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
require File.expand_path(File.dirname(__FILE__) + '/common')
2+
require File.expand_path(File.dirname(__FILE__) + '/helpers/notifications_common')
3+
include NotificationsCommon
4+
25

36
describe "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",

spec/selenium/dashboard_teacher_spec.rb

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
require File.expand_path(File.dirname(__FILE__) + '/common')
2+
require File.expand_path(File.dirname(__FILE__) + '/helpers/notifications_common')
3+
include NotificationsCommon
4+
25

36
describe "dashboard" do
47
include_context "in-process server selenium tests"
@@ -108,6 +111,14 @@
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

0 commit comments

Comments
 (0)