Use full page heading text in E2E test selectors instead of
generic short terms like /node/i or /pod/i that can match
multiple SectionBox headings on the same page.
Co-Authored-By: Paperclip <noreply@paperclip.ing>
The heading 'Intel GPU — Metrics' was blocked behind the ctxLoading check,
causing the E2E navigation test to timeout when navigating directly to
/c/main/intel-gpu/metrics. The K8s.ResourceClasses.useList() hooks
in IntelGpuDataContext can take time to resolve when navigating directly
to the metrics route (as opposed to via sidebar), causing ctxLoading to
remain true beyond the 15s test timeout.
Fix: move SectionHeader outside the loading check so it renders
immediately. The Loader now appears below the heading while waiting
for context to load. Also disable the Refresh button during ctxLoading.
Updated unit test to verify heading is visible even when ctxLoading=true.
Fixes: headlamp-intel-gpu-plugin#42
Co-Authored-By: Paperclip <noreply@paperclip.ing>