Skip to content

Commit ec6aae6

Browse files
frano-mclaude
andauthored
fix: fix flaky deselect filters e2e test (#4751) (#4753)
* fix: fix flaky deselect filters e2e test (#4751) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * fix: wait for checkbox checked state after click instead of filter tag (#4751) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Fran McDade <18710366+frano-m@users.noreply.github.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 0959188 commit ec6aae6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

e2e/testFunctions.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -779,6 +779,8 @@ export async function testDeselectFiltersThroughSearchBar(
779779
firstFilterOptionLocator
780780
);
781781
await firstFilterOptionLocator.click();
782+
// Wait for the checkbox to be checked, confirming the filter state update completed.
783+
await expect(firstFilterOptionLocator.getByRole("checkbox")).toBeChecked();
782784
await page.waitForLoadState("load");
783785
await page.locator("body").click();
784786
// Search for and check the selected filter

0 commit comments

Comments
 (0)