From 888edd1058411641119b3fe5a4ac8a6f1c72433f Mon Sep 17 00:00:00 2001 From: pcvantol Date: Mon, 7 Sep 2026 08:02:54 +0200 Subject: [PATCH] Remove duplicate PID from component modal --- src/engineering_platform/assets/dashboard.js | 1 - tests/engineering/dashboard.spec.mjs | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/engineering_platform/assets/dashboard.js b/src/engineering_platform/assets/dashboard.js index f32157b1..5b5c40d6 100644 --- a/src/engineering_platform/assets/dashboard.js +++ b/src/engineering_platform/assets/dashboard.js @@ -3581,7 +3581,6 @@ function showComponentModal(payload) { componentDetailField(fields, t("component.launchd_label"), launchd.label); componentDetailField(fields, t("component.lifecycle_owner"), launchd.label ? t("component.launch_agent") : null); componentDetailField(fields, t("component.lifecycle_status"), launchdLifecycleState(launchd)); - componentDetailField(fields, t("component.process_id"), launchd.pid); componentDetailField(fields, t("component.last_stopped"), launchdLastStopped(launchd)); componentDetailField(fields, t("component.launch_agent"), launchd.plist_path); componentDetailField( diff --git a/tests/engineering/dashboard.spec.mjs b/tests/engineering/dashboard.spec.mjs index 900c2002..acfb0f14 100644 --- a/tests/engineering/dashboard.spec.mjs +++ b/tests/engineering/dashboard.spec.mjs @@ -7817,7 +7817,7 @@ test.describe("Engineering Status browser smoke", () => { const content = page.locator("#componentModalContent"); await expect(content).toContainText("Lifecycle-beheerderLaunchAgent"); await expect(content).toContainText("Lifecycle-statusActief"); - await expect(content).toContainText("PID321"); + await expect(content.getByText("PID", { exact: true })).toHaveCount(0); await expect(content).toContainText("Laatst gestoptNooit gestopt"); await expect(content).toContainText("Huidig geheugenPID 321: 2.0 MiB"); });