Skip to content

Commit dec735c

Browse files
committed
fixup! fixup! test: stablize playwright tests
1 parent c6a1f39 commit dec735c

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

tests/playwright/e2e/users/users-groups.spec.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,10 @@ test.describe('Settings: Delete an empty group', () => {
109109
await expect(settingsPage.groupListItem(groupName)).toHaveCount(0)
110110

111111
// Verify backend
112+
// `group:list --output=json` returns the group map directly ({"name":[members]}),
113+
// with no `groups` wrapper — unlike `user:info`.
112114
const { stdout: jsonList } = await runOcc(['group:list', '--output=json'])
113-
const { groups } = JSON.parse(jsonList)
115+
const groups = JSON.parse(jsonList)
114116
expect(Object.keys(groups)).not.toContain(groupName)
115117
})
116118
})
@@ -147,8 +149,10 @@ test.describe('Settings: Delete a non-empty group', () => {
147149

148150
await expect(settingsPage.groupListItem(groupName)).toHaveCount(0)
149151

152+
// `group:list --output=json` returns the group map directly ({"name":[members]}),
153+
// with no `groups` wrapper — unlike `user:info`.
150154
const { stdout: jsonList } = await runOcc(['group:list', '--output=json'])
151-
const { groups } = JSON.parse(jsonList)
155+
const groups = JSON.parse(jsonList)
152156
expect(Object.keys(groups)).not.toContain(groupName)
153157
})
154158
})

0 commit comments

Comments
 (0)