@e2e-dev/web 0.15.5 → 0.15.6-nightly-20261107030214

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/.build.json CHANGED
@@ -1 +1 @@
1
- {"version":"0.15.5"}
1
+ {"version":"0.15.6-nightly-20261107030214"}
package/dist/browser.js CHANGED
@@ -504,6 +504,21 @@ export function createBrowserFixture(surface, context) {
504
504
  mouse: { move: action, wheel: action, down: action, up: action },
505
505
  });
506
506
  }
507
+ /**
508
+ * The expected URL as `toHaveURL` compares it: a string resolved against the
509
+ * base, the way `urlMatches` resolves it, so it reads beside the absolute
510
+ * observed URL. A string that does not parse, and a RegExp, print as written.
511
+ */
512
+ function describeExpectedUrl(expected, baseHref) {
513
+ if (typeof expected !== 'string')
514
+ return String(expected);
515
+ try {
516
+ return new URL(expected, baseHref).href;
517
+ }
518
+ catch {
519
+ return expected;
520
+ }
521
+ }
507
522
  /**
508
523
  * `expect(browser)` matchers: URL, title, and class polling against the
509
524
  * assertion budget. Every read is bounded by the poll's deadline, so a page
@@ -537,9 +552,8 @@ function createBrowserExpectation(deps, negated = false) {
537
552
  if (ignoreCase !== undefined && typeof ignoreCase !== 'boolean') {
538
553
  throw new TestError('INVALID_ARGUMENT', `expect.${negated ? 'not.' : ''}toHaveURL option ignoreCase must be a boolean`);
539
554
  }
540
- const label = typeof expected === 'string' ? expected : String(expected);
541
555
  const target = deps.baseHref();
542
- return poll('toHaveURL', `URL ${label}${ignoreCase === true ? ' (ignoring case)' : ''}`, async (deadline) => {
556
+ return poll('toHaveURL', `URL ${describeExpectedUrl(expected, target)}${ignoreCase === true ? ' (ignoring case)' : ''}`, async (deadline) => {
543
557
  const url = await deps.currentUrl(deadline);
544
558
  return { matches: urlMatches(url, expected, target, ignoreCase), observed: `URL ${url}` };
545
559
  }, options?.timeout);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e2e-dev/web",
3
- "version": "0.15.5",
3
+ "version": "0.15.6-nightly-20261107030214",
4
4
  "description": "Web engine for e2e agentic end-to-end testing, built on Playwright",
5
5
  "keywords": [
6
6
  "e2e",
@@ -50,13 +50,12 @@
50
50
  "playwright-core": "1.64.1"
51
51
  },
52
52
  "peerDependencies": {
53
- "e2e": ">=0.22.1 <1"
53
+ "e2e": "0.23.1-nightly-20261107030214"
54
54
  },
55
55
  "devDependencies": {
56
+ "@napi-rs/image": "1.16.0",
56
57
  "@types/node": "26.6.6",
57
- "@types/pngjs": "6.0.5",
58
- "e2e": "0.23.0",
59
- "pngjs": "7.0.0",
58
+ "e2e": "0.23.1-nightly-20261107030214",
60
59
  "typescript": "7.0.2",
61
60
  "vitest": "5.1.0"
62
61
  },