Skip to content

Commit 334eed7

Browse files
committed
Update e2e tests for home page component sections.
1 parent c773b32 commit 334eed7

File tree

1 file changed

+17
-14
lines changed

1 file changed

+17
-14
lines changed

playground/shadcn/__tests__/e2e.test.mts

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,24 @@ testDevAndDeploy(
2121
},
2222
);
2323

24-
testDevAndDeploy("renders all component sections on home page", async ({ page, url }) => {
25-
await page.goto(url);
24+
testDevAndDeploy(
25+
"renders all component sections on home page",
26+
async ({ page, url }) => {
27+
await page.goto(url);
2628

27-
await poll(async () => {
28-
const content = await page.content();
29-
return content.includes("Basic UI Components");
30-
});
29+
await poll(async () => {
30+
const content = await page.content();
31+
return content.includes("Basic UI Components");
32+
});
3133

32-
const content = await page.content();
33-
expect(content).toContain("Basic UI Components");
34-
expect(content).toContain("Form Components");
35-
expect(content).toContain("Data Display");
36-
expect(content).toContain("Interactive Components");
37-
expect(content).toContain("Feedback Components");
38-
});
34+
const content = await page.content();
35+
expect(content).toContain("Basic UI Components");
36+
expect(content).toContain("Form Components");
37+
expect(content).toContain("Data Display");
38+
expect(content).toContain("Interactive Components");
39+
expect(content).toContain("Feedback Components");
40+
},
41+
);
3942

4043
testDevAndDeploy(
4144
"all shadcn/ui components render without console errors",
@@ -123,7 +126,7 @@ testDevAndDeploy(
123126
// Check all major component sections exist on home page
124127
const expectedSections = [
125128
"Basic UI Components",
126-
"Form Components",
129+
"Form Components",
127130
"Data Display",
128131
"Interactive Components",
129132
"Feedback Components",

0 commit comments

Comments
 (0)