From 18d7660014b84cdb7415d50bccf877d0e4fae474 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 30 Jan 2026 04:37:25 +0000 Subject: [PATCH 1/2] Initial plan From 5b6c3090dd770269e52e3d4a7d23b4d36d5909a2 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 30 Jan 2026 04:39:14 +0000 Subject: [PATCH 2/2] Fix flaky filter deselection tests - add wait states and replace race condition Co-authored-by: frano-m <18710366+frano-m@users.noreply.github.com> --- e2e/testFunctions.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/e2e/testFunctions.ts b/e2e/testFunctions.ts index 9a61d9cb1..2169c4fcf 100644 --- a/e2e/testFunctions.ts +++ b/e2e/testFunctions.ts @@ -777,6 +777,7 @@ export async function testDeselectFiltersThroughSearchBar( firstFilterOptionLocator ); await firstFilterOptionLocator.click(); + await page.waitForLoadState("load"); await page.locator("body").click(); // Search for and check the selected filter const searchFiltersInputLocator = page.getByPlaceholder( @@ -790,10 +791,9 @@ export async function testDeselectFiltersThroughSearchBar( filterOptionName ); await expect(filterOptionLocator).toBeVisible(); - await filterOptionLocator - .locator("input[type='checkbox']:checked") - .first() - .click(); + const checkboxLocator = filterOptionLocator.getByRole("checkbox"); + await expect(checkboxLocator).toBeChecked(); + await checkboxLocator.click(); await page.locator("body").click(); const filterTagLocator = getFilterTagLocator(page, filterOptionName); await expect(filterTagLocator).not.toBeVisible();