canvas-lms/spec
Dora, Csolakov 8e29279b89 Update API to only require“Enable Personal Pronouns”for changing pronoun
testplan:
1.log in to Canvas as admin
2.navigate to the Account Settings page
3.tick the 'Enable personal pronouns' box (do NOT tick the "Allow users
to change their pronouns in Canvas" box)
4.tick the 'Enable profiles' box
5.navigate to the User Settings page(Account->Settings)
6.click the 'Edit Settings' button
7.pick a different pronoun and click the 'Update settings' button
8.confirm the pronoun change
9.navigate to the User Profile page(Account->Profile)
10.in the kebab menu choose the 'Edit Profile' option
11.pick a different pronoun and save it
12.confirm the pronoun change
13.log in to Canvas as a user
14.note that you previously set the 'Enable personal pronouns' so the
user can see their pronouns
15.navigate to the User Settings page and click 'Edit settings' button
16.confirm that the user can see their pronoun but can't change it
17.navigate to the User Profile page and click the 'Edit profile' button
18.confirm that the pronoun change box is disabled(can't change it)
19.open Canvas API in Postman
20.add a new request(type:PUT url:/api/v1/users/:id name:Update User)
21.in the Body tab select 'form-data' and add 'user[pronouns]' as key
and a pronoun as value(like 'He/Him')
22.in Canvas API's Authorization tab authorise as admin
23.go the the Update User request and send the preset request
(/api/v1/users/:id <- id should be a user id)
24.note that you previously set the 'Enable personal pronouns' so admin
can change their own pronouns and any other student's pronouns
25.confirm that the response is '200 OK'
26.authorise as user
27.go the the Update User request and send the preset request
(/api/v1/users/:id <- id should be the user's id)
28.confirm that the response is '401 Unauthorized'

refs VICE-3824
flag=none

Change-Id: I1504ac42d0839793b4b5e61c6a6a34f17b4c5aca
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/347345
QA-Review: Caleb Guanzon <cguanzon@instructure.com>
Product-Review: Sam Garza <sam.garza@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Roland Beres <roland.beres@instructure.com>
2024-05-22 19:05:20 +00:00
..
apis Update API to only require“Enable Personal Pronouns”for changing pronoun 2024-05-22 19:05:20 +00:00
coffeescripts Correct extraction of section names from invalid date fields 2024-05-21 17:43:22 +00:00
contracts Remove Canvas Outcome Pact Tests 2023-11-29 18:00:03 +00:00
controllers Guard todo list for discussions 2024-05-22 17:58:49 +00:00
factories Prevent blank resource link title from being saved 2024-05-20 19:33:46 +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 subscribe field when (un)archiving 2024-05-22 09:46:23 +00:00
helpers don't use OpenStruct in Workflow 2024-05-10 16:16:43 +00:00
initializers spec: fix timebomb with partitions 2024-03-22 16:42:36 +00:00
integration update enhanced rubrics feature flag 2024-05-07 15:54:47 +00:00
javascripts remove @canvas/datetime/jquery imports 2024-05-21 21:03:05 +00:00
lib Include graded discussions in EDD + slm calls 2024-05-21 16:38:31 +00:00
manual_seeding Rubocop for ruby 3.1 2023-06-06 16:44:26 +00:00
messages spec: Add test for checkpoints created notification. 2024-05-01 18:14:34 +00:00
migrations squash old migrations 202308 2024-03-08 20:36:11 +00:00
models Include graded discussions in EDD + slm calls 2024-05-21 16:38:31 +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 Remove more settings 2024-01-29 16:21:38 +00:00
requests bundle update rubocop 2023-10-27 17:05:57 +00:00
schemas/lti rubocop: prep for updating rubocop-rspec 2023-04-12 19:30:10 +00:00
selenium Add sticky footer to account and course. 2024-05-22 18:22:54 +00:00
serializers bundle update rubocop 2024-01-24 16:17:43 +00:00
services Account for account level groups in LTI Logging 2024-05-20 19:54:40 +00:00
shared_examples bundle update rubocop 2024-01-24 16:17:43 +00:00
support migrations: avoid creating extraneous data in the test env 2024-03-13 19:37:02 +00:00
views remove OpenObject usage 2024-04-23 17:47:19 +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 Rubocop for ruby 3.1 2023-06-06 16:44:26 +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 spec: pass example as a block in around hooks 2024-03-01 21:45:31 +00:00