Repository navigation
fix(rbac): refine the RBAC v2 prototype - #3255
RemiBonnet wants to merge 1 commit into
Conversation
|
Qovery can create a Preview Environment for this PR.
This comment has been generated from Qovery AI 🤖.
|
|
View your CI Pipeline Execution ↗ for commit 9aa93c1
💡 With Ultracache enabled, Nx Cloud learns each task's file inputs in CI and uses them on later runs. Turn on Ultracache in workspace settings ↗ · Read docs ↗ ☁️ Nx Cloud last updated this comment at |
There was a problem hiding this comment.
1 issue found across 5 files
Confidence score: 4/5
- In
settings-rbac-v2-prototype.spec.tsx, the assertion no longer proves the Members prompt was removed. Assert that theConnect an IdPbutton is absent and thatWithout IdPis selected by default.
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="libs/domains/organizations/feature/src/lib/settings-rbac-v2-prototype/settings-rbac-v2-prototype.spec.tsx">
<violation number="1" location="libs/domains/organizations/feature/src/lib/settings-rbac-v2-prototype/settings-rbac-v2-prototype.spec.tsx:94">
P2: This assertion is vacuous after the copy change and does not prove the Members prompt was removed. Assert that the `Connect an IdP` button is absent, and verify `Without IdP` is selected by default.</violation>
</file>
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
| expect(screen.queryByText('Groups')).not.toBeInTheDocument() | ||
| expect(screen.getByRole('button', { name: 'Remove Admin' })).toBeInTheDocument() | ||
| expect(screen.getByText('Manage access from your identity provider')).toBeInTheDocument() | ||
| expect(screen.queryByText('Manage access from your identity provider')).not.toBeInTheDocument() |
There was a problem hiding this comment.
P2: This assertion is vacuous after the copy change and does not prove the Members prompt was removed. Assert that the Connect an IdP button is absent, and verify Without IdP is selected by default.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At libs/domains/organizations/feature/src/lib/settings-rbac-v2-prototype/settings-rbac-v2-prototype.spec.tsx, line 94:
<comment>This assertion is vacuous after the copy change and does not prove the Members prompt was removed. Assert that the `Connect an IdP` button is absent, and verify `Without IdP` is selected by default.</comment>
<file context>
@@ -86,20 +86,18 @@ describe('SettingsRbacV2Page', () => {
expect(screen.queryByText('Groups')).not.toBeInTheDocument()
expect(screen.getByRole('button', { name: 'Remove Admin' })).toBeInTheDocument()
- expect(screen.getByText('Manage access from your identity provider')).toBeInTheDocument()
+ expect(screen.queryByText('Manage access from your identity provider')).not.toBeInTheDocument()
- await userEvent.click(screen.getByRole('button', { name: 'Connect an IdP' }))
</file context>
| expect(screen.queryByText('Manage access from your identity provider')).not.toBeInTheDocument() | |
| expect(screen.queryByRole('button', { name: 'Connect an IdP' })).not.toBeInTheDocument() | |
| expect(screen.getByRole('radio', { name: /^Without IdP/ })).toHaveAttribute('data-state', 'on') |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## feat/rbacv2-ui-prototype #3255 +/- ##
============================================================
- Coverage 55.71% 55.67% -0.05%
============================================================
Files 792 791 -1
Lines 20587 20559 -28
Branches 6299 6295 -4
============================================================
- Hits 11470 11446 -24
+ Misses 7371 7368 -3
+ Partials 1746 1745 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Summary
Issue: Follow-up to #3181
Refine the RBAC v2 prototype based on review feedback.
How to test
Screenshots / Recordings
Testing
PR Checklist
.cursor/rules)feat(service): add new Terraform service) - required for semantic-releaseOpen in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.Summary by cubic
Removes the identity provider prompt from the Members page of the RBAC v2 prototype so the members list appears directly below the heading.
idp-nudge.tsxcomponent and its connector modal.Written for commit 9aa93c1. Summary will update on new commits.