canvas-lms/spec
Martin Yosifov 5c90ce272a Add settings to disable signature & auto response for students
closes OUT-6300
flag=inbox_settings

Test plan:
- Go to Site Admin->Features and enable Inbox Settings FF
- Go to Account->Settings and verify that when Enable Inbox
Signature Block is not checked, Disable Inbox Signature Block
for Students is locked and cannot be checked
- Verify that when Enable Inbox Signature Block is checked,
Disable Inbox Signature Block for Students is not locked
and can be checked
- Repeat above for Enable Inbox Auto Response and Disable
Inbox Auto Response for Students
- Enable Inbox Signature Block, Inbox Signature Block for
Students, Inbox Auto Response and Disable Inbox Auto Response
for Students
- Create user and course, enroll user as student in that
course, act as user and confirm enrollment, then go to Inbox
- Verify that there is no Inbox Settings button
- Create another course, enroll user as teacher in that
course, act as user and confirm enrollment, then go to Inbox
- Verify that there is Inbox Settings button; click on
that button and in the modal verify that both Auto
Response and Signature settings are available
- Create another user, act as that user and go to Inbox
- Verify that there is no Inbox Settings button
- Start rails console and make the second user Account Admin
account = switch_to_shard! 'shard name'
user = User.find('put user id here')
role = Role.get_built_in_role("AccountAdmin",
root_account_id: account.id)
account.account_users.create!(user:, role:)
- In Canvas, act as that user and go to Inbox
- Verify that there is Inbox Settings button; click on
that button and in the modal verify that both Auto
Response and Signature settings are available
- Add that second user as observer in a course,
then act as user and go to Inbox
- Verify that there is no Inbox Settings button

Change-Id: I3d984730f6c4a52c807b0c6a98d14e9cfb9d7566
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/348208
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jason Anderson <jason.anderson@instructure.com>
QA-Review: Jason Anderson <jason.anderson@instructure.com>
Product-Review: Chrystal Langston <chrystal.langston@instructure.com>
2024-06-06 19:36:32 +00:00
..
apis Split differentiated_modules flag 2024-06-05 23:55:03 +00:00
coffeescripts colocate Backbone collection specs 2024-06-06 19:29:58 +00:00
contracts Remove Canvas Outcome Pact Tests 2023-11-29 18:00:03 +00:00
controllers Show pronouns in inbox - received messages view screen 2024-06-06 16:10:34 +00:00
factories spec: rubric index selenium coverage 2024-06-06 15:19:00 +00:00
factory_bot rubocop: FactoryBot 2024-03-01 22:27:49 +00:00
fixtures rails 7.1: use fixture_file helper 2024-02-20 17:51:31 +00:00
formatters update rubocop, and apply new cops 2023-07-03 22:11:42 +00:00
gem_integration/canvas_connect
graphql fix version param in previewUrl 2024-06-06 18:04:23 +00:00
helpers Add settings to disable signature & auto response for students 2024-06-06 19:36:32 +00:00
initializers spec: fix timebomb with partitions 2024-03-22 16:42:36 +00:00
integration unify SpeedGrader text 2024-05-29 18:41:43 +00:00
javascripts colocate theme_editor spec 2024-06-06 19:30:07 +00:00
lib Split differentiated_modules flag 2024-06-05 23:55:03 +00:00
manual_seeding unify SpeedGrader text 2024-05-29 18:41:43 +00:00
messages spec: Add test for checkpoints created notification. 2024-05-01 18:14:34 +00:00
migrations remove Cassandra support for page views 2024-06-05 15:15:34 +00:00
models allow configuring email federated attribute to be autoconfirmed 2024-06-06 17:40:06 +00:00
observers Push content_export_created live event from Canvas 2024-02-16 18:03:54 +00:00
openapi/lti spec: Update schema definitions for recent changes 2024-02-01 23:40:01 +00:00
presenters round pointsBased scores to 2 decimal places 2024-06-03 15:52:24 +00:00
requests bundle update rubocop 2023-10-27 17:05:57 +00:00
schemas/lti
selenium spec: rubric index selenium coverage 2024-06-06 15:19:00 +00:00
serializers Use granular permissions in selective release 2024-06-04 17:08:18 +00:00
services Split differentiated_modules flag 2024-06-05 23:55:03 +00:00
shared_examples bundle update rubocop 2024-01-24 16:17:43 +00:00
support bundle update rubocop 2024-05-30 16:20:52 +00:00
views spec: check for correct LTI tool icon 2024-06-06 17:07:55 +00:00
.eslintrc
.rspec_parallel
ams_spec_helper.rb Rubocop for ruby 3.1 2023-06-06 16:44:26 +00:00
broadcast_integration.rb
canvas_simplecov.rb
cassandra_spec_helper.rb
conditional_release_spec_helper.rb rubocop: FactoryBot 2024-03-01 22:27:49 +00:00
coverage_tool.rb
factories.rb bundle update rubocop-performance, rubocop-rails 2023-12-18 20:28:02 +00:00
factory_bot_spec_helper.rb
feature_flag_helper.rb
file_upload_helper.rb
force_failure_spec.rb
import_helper.rb remove unused Course#import_source attr_accessor 2024-02-02 18:06:19 +00:00
jspec.sh
lti2_course_spec_helper.rb Rubocop for ruby 3.1 2023-06-06 16:44:26 +00:00
lti2_spec_helper.rb Rubocop for ruby 3.1 2023-06-06 16:44:26 +00:00
lti_1_3_spec_helper.rb sync DeveloperKey and Lti::Registration on save 2024-05-28 22:05:02 +00:00
lti_1_3_tool_configuration_spec_helper.rb Lock down submission_type_selection placement 2024-03-07 13:58:16 +00:00
lti_spec_helper.rb Rubocop for ruby 3.1 2023-06-06 16:44:26 +00:00
outcome_alignments_spec_helper.rb Update GraphQL Alignment loader to return aligned items 2023-05-11 15:57:34 +00:00
plagiarism_platform_spec_helper.rb bump rubocop gems and apply changes 2023-08-07 20:13:35 +00:00
quiz_spec_helper.rb
rcov.opts
rspec_mock_extensions.rb Rubocop for ruby 3.1 2023-06-06 16:44:26 +00:00
sharding_spec_helper.rb
simple_cov_result_merger.rb
spec.opts
spec_helper.rb bundle update rubocop 2024-05-30 16:20:52 +00:00