Skip to content

Commit 351c2b4

Browse files
v2: data attributes to ui (#348)
* fix: flaky date input test * remove tsconfig paths
1 parent 4456098 commit 351c2b4

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

libs/components/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
"rolldown": "1.0.0-beta.45",
3737
"typescript": "5.4.5",
3838
"uqr": "^0.1.2",
39-
"vite-tsconfig-paths": "^4.2.1",
4039
"vitest-browser-qwik": "0.0.12"
4140
},
4241
"peerDependencies": {

libs/components/src/date-input/date-input.browser.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,18 +139,23 @@ test("data entry moves focus to next segment", async () => {
139139
test("arrow keys move focus between segments", async () => {
140140
render(<Basic />);
141141

142+
await expect.element(YearSegment).toBeVisible();
142143
await userEvent.keyboard("{Tab}");
143144
await expect.element(YearSegment).toHaveFocus();
144145

146+
await expect.element(MonthSegment).toBeVisible();
145147
await userEvent.keyboard("{ArrowRight}");
146148
await expect.element(MonthSegment).toHaveFocus();
147149

150+
await expect.element(DaySegment).toBeVisible();
148151
await userEvent.keyboard("{ArrowRight}");
149152
await expect.element(DaySegment).toHaveFocus();
150153

154+
await expect.element(MonthSegment).toBeVisible();
151155
await userEvent.keyboard("{ArrowLeft}");
152156
await expect.element(MonthSegment).toHaveFocus();
153157

158+
await expect.element(YearSegment).toBeVisible();
154159
await userEvent.keyboard("{ArrowLeft}");
155160
await expect.element(YearSegment).toHaveFocus();
156161
});

pnpm-lock.yaml

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)