Skip to content

E2E Tests - #8

Merged
vc0d35 merged 8 commits into
mainfrom
e2e-chrome-ci
Sep 2, 2026
Merged

E2E Tests#8
vc0d35 merged 8 commits into
mainfrom
e2e-chrome-ci

Conversation

@vc0d35

@vc0d35 vc0d35 commented Sep 1, 2026

Copy link
Copy Markdown
Owner

No description provided.

Real-browser tests exercise behavior the mocked node:test suite cannot:
the forged-SDP ICE-TCP technique against real libwebrtc, and no-cors
fetch classification. Hermetic loopback servers provide known open,
open-silent, and closed targets; tests drive the published module via
page.evaluate and assert on returned ProbeResult JSON.

- e2e/: worker-scoped fixtures boot target + page servers; specs cover
  fetch {open, open-silent, closed}, ICE {open, closed}, and scanPorts
  orchestration (routing, restricted, order, progress).
- CI: new blocking e2e job installs Chromium and lowers the unprivileged
  port floor so the <1024 fetch-route test runs; skips gracefully where
  low ports can't bind (e.g. macOS).
- biome.json makes lint honor .gitignore so Playwright output isn't linted.

Chrome only; Firefox/WebKit are one-line project additions later.
Signed-off-by: v_c0d35 <vini.andrade.dev@gmail.com>
AbortSignal.timeout(t) can fire just before performance.now() measures t
(Node truncates timer delays to whole ms and uses a slightly different
clock), so `durationMs >= 50` failed intermittently on CI's slower clock.
Allow a 5ms tolerance while still asserting the probe waited out the
timeout rather than returning immediately. Behavior of the probe itself
is unchanged.
The 'Introduce e2e tests' commit rewrote comments across the src files
(verbose JSDoc to inline notes) with no logic changes. Restore the
original comments as the baseline before applying a deliberate comment
policy in the next commit.
Drop JSDoc/type boilerplate and comments that just restate the code. Keep
concise notes only where the browser/libwebrtc behavior is non-obvious: the
ICE requestsSent oracle, the < 1024 fetch routing, ICE-TCP check pacing, the
CORP/ORB fetch false-negative, the restricted-port list, and the batch dedup.
No code changes.
Signed-off-by: v_c0d35 <vini.andrade.dev@gmail.com>
@vc0d35
vc0d35 merged commit 370451f into main Sep 2, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant