Repository navigation
refactor(electron): rename electron.launch()'s args option to launchArguments - #2460
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Change: Refactor Merge Risk:
|
Bring docs/pt/electron.mdx in line with main's English after e2e-inc#2447, e2e-inc#2448, and e2e-inc#2460: an element inside an inert subtree is found by getByText, getByTestId, and electron.locator(), and input to it fails with "it is inert"; the fixture table, the Security details, and the options moved to /reference/electron; the aria-owns row is gone; and electron.launch() takes launchArguments. Add the Bug bashes section e2e-inc#2448 moved into docs/explore.mdx, reusing the earlier pt translation of the deleted bug-bash page, with the new title, description, lede sentence, and MCP server card. The electron page keeps English's /reference/web#ondialog anchor, which main had dropped: pt/reference/web has an onDialog heading, so it resolves.
* docs(pt): sync 13 pages with English Brings electron, executors, explore, integrations/revyl, migrate/playwright, reference/agent, reference/cli, reference/config, reference/engine, reference/errors, reference/screen, subscriptions, and telemetry in line with main 5a2adf1, and adds three glossary rows. * docs(pt): re-sync electron and explore with English after e2e-inc#2448 Bring docs/pt/electron.mdx in line with main's English after e2e-inc#2447, e2e-inc#2448, and e2e-inc#2460: an element inside an inert subtree is found by getByText, getByTestId, and electron.locator(), and input to it fails with "it is inert"; the fixture table, the Security details, and the options moved to /reference/electron; the aria-owns row is gone; and electron.launch() takes launchArguments. Add the Bug bashes section e2e-inc#2448 moved into docs/explore.mdx, reusing the earlier pt translation of the deleted bug-bash page, with the new title, description, lede sentence, and MCP server card. The electron page keeps English's /reference/web#ondialog anchor, which main had dropped: pt/reference/web has an onDialog heading, so it resolves. * docs(pt): point the explore MCP card at /coding-agents without an anchor pt/coding-agents.mdx lags English after e2e-inc#2448, so the site gives it ids of its own and #let-the-agent-use-the-app misses there. Link to the page until pt/coding-agents catches up.
electron.launch({ args })is nowelectron.launch({ launchArguments }), the name the target'sapp.launchArgumentsand mobile'sdevice.openApp(app, { launchArguments })already use.app.launchArguments, andenv,cwd, andtimeoutkeep their names.electron.launch()is unreleased (feat(electron): per-test launch, keyboard, and window evaluate #2406,@e2e-dev/electronis0.0.0on npm), so this is not a breaking change. The pending changeset.changeset/electron-per-test-launch.mdis edited in place.INVALID_ARGUMENT(packages/electron/src/options.ts:147).One difference from mobile stays, for review: on Electron the test's
launchArgumentsare added after the target's, whiledevice.openAppreplaces the target's for that launch.Verified
Ran it locally: yes
pnpm --filter @e2e-dev/electron-testbed test: 87 of 87 pass, withtests/fixture.e2e.tslaunching the app throughelectron.launch({ launchArguments: ['--per-test'], env })and reading--per-testback fromprocess.argvin the main process, afterapp.restart()too.Summary by CodeRabbit
electron.launch()option fromargstolaunchArgumentsacross the API, examples, and migration guidance. Existing validation and launch behavior remain unchanged.