Skip to content

fix(examples): pin with-electron to the published @e2e-dev/electron - #2564

Merged
okwasniewski merged 2 commits into
mainfrom
t3/fix-electron-example-version
Nov 30, 2026
Merged

okwasniewski merged 2 commits into
mainfrom
t3/fix-electron-example-version

Conversation

@okwasniewski

@okwasniewski okwasniewski commented Nov 30, 2026 •

Copy link
Copy Markdown
Member

What

examples/with-electron installs from npm: its @e2e-dev/electron pin is 0.1.0, the version that was published, where it named 0.0.1.

Why

@e2e-dev/electron 0.0.1 was never published (npm has 0.0.0 and 0.1.0), so npm install in a clone of the example fails with ETARGET. e2e init --example with-electron is not affected, because init rewrites the @e2e-dev/* ranges on copy.

How it works

  1. examples/with-electron/package.json:15 pins @e2e-dev/electron to 0.1.0. The pin stays exact, as docs/electron.mdx asks for while the engine is experimental.
  2. examples/with-electron/README.md:45 records the run on the published packages in the "Last checked" note, which described a build from main and the 0.0.1 release.

Issue

None filed. Found while setting up the example from a clone.

Verified

Ran it locally: yes

  • Copied examples/with-electron to a scratch directory outside the workspace, ran npm install, then e2e run with a gateway key. Node 24, macOS 27.
main this PR
npm error notarget No matching version found for @e2e-dev/electron@0.0.1. installs @e2e-dev/electron@0.1.0, e2e@0.26.0, electron@45.5.0
 RUN  e2e v0.26.0
   ✓ |electron| tests/deterministic.e2e.ts > shows the greeting form 460ms
   ✓ |electron| tests/deterministic.e2e.ts > asks for a name when the field is empty 313ms
   ✓ |electron| tests/deterministic.e2e.ts > greets the name you type 319ms
   ✓ |electron| tests/agentic.e2e.ts > the agent gets a greeting 5.22s
   ✓ |electron| tests/agentic.e2e.ts > the agent finds the empty-name error 4.37s

 Test Files  2 passed (2)
      Tests  5 passed (5)

The test run used the range ^0.1.0, which resolved to the same 0.1.0 the exact pin installs.

View guided diff Turn on auto-fix

Summary by CodeRabbit

  • Documentation

    • Updated the Electron example’s verified setup details, including macOS 27, Electron 45.5, and Node 24. The README continues to report passing locator and agent tests and now reflects the current release status.
  • Chores

    • Updated the Electron example to use the current version of its Electron tooling.

@github-actions github-actions Bot added e2e team Opened by the e2e team size:XS Up to 9 changed lines, not counting tests, fixtures, translated docs, or the lockfile labels Nov 30, 2026
@coderabbitai

coderabbitai Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Changes: Electron example update

Layer / File(s) Summary
Dependency pin and validation details
examples/with-electron/package.json, examples/with-electron/README.md
The dev dependency changes from 0.0.1 to 0.1.0. The README lists e2e 0.26.0, @e2e-dev/electron 0.1.0, and macOS 27. It retains Electron 45.5, Node 24, and the passing locator and agent tests.

Possibly related PRs

  • e2e-inc/e2e#2547: Adds the Electron example and pins the package version that this change updates.
  • e2e-inc/e2e#2298: Proposes version 0.0.1 for publication, the version this change replaces in the example.

Change: Bug fix

Merge Risk: Minimal · up to ece4f

This updates the Electron example to a published dependency version so installing from a clone works. No meaningful merge risk remains, since the change touches only an example and its README.

Architecture risk: Low · up to ece4f

The change affects 1 source area.

Changed areas: examples

Review details

Systems and components

  • observed — 2 changed files mapped to examples.
Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 6c44746a-049b-49e3-a2b8-18e622618a4c
Commits

Reviewing files that changed from the base of the PR and between a071cfe and ece4f0c.

Files selected for processing: 2

  • examples/with-electron/README.md
  • examples/with-electron/package.json

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 2 files

View guided diff | Turn on auto-fix | Re-trigger cubic

@okwasniewski
okwasniewski merged commit bae857e into main Nov 30, 2026
42 checks passed
@okwasniewski
okwasniewski deleted the t3/fix-electron-example-version branch November 30, 2026 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

e2e team Opened by the e2e team size:XS Up to 9 changed lines, not counting tests, fixtures, translated docs, or the lockfile

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant