Uploaded image for project: 'Red Hat Developer Hub Bugs'
  1. Red Hat Developer Hub Bugs
  2. RHDHBUGS-2575

Bug(scorecard): Flaky E2E test failures in catalog navigation due to missing search filter

XMLWordPrintable

    • RHDH F&UI plugins 3286

      *Description of problem:*

      E2E tests navigating to catalog items by name are flaky because the `goToByName` method clicks on items without first filtering the list. When multiple items contain similar names or the catalog has many entries, the wrong item may be selected causing test failures.

      *Prerequisites (if any, like setup, operators/versions):*

      • RHDH e2e-tests
      • Catalog with multiple entities

      *Steps to Reproduce:*

      1. Run e2e tests that navigate to specific catalog items (e.g., scorecard tests)
      2. Observe intermittent failures when catalog has multiple similar entries
      3. Test may click on wrong item or fail to find the expected item

      *Actual results:*

      Tests intermittently fail with errors like:

      • Element not found
      • Wrong entity page loaded
      • Timeout waiting for expected content

      *Expected results:*

      • Tests should reliably navigate to the correct catalog item
      • Search filter should narrow results before selection
      • No flaky failures due to catalog list ambiguity

      *Reproducibility (Always/Intermittent/Only Once):*

      Intermittent

      *Build Details:*

      CI/CD pipeline - showcase-rbac tests

      *Additional info (Such as Logs, Screenshots, etc):*

      Fix adds search filter before clicking:
      ```typescript
      async goToByName(name: string)

      {   await this.page.getByRole("textbox", \{ name: "Search" }

      ).fill(name);
        await this.page.getByRole("link", { name: name }).click();
      }
      ```

      Would you like me to adjust anything?

              rh-ee-hushaik Husne Shabbir Shaik
              rh-ee-hushaik Husne Shabbir Shaik
              RHDH Frontend Plugins & UI
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: