Add custom roles to visibility and permissions tests

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

The following discussion from !189655 (merged) should be addressed:

  • @imand3r started a discussion: (+1 comment)

    Thanks for adding this, @terrichu. Do you think there is something we can add to the Add specs section that would help us test search with custom roles? If nothing else, maybe add a comment to add a spec if search is affected and link to #permissions-tests in the search doc.

Edited by 🤖 GitLab Bot 🤖