Skip to content

User permissions test - #1042

Open
cathal-bailey wants to merge 2 commits into
3scale-qe:mainfrom
cathal-bailey:user-permissions-test
Open

User permissions test#1042
cathal-bailey wants to merge 2 commits into
3scale-qe:mainfrom
cathal-bailey:user-permissions-test

Conversation

@cathal-bailey

@cathal-bailey cathal-bailey commented May 27, 2026

Copy link
Copy Markdown
Collaborator
  • Aim is to expand scope of user permissions test
  • Logic refactor to enable scope expansion
    • Views/Permissions defined in separate dictionaries
    • Checks if user has required permission to access particular page
    • If true, expects page to be returned. Else, user access denied
  • Broadening test scope: Adding monitoring, plans and partners
  • Replacing page.is_displayed with less strict test. No longer checks for individual page elements which for some users don't appear, allowing for test scope to be expanded.

@cathal-bailey cathal-bailey changed the title First draft for user permissions test User permissions test May 27, 2026
Comment thread testsuite/tests/ui/users_and_roles/test_permissions.py Outdated
@cathal-bailey
cathal-bailey force-pushed the user-permissions-test branch from 9716e81 to 7029c4e Compare June 2, 2026 10:29
Updates to test scope based on Jenkins job. isort fixes.

Broadening test scope. Adding settings, monitoring, policy_registry and partners. Replacing page.is_displayed with more general check.

Removing APIDocsView based on Jenkins job

Add tests for the bot protection of the admin portal
@cathal-bailey
cathal-bailey force-pushed the user-permissions-test branch from 7029c4e to afb62a1 Compare June 2, 2026 10:32
@cathal-bailey
cathal-bailey marked this pull request as ready for review June 2, 2026 13:23
@cathal-bailey
cathal-bailey requested a review from a team as a code owner June 2, 2026 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants