canvas-lms/spec/selenium/people
Samuel Lee 8d3eac6c3a fix showing resend invite based on permissions
fix issue where when additional granular permissions for adding
individual course roles are not enabled, a 403 error will appear
when resending invites in the roster page

fixes VICE-3902
flag=none

Test Plan:
- pick a role for testing. Example TA role.
- have the Users - manage students in courses permission turned on
- have all the individual granular add permissions turned off except
  the Users - Students option.
- note that permissions take a while to take into effect. A trick
  is to change timezones for the account with the role that you want
  to test. I tested using a TA role and changing the timezone to Tokyo
  and then changing back to central time in the TA account
  helped speed up the permissions change.
- have a student and teacher in the course
- log in to the account with the testing role and go to the roster page
- go the student and click on the three dots
- confirm that resend invitation option is shown
- go to the teacher and click on the three dots
- confirm that resend invitation option is not shown
- add a teacher role using the same student email
- view that the resend option is still in the dropdown for the student
- click resend and confirm that the invitation is sent and no 403 error
  appears
- confirm that only one api call is made in the network tab for
  the student role

Change-Id: I979274bc74078036bc2cbf69171c288bc876c331
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/341881
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Caleb Guanzon <cguanzon@instructure.com>
QA-Review: Jason Gillett <jason.gillett@instructure.com>
Product-Review: Samuel Lee <samuel.lee@instructure.com>
2024-03-06 17:03:17 +00:00
..
pages Remove and replace KyleMenu from groupUser.handlebars 2024-02-14 03:19:41 +00:00
people_settings_spec.rb bundle update rubocop-performance, rubocop-rails 2023-12-18 20:28:02 +00:00
people_spec.rb fix showing resend invite based on permissions 2024-03-06 17:03:17 +00:00
user_content_student_spec.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
users_spec.rb Revert "Page Views table I18n Date Fix and React redesign Pt. 2" 2022-05-18 15:22:01 +00:00