Skip to content

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

TypeScript

test: re-query markdown editor by label inside waitFor

Diego Zacarias8aae59ea19ae
diff --git a/control-ui/components/__tests__/HostIdentityTab.test.tsx b/control-ui/components/__tests__/HostIdentityTab.test.tsx
index e1adecc68..46120be69 100644
--- a/control-ui/components/__tests__/HostIdentityTab.test.tsx
+++ b/control-ui/components/__tests__/HostIdentityTab.test.tsx
@@ -24,7 +24,7 @@ describe('HostIdentityTab', () => {
async function expectMarkdownEditorValue(name: RegExp, value: string) {
const editor = await findMarkdownEditor(name)
- await waitFor(() => expect(editor).toHaveValue(value), { timeout: 10000 })
+ await waitFor(() => expect(screen.getByLabelText(name)).toHaveValue(value), { timeout: 10000 })
return editor
}
diff --git a/control-ui/package-lock.json b/control-ui/package-lock.json
index d546f0740..4067d27be 100644
--- a/control-ui/package-lock.json
+++ b/control-ui/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "clerum-control-ui",
- "version": "0.1.348",
+ "version": "0.1.349",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "clerum-control-ui",
- "version": "0.1.348",
+ "version": "0.1.349",
"dependencies": {
"@clerum/llm-providers": "file:../packages/llm-providers",
"@clerum/workflow-recipe-capability-policy": "file:../packages/workflow-recipe-capability-policy",
diff --git a/control-ui/package.json b/control-ui/package.json
index 272bd0c67..18f386936 100644
--- a/control-ui/package.json
+++ b/control-ui/package.json
@@ -1,6 +1,6 @@
{
"name": "clerum-control-ui",
- "version": "0.1.348",
+ "version": "0.1.349",
"private": true,
"scripts": {
"dev": "NEXT_IGNORE_INCORRECT_LOCKFILE=1 next dev",