YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
test: expand seeded source footer by message
Louis Beaumont7aa955fd44c8
diff --git a/apps/screenpipe-app-tauri/e2e/specs/chat-source-file-preview.spec.ts b/apps/screenpipe-app-tauri/e2e/specs/chat-source-file-preview.spec.tsindex 8a7fb5ec2..d06936630 100644--- a/apps/screenpipe-app-tauri/e2e/specs/chat-source-file-preview.spec.ts+++ b/apps/screenpipe-app-tauri/e2e/specs/chat-source-file-preview.spec.ts@@ -130,18 +130,23 @@ async function seedAssistantWithFileSource(await switchToSession(sessionId);}-// The "N sources" footer starts collapsed; click the toggle that previews the-// seeded file so other source footers cannot steal the click.+// The "N sources" footer starts collapsed; click the toggle attached to the+// seeded assistant message so other source footers cannot steal the click.async function expandSeededSourcesFooter(): Promise<void> {await browser.waitUntil(async () =>(await browser.execute(() => {- const button = Array.from(document.querySelectorAll("button")).find((el) => {+ const assistantMessage = Array.from(+ document.querySelectorAll('[data-testid="chat-message-assistant"]'),+ ).find((el) =>+ (el.textContent ?? "").includes("Here is what I found in the skill file"),+ );+ const searchRoot: ParentNode = assistantMessage ?? document;+ const button = Array.from(searchRoot.querySelectorAll("button")).find((el) => {const text = el.textContent ?? "";return (el.getAttribute("aria-expanded") !== null &&- /\bsources?\b/i.test(text) &&- text.includes("e2e-preview.md")+ /\bsources?\b/i.test(text));});if (!button) return false;