Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

fix(frontend): refine summary hover polish

rcourtmanf7ea50d32faa
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
index ce3b9dad63..37280762c2 100644
--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md
+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
@@ -227,8 +227,8 @@ connections` visible as the API-backed alternative for Proxmox and
`frontend-modern/src/routing/resourceLinks.ts` instead of freezing raw
route strings or provider-local link builders inside feature panels.
15. Keep shared summary-card emphasis coherent. When shared summary primitives enter an `inactive` state, `SummaryMetricCard`, `InteractiveSparkline`, and `DensityMap` must all demote background context together so storage, infrastructure, and workloads read as one interaction model instead of mixing page-local opacity, sticky-shell, or highlight rules.
-16. Keep density-map summaries overview-first. When a shared summary density map receives row focus or chart-hover emphasis, `frontend-modern/src/components/shared/DensityMap.tsx`, `frontend-modern/src/components/shared/useDensityMapState.ts`, and `frontend-modern/src/components/shared/densityMapModel.ts` must preserve the multi-entity overview rows and layer focused-entity detail into the card chrome instead of swapping the card into a single-series chart, dimming the rest of the map into unusable background noise, duplicating cursor-value tooltip copy, or covering the heatmap body with a floating detail overlay.
-17. Keep sparkline scrubbing source-local and sibling-sync timestamp-based. The chart a user is actively scrubbing in `frontend-modern/src/components/shared/InteractiveSparkline.tsx` and `frontend-modern/src/components/shared/useInteractiveSparklineState.ts` must keep its dashed hover cursor on the real local mouse `x`, while sibling cards may map the shared hover timestamp onto their own timelines. Shared cursor sync must not snap the source chart back onto the nearest sample timestamp, and the rendered SVG/canvas hover cursor must bind to the actual numeric cursor coordinate rather than a boolean guard state.
+16. Keep density-map summaries overview-first. When a shared summary density map receives row focus or chart-hover emphasis, `frontend-modern/src/components/shared/DensityMap.tsx`, `frontend-modern/src/components/shared/useDensityMapState.ts`, and `frontend-modern/src/components/shared/densityMapModel.ts` must preserve the multi-entity overview rows and layer focused-entity detail into the card chrome instead of swapping the card into a single-series chart, dimming the rest of the map into unusable background noise, duplicating cursor-value tooltip copy, or covering the heatmap body with a floating detail overlay. That focused rail must only surface complementary context such as the active entity identity, sparkline, and peak value; it must not repeat a second `Latest` or current-value readout that the hover tooltip already owns.
+17. Keep sparkline scrubbing source-local and sibling-sync timestamp-based. The chart a user is actively scrubbing in `frontend-modern/src/components/shared/InteractiveSparkline.tsx` and `frontend-modern/src/components/shared/useInteractiveSparklineState.ts` must keep its dashed hover cursor on the real local mouse `x`, while sibling cards may map the shared hover timestamp onto their own timelines. Shared cursor sync must not snap the source chart back onto the nearest sample timestamp, the rendered SVG/canvas hover cursor must bind to the actual numeric cursor coordinate rather than a boolean guard state, the time cursor must span the chart viewport instead of collapsing to the series height, and the hover tooltip must track the pointer instead of anchoring to the chart top edge.
18. Keep shared contextual focus canonical after adoption. Once a summary or table surface enters route-backed contextual focus, future additions must extend `frontend-modern/src/components/shared/contextualFocus.ts` and its guardrail tests rather than forking another helper for workload IDs, resource IDs, or scroll-preserving same-route selection.
19. Keep shared infrastructure/resource selectors on the canonical agent-facet
truth. Shared primitives and settings-facing selector helpers must treat
diff --git a/frontend-modern/src/components/shared/DensityMap.tsx b/frontend-modern/src/components/shared/DensityMap.tsx
index 9a601e3a2d..10f385a51d 100644
--- a/frontend-modern/src/components/shared/DensityMap.tsx
+++ b/frontend-modern/src/components/shared/DensityMap.tsx
@@ -79,14 +79,6 @@ export const DensityMap: Component<DensityMapProps> = (props) => {
}
>
<div class="flex shrink-0 items-center gap-3 leading-none">
- <div class="flex flex-col items-start">
- <span class="text-[9px] uppercase tracking-wide text-slate-500 dark:text-slate-400">
- Latest
- </span>
- <span class="mt-0.5 font-semibold text-slate-900 dark:text-slate-50">
- {formatDetailValue(detail().currentValue)}
- </span>
- </div>
<div class="flex flex-col items-start">
<span class="text-[9px] uppercase tracking-wide text-slate-500 dark:text-slate-400">
Peak
diff --git a/frontend-modern/src/components/shared/InteractiveSparkline.tsx b/frontend-modern/src/components/shared/InteractiveSparkline.tsx
index 9c4d9e9377..d14a071844 100644
--- a/frontend-modern/src/components/shared/InteractiveSparkline.tsx
+++ b/frontend-modern/src/components/shared/InteractiveSparkline.tsx
@@ -123,7 +123,7 @@ export const InteractiveSparkline: Component<InteractiveSparklineProps> = (props
<Show when={sparkline.activeHoverCursorX() !== null}>
<line
x1={sparkline.activeHoverCursorX() ?? 0}
- y1={Math.max(0, (sparkline.activeHoverState()?.minY ?? 4) - 4)}
+ y1={0}
x2={sparkline.activeHoverCursorX() ?? 0}
y2={sparkline.vbH}
stroke="currentColor"
@@ -210,6 +210,7 @@ export const InteractiveSparkline: Component<InteractiveSparklineProps> = (props
<Show when={sparkline.hoveredState()}>
{(hover) => (
<div
+ data-sparkline-tooltip="true"
class="fixed pointer-events-none text-xs rounded px-2 py-1.5 shadow-lg border border-slate-600"
style={{
left: `${hover().tooltipX}px`,
diff --git a/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts b/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts
index c8d49e5406..8eb7140c81 100644
--- a/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts
+++ b/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts
@@ -541,7 +541,9 @@ describe('shared primitive guardrails', () => {
expect(interactiveSparklineSource).toContain('useInteractiveSparklineState');
expect(interactiveSparklineSource).toContain('data-active-series-display');
expect(interactiveSparklineSource).toContain('data-active-hover-cursor-x');
+ expect(interactiveSparklineSource).toContain('data-sparkline-tooltip="true"');
expect(interactiveSparklineSource).toContain('x1={sparkline.activeHoverCursorX() ?? 0}');
+ expect(interactiveSparklineSource).toContain('y1={0}');
expect(interactiveSparklineSource).not.toContain('{(cursorX) => (');
expect(interactiveSparklineSource).toContain('data-rendered-series-count');
expect(interactiveSparklineSource).not.toContain('createEffect');
@@ -566,12 +568,16 @@ describe('shared primitive guardrails', () => {
expect(interactiveSparklineModelSource).toContain('buildInteractiveSparklineChartData');
expect(interactiveSparklineModelSource).toContain('computeInteractiveSparklineHoverState');
expect(interactiveSparklineModelSource).toContain('getInteractiveSparklineCursorXForTimestamp');
+ expect(interactiveSparklineModelSource).toContain('let tooltipY = clientY - 10;');
+ expect(interactiveSparklineModelSource).not.toContain('let tooltipY = chartRect.top - 6;');
expect(interactiveSparklineModelSource).toContain('downsampleLTTB');
expect(interactiveSparklineModelSource).toContain('findNearestMetricPoint');
});
it('keeps density map on shell, runtime, and model owners', () => {
expect(densityMapSource).toContain('useDensityMapState');
+ expect(densityMapSource).not.toContain('Latest');
+ expect(densityMapSource).not.toContain('detail().currentValue');
expect(densityMapSource).not.toContain('timeRangeToMs');
expect(densityMapSource).not.toContain('createSignal');
expect(densityMapSource).not.toContain('ctx.fillRect');
@@ -587,6 +593,8 @@ describe('shared primitive guardrails', () => {
expect(densityMapModelSource).toContain('formatDensityMapHoverTime');
expect(densityMapModelSource).toContain('getDensityMapColumnIndexForTimestamp');
expect(densityMapModelSource).toContain('getDensityMapCellOpacity');
+ expect(densityMapModelSource).not.toContain('currentValue:');
+ expect(densityMapModelSource).not.toContain('hoveredValue:');
});
it('keeps dialog on shell, runtime, and model owners', () => {
diff --git a/frontend-modern/src/components/shared/__tests__/DensityMap.test.tsx b/frontend-modern/src/components/shared/__tests__/DensityMap.test.tsx
index 7f908a4410..a2c62937d4 100644
--- a/frontend-modern/src/components/shared/__tests__/DensityMap.test.tsx
+++ b/frontend-modern/src/components/shared/__tests__/DensityMap.test.tsx
@@ -207,7 +207,6 @@ describe('DensityMap', () => {
expect(detail).toMatchObject({
seriesId: 'alpha',
seriesName: 'Alpha',
- currentValue: 32,
peakValue: 32,
});
expect(detail?.sparklinePath).toContain('M');
@@ -247,9 +246,8 @@ describe('DensityMap', () => {
expect(root?.getAttribute('data-active-hover-timestamp')).toBe('');
expect(root?.getAttribute('data-rendered-series-count')).toBe('2');
expect(screen.getByText('Alpha')).toBeInTheDocument();
- expect(screen.getByText('Latest')).toBeInTheDocument();
expect(screen.getByText('Peak')).toBeInTheDocument();
- expect(screen.getAllByText('32.0')).toHaveLength(2);
+ expect(screen.getAllByText('32.0')).toHaveLength(1);
const overlay = container.querySelector('[data-density-map-focus-detail="true"]');
expect(overlay).not.toBeNull();
expect(overlay).toHaveAttribute('data-density-map-focus-series-id', 'alpha');
diff --git a/frontend-modern/src/components/shared/__tests__/InteractiveSparkline.test.tsx b/frontend-modern/src/components/shared/__tests__/InteractiveSparkline.test.tsx
index 2c8d8768f9..7f655e4aad 100644
--- a/frontend-modern/src/components/shared/__tests__/InteractiveSparkline.test.tsx
+++ b/frontend-modern/src/components/shared/__tests__/InteractiveSparkline.test.tsx
@@ -64,9 +64,12 @@ describe('InteractiveSparkline hover behavior', () => {
fireEvent.mouseMove(svg, { clientX: 199, clientY: 110 });
- expect(svg.querySelector('line[stroke-dasharray="3 3"]')).toBeInTheDocument();
- expect(await screen.findByText('CPU')).toBeInTheDocument();
- expect(screen.getByText('50.0%')).toBeInTheDocument();
+ const hoverLine = svg.querySelector('line[stroke-dasharray="3 3"]');
+ expect(hoverLine).toBeInTheDocument();
+ expect(hoverLine?.getAttribute('y1')).toBe('0');
+ expect(hoverLine?.getAttribute('y2')).toBe('100');
+ expect(await screen.findByText('50.0%')).toBeInTheDocument();
+ expect(container.ownerDocument.querySelector('[data-sparkline-tooltip="true"]')).not.toBeNull();
fireEvent.mouseLeave(svg);
expect(svg.querySelector('line[stroke-dasharray="3 3"]')).toBeNull();
@@ -122,6 +125,7 @@ describe('InteractiveSparkline hover behavior', () => {
Number.parseFloat(root?.getAttribute('data-active-hover-cursor-x') ?? 'NaN'),
).toBeCloseTo(100, 1);
expect(Number.parseFloat(hoverLine?.getAttribute('x1') ?? 'NaN')).toBeCloseTo(100, 1);
+ expect(hoverLine?.getAttribute('y1')).toBe('0');
});
it('publishes synchronized hover identity and clears it on leave', () => {
@@ -302,8 +306,9 @@ describe('InteractiveSparkline hover behavior', () => {
fireEvent.mouseMove(svg, { clientX: 1, clientY: 11 });
- const cpuLabel = await screen.findByText('CPU');
- const tooltip = cpuLabel.closest('div[style]') as HTMLElement | null;
+ const tooltip = container.ownerDocument.querySelector(
+ '[data-sparkline-tooltip="true"]',
+ ) as HTMLElement | null;
expect(tooltip).not.toBeNull();
if (!tooltip) return;
@@ -313,6 +318,60 @@ describe('InteractiveSparkline hover behavior', () => {
expect(top).toBeGreaterThan(40);
});
+ it('anchors the tooltip to the pointer instead of the chart top edge', async () => {
+ vi.useFakeTimers();
+ vi.setSystemTime(new Date('2024-01-01T12:00:00Z'));
+ const now = Date.now();
+
+ const { container } = render(() => (
+ <InteractiveSparkline
+ timeRange="1h"
+ series={[
+ {
+ name: 'CPU',
+ color: '#ff0000',
+ data: [
+ { timestamp: now - 30_000, value: 40 },
+ { timestamp: now - 10_000, value: 50 },
+ ],
+ },
+ ]}
+ />
+ ));
+
+ const svg = container.querySelector('svg');
+ expect(svg).not.toBeNull();
+ if (!svg) return;
+
+ (svg as unknown as { getBoundingClientRect: () => DOMRect }).getBoundingClientRect = () =>
+ ({
+ left: 0,
+ top: 100,
+ width: 200,
+ height: 80,
+ right: 200,
+ bottom: 180,
+ x: 0,
+ y: 100,
+ toJSON: () => ({}),
+ }) as unknown as DOMRect;
+
+ fireEvent.mouseMove(svg, { clientX: 120, clientY: 110 });
+
+ const tooltip = container.ownerDocument.querySelector(
+ '[data-sparkline-tooltip="true"]',
+ ) as HTMLElement | null;
+ expect(tooltip).not.toBeNull();
+ if (!tooltip) return;
+
+ const firstTop = Number.parseFloat(tooltip.style.top);
+
+ fireEvent.mouseMove(svg, { clientX: 120, clientY: 160 });
+
+ const secondTop = Number.parseFloat(tooltip.style.top);
+ expect(secondTop).toBeGreaterThan(firstTop + 30);
+ });
+
it('locks a hovered series on click and unlocks on second click', async () => {
vi.useFakeTimers();
vi.setSystemTime(new Date('2024-01-01T12:00:00Z'));
diff --git a/frontend-modern/src/components/shared/densityMapModel.ts b/frontend-modern/src/components/shared/densityMapModel.ts
index af7c201530..803f3c306c 100644
--- a/frontend-modern/src/components/shared/densityMapModel.ts
+++ b/frontend-modern/src/components/shared/densityMapModel.ts
@@ -29,10 +29,6 @@ export interface DensityMapHoveredState {
}
export interface DensityMapFocusDetail {
- currentValue: number | null;
- currentTimestamp: number | null;
- hoveredValue: number | null;
- hoveredTimestamp: number | null;
peakValue: number | null;
seriesColor: string;
seriesId: string;
@@ -280,7 +276,6 @@ export function buildDensityMapFocusDetail(options: {
const points = series.data.filter(
(point) => point.timestamp >= options.data.windowStart && point.timestamp <= windowEnd,
);
- const currentPoint = points.length > 0 ? points[points.length - 1] : null;
let peakValue: number | null = null;
for (const point of points) {
peakValue = peakValue === null ? point.value : Math.max(peakValue, point.value);
@@ -293,10 +288,6 @@ export function buildDensityMapFocusDetail(options: {
});
return {
- currentValue: currentPoint?.value ?? null,
- currentTimestamp: currentPoint?.timestamp ?? null,
- hoveredValue: activeHoveredState?.value ?? null,
- hoveredTimestamp: activeHoveredState?.timestamp ?? null,
peakValue,
seriesColor: series.color,
seriesId,
@@ -306,7 +297,7 @@ export function buildDensityMapFocusDetail(options: {
}
export function hasDensityMapFocusActivity(detail: DensityMapFocusDetail): boolean {
- return detail.currentValue !== null || detail.peakValue !== null;
+ return detail.peakValue !== null;
}
const buildDensityMapFocusSparklinePath = (options: {
diff --git a/frontend-modern/src/components/shared/interactiveSparklineModel.ts b/frontend-modern/src/components/shared/interactiveSparklineModel.ts
index d0f6e9d01e..e481ed0b83 100644
--- a/frontend-modern/src/components/shared/interactiveSparklineModel.ts
+++ b/frontend-modern/src/components/shared/interactiveSparklineModel.ts
@@ -66,7 +66,6 @@ export interface InteractiveSparklineHoverState {
tooltipY: number;
timestamp: number;
totalValues: number;
- minY: number;
nearestSeriesIndex: number | null;
highlightedSeriesIndex: number | null;
focusedTooltip: boolean;
@@ -480,14 +479,10 @@ export const buildInteractiveSparklineSynchronizedHoverState = ({
chartData,
hoverSync,
vbW,
- vbH,
- yMode,
}: {
chartData: InteractiveSparklineChartData;
hoverSync?: SummaryChartHoverSync | null;
vbW: number;
- vbH: number;
- yMode: 'percent' | 'auto';
}): InteractiveSparklineHoverState | null => {
if (!hoverSync || chartData.validSeries.length === 0 || chartData.rangeMs <= 0) {
return null;
@@ -509,8 +504,6 @@ export const buildInteractiveSparklineSynchronizedHoverState = ({
return null;
}
- const valueToChartY = createInteractiveSparklineValueToY(yMode, chartData.scaleMax, vbH);
- const pointY = valueToChartY(nearest.point.value);
const chartX = ((clampedTimestamp - chartData.windowStart) / chartData.rangeMs) * vbW;
return {
@@ -519,7 +512,6 @@ export const buildInteractiveSparklineSynchronizedHoverState = ({
tooltipY: 0,
timestamp: clampedTimestamp,
totalValues: 1,
- minY: pointY,
nearestSeriesIndex: seriesIndex,
highlightedSeriesIndex: seriesIndex,
focusedTooltip: true,
@@ -576,7 +568,6 @@ export const computeInteractiveSparklineHoverState = ({
: 0;
const valueToChartY = createInteractiveSparklineValueToY(yMode, chartData.scaleMax, vbH);
- let minY = vbH;
let nearestSeriesIndex: number | null = null;
let nearestDistance = Number.POSITIVE_INFINITY;
const values: HoverSeriesValue[] = [];
@@ -587,7 +578,6 @@ export const computeInteractiveSparklineHoverState = ({
if (!nearest) continue;
const point = nearest.point;
const pointY = valueToChartY(point.value);
- if (pointY < minY) minY = pointY;
if (shouldTrackNearest) {
const distance = Math.abs(pointY - chartY);
@@ -658,7 +648,7 @@ export const computeInteractiveSparklineHoverState = ({
const totalValues = focusedTooltip ? tooltipValues.length : values.length;
let tooltipX = clientX;
- let tooltipY = chartRect.top - 6;
+ let tooltipY = clientY - 10;
if (typeof window !== 'undefined') {
const activeTooltipWidth = focusedTooltip ? 150 : tooltipEstimatedWidth;
@@ -681,7 +671,6 @@ export const computeInteractiveSparklineHoverState = ({
tooltipY,
timestamp: tooltipValues[0].timestamp,
totalValues,
- minY,
nearestSeriesIndex,
highlightedSeriesIndex:
highlightNearestSeriesOnHover && focusedTooltip ? effectiveSeriesIndex : null,
diff --git a/frontend-modern/src/components/shared/useInteractiveSparklineState.ts b/frontend-modern/src/components/shared/useInteractiveSparklineState.ts
index ed01017209..42f7ee3774 100644
--- a/frontend-modern/src/components/shared/useInteractiveSparklineState.ts
+++ b/frontend-modern/src/components/shared/useInteractiveSparklineState.ts
@@ -192,8 +192,6 @@ export function useInteractiveSparklineState(
chartData: chartData(),
hoverSync,
vbW,
- vbH,
- yMode: yMode(),
});
});
const synchronizedHoverTimestamp = createMemo<number | null>(() => {
@@ -412,10 +410,9 @@ export function useInteractiveSparklineState(
const cursorX = activeHoverCursorX();
if (cursorX === null) return;
- const hover = activeHoverState();
ctx.save();
const x = (cursorX / vbW) * width;
- const lineStartY = hover ? Math.max(0, hover.minY - 4) : 0;
+ const lineStartY = 0;
const hoverLineGradient = ctx.createLinearGradient(0, lineStartY, 0, height);
hoverLineGradient.addColorStop(0, 'transparent');
hoverLineGradient.addColorStop(0.1, hoverLineColor);
diff --git a/tests/integration/tests/48-summary-hover-selection.spec.ts b/tests/integration/tests/48-summary-hover-selection.spec.ts
index 8d5c481e8a..27adaf1b31 100644
--- a/tests/integration/tests/48-summary-hover-selection.spec.ts
+++ b/tests/integration/tests/48-summary-hover-selection.spec.ts
@@ -312,8 +312,18 @@ async function expectSparklineSourceCursorTracksLocalScrub(
node.querySelector('line[stroke-dasharray="3 3"]')?.getAttribute("x1") ||
"NaN",
),
+ lineY1: Number.parseFloat(
+ node.querySelector('line[stroke-dasharray="3 3"]')?.getAttribute("y1") ||
+ "NaN",
+ ),
+ lineY2: Number.parseFloat(
+ node.querySelector('line[stroke-dasharray="3 3"]')?.getAttribute("y2") ||
+ "NaN",
+ ),
}));
expect(sample.cursorX).toBeCloseTo(sample.lineX, 1);
+ expect(sample.lineY1).toBe(0);
+ expect(sample.lineY2).toBe(100);
samples.push(sample);
}
@@ -322,6 +332,36 @@ async function expectSparklineSourceCursorTracksLocalScrub(
await page.mouse.move(1, 1);
}
+async function expectSparklineTooltipTracksPointer(
+ page: import("@playwright/test").Page,
+ sparklineRoot: import("@playwright/test").Locator,
+): Promise<void> {
+ const surface = sparklineRoot.locator("svg").first();
+ await expect(surface).toBeVisible();
+ const box = await surface.boundingBox();
+ expect(box).not.toBeNull();
+ if (!box) {
+ throw new Error("Sparkline surface has no bounding box");
+ }
+
+ const tooltip = page.locator('[data-sparkline-tooltip="true"]').last();
+
+ await page.mouse.move(box.x + box.width * 0.45, box.y + box.height * 0.2);
+ await expect(tooltip).toBeVisible();
+ const firstTop = await tooltip.evaluate((node) =>
+ Number.parseFloat((node as HTMLElement).style.top || "NaN"),
+ );
+
+ await page.mouse.move(box.x + box.width * 0.45, box.y + box.height * 0.75);
+ await expect(tooltip).toBeVisible();
+ const secondTop = await tooltip.evaluate((node) =>
+ Number.parseFloat((node as HTMLElement).style.top || "NaN"),
+ );
+
+ expect(secondTop).toBeGreaterThan(firstTop + 40);
+ await page.mouse.move(1, 1);
+}
+
async function readSummarySeriesId(
row: import("@playwright/test").Locator,
fallbackAttribute: string,
@@ -413,10 +453,18 @@ test.describe.serial("Summary hover selection", () => {
page,
infrastructureSparklines.nth(0),
);
+ await expectSparklineTooltipTracksPointer(
+ page,
+ infrastructureSparklines.nth(0),
+ );
await expectSparklineSourceCursorTracksLocalScrub(
page,
infrastructureSparklines.nth(1),
);
+ await expectSparklineTooltipTracksPointer(
+ page,
+ infrastructureSparklines.nth(1),
+ );
await page.goto("/workloads", { waitUntil: "domcontentloaded" });
const workloadsSummary = page.getByTestId("workloads-summary");
@@ -445,10 +493,18 @@ test.describe.serial("Summary hover selection", () => {
page,
workloadSparklines.nth(0),
);
+ await expectSparklineTooltipTracksPointer(
+ page,
+ workloadSparklines.nth(0),
+ );
await expectSparklineSourceCursorTracksLocalScrub(
page,
workloadSparklines.nth(1),
);
+ await expectSparklineTooltipTracksPointer(
+ page,
+ workloadSparklines.nth(1),
+ );
const vmwareWorkloadRow = page
.locator('tr[data-guest-id^="vm-"]', { hasText: "warehouse-api-01" })