Add specs to test enabling faculty journal checkbox
sshepherd,panda,1 Test Plan: - Run Specs Change-Id: I15ac9c39dc15930e872cd399238d5117dba69bda Reviewed-on: https://gerrit.instructure.com/60039 Reviewed-by: Taylor Wilson <twilson@instructure.com> Tested-by: Jenkins Product-Review: Steven Shepherd <sshepherd@instructure.com> QA-Review: Steven Shepherd <sshepherd@instructure.com>
This commit is contained in:
parent
c1ad07b65d
commit
13c2aa2065
|
@ -2,6 +2,8 @@ require File.expand_path(File.dirname(__FILE__) + '/../helpers/conversations_com
|
|||
|
||||
describe "conversations new" do
|
||||
include_examples "in-process server selenium tests"
|
||||
let(:account) { Account.default }
|
||||
let(:account_settings_url) { "/accounts/#{account.id}/settings" }
|
||||
|
||||
before do
|
||||
conversation_setup
|
||||
|
@ -13,7 +15,18 @@ describe "conversations new" do
|
|||
@group.users = [@s1, @s2]
|
||||
end
|
||||
|
||||
context "faculty journal" do
|
||||
context "Course with Faculty Journal not enabled" do
|
||||
it "should allow a site admin to enable faculty journal", priority: "2", test_id: 75005 do
|
||||
site_admin_logged_in
|
||||
get account_settings_url
|
||||
f('#account_enable_user_notes').click
|
||||
f('.btn.btn-primary[type="submit"]').click
|
||||
wait_for_ajaximations
|
||||
expect(is_checked('#account_enable_user_notes')).to be_truthy
|
||||
end
|
||||
end
|
||||
|
||||
context "Faculty Journal" do
|
||||
before(:each) do
|
||||
@course.account.update_attribute(:enable_user_notes, true)
|
||||
user_session(@teacher)
|
||||
|
|
Loading…
Reference in New Issue