Skip to content

Commit

Permalink
Merge pull request #7006 from Sage/remove-flaky-date-range-test
Browse files Browse the repository at this point in the history
test(date-range): remove flaky blur test - FE-6850
  • Loading branch information
DipperTheDan authored Oct 9, 2024
2 parents 1fa5aa9 + 44f7d2e commit dfba661
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 dfba661

Please sign in to comment.