Skip to content

Commit 8ad1940

Browse files
committed
test(e2e): update policy workbench group scope expectation
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 6a1a3bb commit 8ad1940

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

playwright/e2e/policy-workbench-system-default-persistence.spec.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ test('system default persists across edit cycles and can be reset to the system
375375
expect([null, 'none']).toContain(await getSystemSignatureFlowValue(page))
376376
})
377377

378-
test('admin can manage instance and user rules while signature-flow group rules stay blocked', async ({ page }) => {
378+
test('admin can manage instance, group, and user rules when system default is fixed', async ({ page }) => {
379379
const userTarget = userRuleTargetLabel
380380

381381
await ensureUserExists(page.request, userTarget)
@@ -402,12 +402,10 @@ test('admin can manage instance and user rules while signature-flow group rules
402402
await submitSystemRuleAndWait(stableDialog)
403403
expect(await getSystemSignatureFlowValue(page)).toBe('ordered_numeric')
404404

405-
// Signature-flow group rules are intentionally blocked once the instance rule is fixed.
405+
// Instance admins can still create group-level exceptions even when the system default is fixed.
406406
await stableDialog.getByRole('button', { name: 'Create rule' }).first().click()
407407
const groupScopeOption = await getCreateScopeOption(stableDialog.page(), 'Group')
408-
await expect(groupScopeOption).toBeDisabled()
409-
const createScopeDialog = await getCreateScopeDialog(stableDialog.page())
410-
await expect(createScopeDialog.getByText(/^Group:\s+Blocked by the global default\.$/i)).toBeVisible()
408+
await expect(groupScopeOption).toBeEnabled()
411409

412410
// User rule: create
413411
const userScopeOption = await getCreateScopeOption(stableDialog.page(), 'User')

0 commit comments

Comments
 (0)