Skip to content

Commit 437a7d3

Browse files
committed
Fixed failing link toolbar tests
1 parent 50fdda4 commit 437a7d3

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

tests/src/end-to-end/ariakit/ariakit.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ test.describe("Check Ariakit UI", () => {
3535

3636
await page.keyboard.type("link");
3737
await page.keyboard.press("Enter");
38+
await page.waitForTimeout(500);
3839
await page.keyboard.press("ArrowLeft");
40+
await page.keyboard.press("ArrowRight");
3941

4042
await page.waitForTimeout(500);
4143
expect(await page.screenshot()).toMatchSnapshot("ariakit-link-toolbar.png");

tests/src/end-to-end/shadcn/shadcn.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ test.describe("Check ShadCN UI", () => {
3535

3636
await page.keyboard.type("link");
3737
await page.keyboard.press("Enter");
38+
await page.waitForTimeout(500);
3839
await page.keyboard.press("ArrowLeft");
40+
await page.keyboard.press("ArrowRight");
3941

4042
await page.waitForTimeout(700);
4143
expect(await page.screenshot()).toMatchSnapshot("shadcn-link-toolbar.png");

tests/src/end-to-end/theming/theming.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ test.describe("Check Dark Theme is Automatically Applied", () => {
4646
await page.waitForTimeout(500);
4747
await page.keyboard.type("link");
4848
await page.keyboard.press("Enter");
49+
await page.waitForTimeout(500);
4950
await page.keyboard.press("ArrowLeft");
51+
await page.keyboard.press("ArrowRight");
5052

5153
await page.waitForTimeout(500);
5254
expect(await page.screenshot()).toMatchSnapshot("dark-link-toolbar.png");

0 commit comments

Comments
 (0)