Skip to content

Commit a28750e

Browse files
gustavoliraclaude
andcommitted
fix(scorecard): select catalog user filter via URL in e2e tests
The e2e suite fails on CI because the click on the 'All' user picker times out: the picker item's container <li> (MUI ListItem container with the count badge as secondary action) intercepts pointer events, so Playwright retries until timeout. This breaks every entity test (60 failures across all locales) while passing locally, where font rendering keeps the click point inside the clickable area. Apply the 'all' user filter through the catalog URL query parameter instead of clicking the picker, removing the hit-testing dependency. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Signed-off-by: Gustavo Lira <guga.java@gmail.com>
1 parent ad8ef98 commit a28750e

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

  • workspaces/scorecard/packages/app-legacy/e2e-tests/pages

workspaces/scorecard/packages/app-legacy/e2e-tests/pages/CatalogPage.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,11 @@ export class CatalogPage {
5151
}
5252

5353
async openCatalog() {
54-
await this.page.goto('/catalog'); // Resolves the issue when "My Groups" sidebar covers the catalog toolbar
55-
await this.page.getByTestId('user-picker-all').getByText('All').click();
54+
// Select the "All" user filter via URL instead of clicking the picker:
55+
// on CI the picker item's container <li> intercepts pointer events and
56+
// the click times out (rendering/font metrics differ from local runs).
57+
await this.page.goto('/catalog?filters[user]=all');
58+
await expect(this.page.getByTestId('user-picker-all')).toBeVisible();
5659
}
5760

5861
async openComponent(componentName: string) {

0 commit comments

Comments
 (0)