mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
test(date-picker): use await for range mode
This commit is contained in:
parent
7b6487de2f
commit
56da2b408b
1 changed files with 3 additions and 1 deletions
|
@ -64,7 +64,9 @@ describe("DatePicker", () => {
|
||||||
screen.queryByLabelText("calendar-container"),
|
screen.queryByLabelText("calendar-container"),
|
||||||
).not.toBeInTheDocument();
|
).not.toBeInTheDocument();
|
||||||
await user.click(inputStart);
|
await user.click(inputStart);
|
||||||
expect(screen.getByLabelText("calendar-container")).toBeInTheDocument();
|
expect(
|
||||||
|
await screen.findByLabelText("calendar-container"),
|
||||||
|
).toBeInTheDocument();
|
||||||
});
|
});
|
||||||
|
|
||||||
it("handles disabled state", () => {
|
it("handles disabled state", () => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue