Skip to content

Commit

Permalink
test(date-range): remove flaky blur test
Browse files Browse the repository at this point in the history
  • Loading branch information
DipperTheDan committed Oct 9, 2024
1 parent 1fa5aa9 commit 44f7d2e
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions src/components/date-range/date-range.pw.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -506,30 +506,6 @@ test.describe("Event tests for DateRange component", () => {
});
});

test("should call onBlur callback when a blur event is triggered", async ({
mount,
page,
}) => {
let callbackCount = 0;
await mount(
<DateRangeCustom
onBlur={() => {
callbackCount += 1;
}}
/>
);

await textboxInput(page).nth(START_DATE_RANGE_INDEX).press("Tab");

await expect(callbackCount).toEqual(0);

const focusedElement = page.locator("*:focus");
await focusedElement.press("Tab");
await page.locator("body").click();

await expect(callbackCount).toEqual(1);
});

test("should call onChange callback when a type event is triggered", async ({
mount,
page,
Expand Down

0 comments on commit 44f7d2e

Please sign in to comment.