Add waitForSidebar() call before clicking Rook button to ensure sidebar is fully loaded.
Add 1s explicit wait after clicking Rook button to allow sidebar animation to complete before searching for nested Storage Classes link.
Co-Authored-By: Paperclip <noreply@paperclip.ing>
The storage classes link is nested under the Rook sidebar button and
may not be visible until the Rook section is expanded. Click the Rook
button to expand before asserting visibility.
Also use .first() on heading assertions to avoid strict mode violations
when multiple headings match the regex pattern.
Co-Authored-By: Paperclip <noreply@paperclip.ing>
Add waitForSidebar helper function with explicit sidebar visibility wait
and networkidle state to ensure page is fully loaded before assertions.
This addresses flaky E2E tests where elements were not consistently
found due to timing issues during page transitions.