Skip to content

docs: update explanation of setImmediate vs setTimeout #2158

docs: update explanation of setImmediate vs setTimeout

docs: update explanation of setImmediate vs setTimeout #2158

Re-run triggered March 12, 2026 10:47
Status Failure
Total duration 16m 19s
Artifacts 1

playwright.yml

on: pull_request
Get Vercel Preview
8s
Get Vercel Preview
Playwright Tests
16m 5s
Playwright Tests
Fit to window
Zoom out
Zoom in

Annotations

10 errors, 2 warnings, and 1 notice
[chromium] › tests/e2e/general-behavior.spec.ts:83:5 › Node.js Website › Theme › should change to light theme via dropdown: apps/site/tests/e2e/general-behavior.spec.ts#L89
2) [chromium] › tests/e2e/general-behavior.spec.ts:83:5 › Node.js Website › Theme › should change to light theme via dropdown Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.click: Test timeout of 30000ms exceeded. Call log: - waiting for getByRole('button', { name: 'Select theme' }) 87 | 88 | // Set dark first, then switch to light > 89 | await themeToggle.click(); | ^ 90 | await page 91 | .getByRole('menuitem', { name: locators.themeDarkLabel }) 92 | .click(); at /home/runner/work/nodejs.org/nodejs.org/apps/site/tests/e2e/general-behavior.spec.ts:89:25
[chromium] › tests/e2e/general-behavior.spec.ts:83:5 › Node.js Website › Theme › should change to light theme via dropdown: apps/site/tests/e2e/general-behavior.spec.ts#L0
2) [chromium] › tests/e2e/general-behavior.spec.ts:83:5 › Node.js Website › Theme › should change to light theme via dropdown Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Test timeout of 30000ms exceeded.
[chromium] › tests/e2e/general-behavior.spec.ts:83:5 › Node.js Website › Theme › should change to light theme via dropdown: apps/site/tests/e2e/general-behavior.spec.ts#L89
2) [chromium] › tests/e2e/general-behavior.spec.ts:83:5 › Node.js Website › Theme › should change to light theme via dropdown Error: locator.click: Test timeout of 30000ms exceeded. Call log: - waiting for getByRole('button', { name: 'Select theme' }) 87 | 88 | // Set dark first, then switch to light > 89 | await themeToggle.click(); | ^ 90 | await page 91 | .getByRole('menuitem', { name: locators.themeDarkLabel }) 92 | .click(); at /home/runner/work/nodejs.org/nodejs.org/apps/site/tests/e2e/general-behavior.spec.ts:89:25
[chromium] › tests/e2e/general-behavior.spec.ts:83:5 › Node.js Website › Theme › should change to light theme via dropdown: apps/site/tests/e2e/general-behavior.spec.ts#L0
2) [chromium] › tests/e2e/general-behavior.spec.ts:83:5 › Node.js Website › Theme › should change to light theme via dropdown Test timeout of 30000ms exceeded.
[chromium] › tests/e2e/general-behavior.spec.ts:70:5 › Node.js Website › Theme › should change to dark theme via dropdown: apps/site/tests/e2e/general-behavior.spec.ts#L75
1) [chromium] › tests/e2e/general-behavior.spec.ts:70:5 › Node.js Website › Theme › should change to dark theme via dropdown Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.click: Test timeout of 30000ms exceeded. Call log: - waiting for getByRole('button', { name: 'Select theme' }) 73 | }); 74 | > 75 | await themeToggle.click(); | ^ 76 | await page 77 | .getByRole('menuitem', { name: locators.themeDarkLabel }) 78 | .click(); at /home/runner/work/nodejs.org/nodejs.org/apps/site/tests/e2e/general-behavior.spec.ts:75:25
[chromium] › tests/e2e/general-behavior.spec.ts:70:5 › Node.js Website › Theme › should change to dark theme via dropdown: apps/site/tests/e2e/general-behavior.spec.ts#L0
1) [chromium] › tests/e2e/general-behavior.spec.ts:70:5 › Node.js Website › Theme › should change to dark theme via dropdown Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Test timeout of 30000ms exceeded.
[chromium] › tests/e2e/general-behavior.spec.ts:70:5 › Node.js Website › Theme › should change to dark theme via dropdown: apps/site/tests/e2e/general-behavior.spec.ts#L75
1) [chromium] › tests/e2e/general-behavior.spec.ts:70:5 › Node.js Website › Theme › should change to dark theme via dropdown Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.click: Test timeout of 30000ms exceeded. Call log: - waiting for getByRole('button', { name: 'Select theme' }) 73 | }); 74 | > 75 | await themeToggle.click(); | ^ 76 | await page 77 | .getByRole('menuitem', { name: locators.themeDarkLabel }) 78 | .click(); at /home/runner/work/nodejs.org/nodejs.org/apps/site/tests/e2e/general-behavior.spec.ts:75:25
[chromium] › tests/e2e/general-behavior.spec.ts:70:5 › Node.js Website › Theme › should change to dark theme via dropdown: apps/site/tests/e2e/general-behavior.spec.ts#L0
1) [chromium] › tests/e2e/general-behavior.spec.ts:70:5 › Node.js Website › Theme › should change to dark theme via dropdown Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Test timeout of 30000ms exceeded.
[chromium] › tests/e2e/general-behavior.spec.ts:70:5 › Node.js Website › Theme › should change to dark theme via dropdown: apps/site/tests/e2e/general-behavior.spec.ts#L75
1) [chromium] › tests/e2e/general-behavior.spec.ts:70:5 › Node.js Website › Theme › should change to dark theme via dropdown Error: locator.click: Test timeout of 30000ms exceeded. Call log: - waiting for getByRole('button', { name: 'Select theme' }) 73 | }); 74 | > 75 | await themeToggle.click(); | ^ 76 | await page 77 | .getByRole('menuitem', { name: locators.themeDarkLabel }) 78 | .click(); at /home/runner/work/nodejs.org/nodejs.org/apps/site/tests/e2e/general-behavior.spec.ts:75:25
[chromium] › tests/e2e/general-behavior.spec.ts:70:5 › Node.js Website › Theme › should change to dark theme via dropdown: apps/site/tests/e2e/general-behavior.spec.ts#L0
1) [chromium] › tests/e2e/general-behavior.spec.ts:70:5 › Node.js Website › Theme › should change to dark theme via dropdown Test timeout of 30000ms exceeded.
Get Vercel Preview
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: patrickedqvist/wait-for-vercel-preview@d7982701e6fcd3ae073bff929e408e004404d38d. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
Playwright Tests
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda, step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
🎭 Playwright Run Summary
9 failed [chromium] › tests/e2e/general-behavior.spec.ts:70:5 › Node.js Website › Theme › should change to dark theme via dropdown [chromium] › tests/e2e/general-behavior.spec.ts:83:5 › Node.js Website › Theme › should change to light theme via dropdown [chromium] › tests/e2e/general-behavior.spec.ts:102:5 › Node.js Website › Theme › should persist theme across page navigation [firefox] › tests/e2e/general-behavior.spec.ts:70:5 › Node.js Website › Theme › should change to dark theme via dropdown [firefox] › tests/e2e/general-behavior.spec.ts:83:5 › Node.js Website › Theme › should change to light theme via dropdown [firefox] › tests/e2e/general-behavior.spec.ts:102:5 › Node.js Website › Theme › should persist theme across page navigation [webkit] › tests/e2e/general-behavior.spec.ts:70:5 › Node.js Website › Theme › should change to dark theme via dropdown [webkit] › tests/e2e/general-behavior.spec.ts:83:5 › Node.js Website › Theme › should change to light theme via dropdown [webkit] › tests/e2e/general-behavior.spec.ts:102:5 › Node.js Website › Theme › should persist theme across page navigation 9 passed (14.6m)

Artifacts

Produced during runtime
Name Size Digest
playwright-report
30.1 MB
sha256:3521dbaf6f656c115605fa19819c82fb7cb319b1239a29b6de309759959c059a