Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript

test: align team agent loading assertion with table

Josué69c2843eadcc
diff --git a/control-ui/components/__tests__/ProfileAdminAgentCompatibility.test.tsx b/control-ui/components/__tests__/ProfileAdminAgentCompatibility.test.tsx
index b2dc2f0b1..161ae9297 100644
--- a/control-ui/components/__tests__/ProfileAdminAgentCompatibility.test.tsx
+++ b/control-ui/components/__tests__/ProfileAdminAgentCompatibility.test.tsx
@@ -322,13 +322,15 @@ describe('profile-admin agent compatibility access', () => {
expect(screen.getByRole('dialog', { name: 'Add agent access' })).toBeInTheDocument()
})
- it('renders team agent loading skeleton rows as listitems', () => {
+ it('renders team agent loading skeleton rows in the shared table', () => {
vi.mocked(api.getAdminTeamAgents).mockReturnValue(new Promise(() => {}))
renderTeamDetails()
- const list = screen.getByRole('list')
- expect(within(list).getAllByRole('listitem')).toHaveLength(3)
+ const table = screen.getByRole('table')
+ expect(within(table).getByRole('columnheader', { name: 'Agent' })).toBeInTheDocument()
+ expect(within(table).getByRole('columnheader', { name: 'Agent ID' })).toBeInTheDocument()
+ expect(within(table).getAllByRole('row')).toHaveLength(4)
})
// TASK-234: the member Agents tab must show the agent's display name
diff --git a/control-ui/package-lock.json b/control-ui/package-lock.json
index 3a394d317..ace5d18fc 100644
--- a/control-ui/package-lock.json
+++ b/control-ui/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "clerum-control-ui",
- "version": "0.1.703",
+ "version": "0.1.704",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "clerum-control-ui",
- "version": "0.1.703",
+ "version": "0.1.704",
"dependencies": {
"@clerum/display-field": "file:../packages/display-field",
"@clerum/frontend-components": "file:../packages/frontend-components",
diff --git a/control-ui/package.json b/control-ui/package.json
index 17049afb2..7b4f7e30a 100644
--- a/control-ui/package.json
+++ b/control-ui/package.json
@@ -1,6 +1,6 @@
{
"name": "clerum-control-ui",
- "version": "0.1.703",
+ "version": "0.1.704",
"private": true,
"scripts": {
"dev": "NEXT_IGNORE_INCORRECT_LOCKFILE=1 next dev",