Skip to content

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

TypeScript

test(control-ui): r8-l27 wait for settled folder listing

Josué4b63d5e62681
diff --git a/control-ui/components/__tests__/GfsBrowser.revalidation.integration.test.tsx b/control-ui/components/__tests__/GfsBrowser.revalidation.integration.test.tsx
index c327ae65a..55f9f2c55 100644
--- a/control-ui/components/__tests__/GfsBrowser.revalidation.integration.test.tsx
+++ b/control-ui/components/__tests__/GfsBrowser.revalidation.integration.test.tsx
@@ -424,13 +424,16 @@ describe('GfsBrowser authoritative revalidation integration', () => {
<GfsBrowser />
</ToastProvider>
)
+ const browser = screen.getByRole('region', { name: 'EvenDrive browser' })
await waitFor(() => expect(streamControllers).toHaveLength(1))
await screen.findByRole('button', { name: 'work' })
+ await waitFor(() => expect(browser).not.toHaveAttribute('aria-busy', 'true'))
fireEvent.click(screen.getByRole('button', { name: 'work' }))
await screen.findByRole('button', { name: 'stale.txt' })
const breadcrumb = screen.getByRole('navigation', { name: 'Breadcrumb' })
fireEvent.click(breadcrumb.querySelector('button')!)
await screen.findByRole('button', { name: 'work' })
+ await waitFor(() => expect(browser).not.toHaveAttribute('aria-busy', 'true'))
folderOpened = true
fireEvent.click(screen.getByRole('button', { name: 'work' }))
await screen.findByRole('button', { name: 'stale.txt' })
diff --git a/control-ui/package-lock.json b/control-ui/package-lock.json
index 1c09db4d9..ac4049bd1 100644
--- a/control-ui/package-lock.json
+++ b/control-ui/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "clerum-control-ui",
- "version": "0.1.699",
+ "version": "0.1.700",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "clerum-control-ui",
- "version": "0.1.699",
+ "version": "0.1.700",
"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 89bab4924..b06573f89 100644
--- a/control-ui/package.json
+++ b/control-ui/package.json
@@ -1,6 +1,6 @@
{
"name": "clerum-control-ui",
- "version": "0.1.699",
+ "version": "0.1.700",
"private": true,
"scripts": {
"dev": "NEXT_IGNORE_INCORRECT_LOCKFILE=1 next dev",