Skip to content

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

test: align timeline and meeting transcript CI

Louis Beaumontbd77eff9a373
diff --git a/apps/screenpipe-app-tauri/components/rewind/__tests__/timeline-empty-state.test.tsx b/apps/screenpipe-app-tauri/components/rewind/__tests__/timeline-empty-state.test.tsx
index c5bdca0f3..d629bcd39 100644
--- a/apps/screenpipe-app-tauri/components/rewind/__tests__/timeline-empty-state.test.tsx
+++ b/apps/screenpipe-app-tauri/components/rewind/__tests__/timeline-empty-state.test.tsx
@@ -112,6 +112,17 @@ vi.mock("@/lib/hooks/use-settings", () => ({
vi.mock("@/lib/hooks/use-platform", () => ({
usePlatform: () => ({ isMac: true }),
}));
+vi.mock("@/lib/hooks/use-is-enterprise-build", () => ({
+ useEnterpriseBuildStatus: () => ({
+ isEnterprise: true,
+ resolved: true,
+ error: false,
+ }),
+}));
+vi.mock("@/lib/hooks/use-timeline-cache", () => ({
+ shouldRestrictTimelineHistory: () => false,
+ useAuthoritativeTimelineHistoryAccess: () => false,
+}));
vi.mock("@/lib/hooks/use-pipes", () => ({
usePipes: () => ({ promptPipes: [], templatePipes: [] }),
}));
diff --git a/crates/screenpipe-db/tests/untranscribed_chunks_test.rs b/crates/screenpipe-db/tests/untranscribed_chunks_test.rs
index 434bf641d..197fc491d 100644
--- a/crates/screenpipe-db/tests/untranscribed_chunks_test.rs
+++ b/crates/screenpipe-db/tests/untranscribed_chunks_test.rs
@@ -476,11 +476,10 @@ mod tests {
assert_eq!(rows[1].source, "live");
assert_eq!(rows[1].audio_chunk_id, None);
- // Input (mic) rows expose a name only once a real global speaker is
- // assigned; the raw provider label is suppressed so the client renders
- // "me" — otherwise mic lines masked user assignments (unrenameable
- // "me" bug) or leaked diarization labels for the user's own voice.
- assert_eq!(rows[1].speaker_name, None);
+ // Preserve the live provider's speaker label until voice backfill assigns
+ // a global speaker. A microphone is a capture source, not proof that every
+ // diarized voice on it belongs to the local user.
+ assert_eq!(rows[1].speaker_name.as_deref(), Some("Louis"));
// The opposite-direction overlap row is KEPT (different participant), so it
// sits between the live segment and the later background row.