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

fix(e2e): repair three Linux specs that the afternoon's merges invalidated

Louis Beaumont7670a60325c8
diff --git a/apps/screenpipe-app-tauri/e2e/specs/meeting-summary-recovery.spec.ts b/apps/screenpipe-app-tauri/e2e/specs/meeting-summary-recovery.spec.ts
index 74c43a844..83a30c820 100644
--- a/apps/screenpipe-app-tauri/e2e/specs/meeting-summary-recovery.spec.ts
+++ b/apps/screenpipe-app-tauri/e2e/specs/meeting-summary-recovery.spec.ts
@@ -593,12 +593,23 @@ describe("meeting summary recovery controls", function () {
}
).__meetingSummaryRecoveryRunBody,
);
- expect(runBody).toEqual({
- meeting_summary: {
- meeting_id: meetingId,
- meeting_end: FIXTURE_END,
- },
- });
+ // meeting_end round-trips through the backend, which serialises UTC as
+ // "+00:00" where the fixture's toISOString() writes "Z". Same instant,
+ // different spelling, so compare the instant: pinning the string fails on
+ // the serialiser rather than on the rerun payload being right. The key
+ // checks stay, so an extra or renamed field still fails here.
+ const summaryRun = runBody as {
+ meeting_summary: { meeting_id: number; meeting_end: string };
+ };
+ expect(Object.keys(summaryRun)).toEqual(["meeting_summary"]);
+ expect(Object.keys(summaryRun.meeting_summary).sort()).toEqual([
+ "meeting_end",
+ "meeting_id",
+ ]);
+ expect(summaryRun.meeting_summary.meeting_id).toBe(meetingId);
+ expect(Date.parse(summaryRun.meeting_summary.meeting_end)).toBe(
+ Date.parse(FIXTURE_END),
+ );
const transcriptCallsAfterSummary = await browser.execute(
(key: string) => Number(sessionStorage.getItem(key) ?? 0),
TRANSCRIPT_CALLS_KEY,
diff --git a/apps/screenpipe-app-tauri/e2e/specs/settings-sections.spec.ts b/apps/screenpipe-app-tauri/e2e/specs/settings-sections.spec.ts
index be726c68e..ae1d3e094 100644
--- a/apps/screenpipe-app-tauri/e2e/specs/settings-sections.spec.ts
+++ b/apps/screenpipe-app-tauri/e2e/specs/settings-sections.spec.ts
@@ -158,8 +158,17 @@ describe('Settings sections', () => {
windowLabels: string[];
}>('get_app_screen_capture_protection');
expect(initial.requestedHidden).toBe(true);
- expect(initial.platformSupported).toBe(true);
+ // Content protection is a macOS/Windows capability (capture_protection.rs
+ // gates platform_supported on exactly those two). Linux has no equivalent,
+ // so asserting support unconditionally fails there on a platform gap rather
+ // than on anything this test is about. The preference itself is
+ // cross-platform and still asserted below.
+ expect(initial.platformSupported).toBe(
+ process.platform === 'darwin' || process.platform === 'win32',
+ );
expect(initial.e2eBypass).toBe(true);
+ // Never actually hidden here: the e2e bypass keeps windows capturable on
+ // the supported platforms, and Linux cannot hide them at all.
expect(initial.effectiveHidden).toBe(false);
expect(initial.windowLabels).toContain('home');
expect(await toggle.getAttribute('data-state')).toBe('checked');
diff --git a/apps/screenpipe-app-tauri/e2e/specs/zz-enterprise-license-prompt.spec.ts b/apps/screenpipe-app-tauri/e2e/specs/zz-enterprise-license-prompt.spec.ts
index b3fed4229..440d54463 100644
--- a/apps/screenpipe-app-tauri/e2e/specs/zz-enterprise-license-prompt.spec.ts
+++ b/apps/screenpipe-app-tauri/e2e/specs/zz-enterprise-license-prompt.spec.ts
@@ -387,13 +387,24 @@ describe('Enterprise managed pipe enforcement', () => {
await row.waitForExist({ timeout: t(15_000) });
expect((await row.getText()).toLowerCase()).toContain('managed');
- const enabledSwitch = await row.$('[role="switch"]');
+ // dcffc2950 ("master-detail scheduled tasks list") split this view: the row
+ // is now only the summary, and the auto-run switch plus the read-only
+ // explanation moved into the detail pane that opens when a row is selected.
+ // Selecting first is what a user does anyway — the lock is what they see
+ // when they go looking for the toggle.
+ await row.click();
+ const pipeDetail = await $('[data-testid="pipe-detail"]');
+ await pipeDetail.waitForExist({ timeout: t(10_000) });
+
+ const enabledSwitch = await pipeDetail.$('[role="switch"]');
await enabledSwitch.waitForExist({ timeout: t(5_000) });
expect(await enabledSwitch.isEnabled()).toBe(false);
- await row.$('[role="button"]').click();
await browser.waitUntil(
- async () => (await row.getText()).toLowerCase().includes('managed by your organization'),
+ async () =>
+ (await pipeDetail.getText())
+ .toLowerCase()
+ .includes('managed by your organization'),
{
timeout: t(10_000),
interval: 250,