Skip to content

Commit 7e42908

Browse files
committed
fix e2e
1 parent 0c4595f commit 7e42908

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

e2e/projects.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ test("project page renders", async ({ page }) => {
77
await new Promise(r => setTimeout(r, 2000));
88

99
// Intro visible
10-
const intro = await page.locator("text=My side projects include");
10+
const intro = await page.locator("text=My side projects range");
1111
expect(await intro.isVisible()).toBe(true);
1212

1313
// Some project is visible too

playwright.config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
import { PlaywrightTestConfig, devices } from "@playwright/test";
22
import path from "path";
3+
import os from "os";
34

45
// Reference: https://playwright.dev/docs/test-configuration
56
// Also: https://github.com/vercel/next.js/blob/canary/examples/with-playwright/playwright.config.ts
67
const config: PlaywrightTestConfig = {
7-
workers: 2,
8+
// Use cores
9+
workers: os.cpus().length,
810
timeout: 30 * 1000,
911
testDir: path.join(__dirname, "e2e"),
1012
retries: 5,

0 commit comments

Comments
 (0)