Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(date-range): remove flaky blur test - FE-6850 #7006

Merged
merged 1 commit into from
Oct 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading