E2E test failure: 'navigation between plugin views works' — GPU Nodes sidebar link not found #34

Closed
opened 2026-03-24 23:42:17 +00:00 by privilegedescalation-qa[bot] · 1 comment
privilegedescalation-qa[bot] commented 2026-03-24 23:42:17 +00:00 (Migrated from github.com)

Bug Report

Severity: CI blocking on main (E2E workflow)

Failing Test

e2e/intel-gpu.spec.ts:59:7Intel GPU plugin smoke tests › navigation between plugin views works

Error

Error: expect(locator).toBeVisible() failed

Locator: getByRole('navigation', { name: 'Navigation' }).getByRole('link', { name: /gpu nodes/i })
Expected: visible
Timeout: 10000ms
Error: element(s) not found

Location: e2e/intel-gpu.spec.ts:68

const nodesLink = sidebar.getByRole('link', { name: /gpu nodes/i });
await expect(nodesLink).toBeVisible();  // line 68 — FAILS

Behavior

The test expects a sidebar navigation link matching /gpu nodes/i to be visible, but the element is not present in the rendered page. 6 of 7 tests pass; only this test fails, and it fails consistently across retries.

History

This failure is pre-existing — present in runs before PR #33 was merged (run IDs 23517224401, 23516934712). It is not a regression from the lockfile fix.

Possible Causes

  1. The plugin registers a "GPU Nodes" route/sidebar entry conditionally (e.g., only when Intel GPU hardware is detected in the cluster) — the dev cluster may not have GPU hardware
  2. The sidebar link was never implemented or uses a different label than gpu nodes
  3. Navigation setup in the test (prior steps) leaves the browser in a state where the sidebar is collapsed or unavailable

CI Evidence

  • Run ID: 23517479759 (post-merge of PR #33 on main)
  • Branch: main

cc @cpfarhood

## Bug Report **Severity:** CI blocking on main (E2E workflow) ## Failing Test `e2e/intel-gpu.spec.ts:59:7` — `Intel GPU plugin smoke tests › navigation between plugin views works` ## Error ``` Error: expect(locator).toBeVisible() failed Locator: getByRole('navigation', { name: 'Navigation' }).getByRole('link', { name: /gpu nodes/i }) Expected: visible Timeout: 10000ms Error: element(s) not found ``` **Location:** `e2e/intel-gpu.spec.ts:68` ```ts const nodesLink = sidebar.getByRole('link', { name: /gpu nodes/i }); await expect(nodesLink).toBeVisible(); // line 68 — FAILS ``` ## Behavior The test expects a sidebar navigation link matching `/gpu nodes/i` to be visible, but the element is not present in the rendered page. 6 of 7 tests pass; only this test fails, and it fails consistently across retries. ## History This failure is pre-existing — present in runs before PR #33 was merged (run IDs 23517224401, 23516934712). It is not a regression from the lockfile fix. ## Possible Causes 1. The plugin registers a "GPU Nodes" route/sidebar entry conditionally (e.g., only when Intel GPU hardware is detected in the cluster) — the dev cluster may not have GPU hardware 2. The sidebar link was never implemented or uses a different label than `gpu nodes` 3. Navigation setup in the test (prior steps) leaves the browser in a state where the sidebar is collapsed or unavailable ## CI Evidence - Run ID: 23517479759 (post-merge of PR #33 on main) - Branch: `main` cc @cpfarhood
privilegedescalation-qa[bot] commented 2026-03-25 00:12:43 +00:00 (Migrated from github.com)

PR #35 addresses this bug and has been QA-approved. The second commit () rewrites the test to use direct URL navigation instead of sidebar link assertions — the correct fix given that Headlamp sidebar child links don't render from the overview page.

Root cause confirmed: sidebar child links (GPU Nodes, GPU Pods, Metrics) only appear when already on a child route, not after clicking the parent sidebar entry. The new test navigates directly to each route and asserts the heading renders.

Pending CTO re-review (see PR #35). Will close on merge.

PR #35 addresses this bug and has been QA-approved. The second commit () rewrites the test to use direct URL navigation instead of sidebar link assertions — the correct fix given that Headlamp sidebar child links don't render from the overview page. Root cause confirmed: sidebar child links (GPU Nodes, GPU Pods, Metrics) only appear when already on a child route, not after clicking the parent sidebar entry. The new test navigates directly to each route and asserts the heading renders. Pending CTO re-review (see PR #35). Will close on merge.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: privilegedescalation/headlamp-intel-gpu-plugin#34