Commit Graph

102 Commits

Author SHA1 Message Date
Tyler James Leonhardt
52bc869c5d Allow passing in an extension to debug (#290306)
So that the automation can debug an extension
2026-01-26 01:50:20 +00:00
Peng Lyu
e64d58389d vscode mcp: support custom workspace path; enable restart tool (#286297)
* vscode mcp: support specifying workspace path; enable restart tool

* fix: include workspace path in launch options for browser

* fix: ensure workspace path is set for tests requiring a workspace

* Address PR review comments: support optional workspace path

* fix: standardize workspace path variable naming in tests

* fix: fallback to rootPath for workspacePath in CI environments
2026-01-13 16:38:31 -08:00
Tyler James Leonhardt
bc5f6481a5 Enable tracing (#274203)
* Enable tracing

So that we can upload traces instead of just videos.

* feedback
2025-10-30 23:19:54 +00:00
Tyler James Leonhardt
af1cbea727 Add --video and --autostart (#271849)
This enables:
* Playwright video recording
* Starting the Code OSS on server start (for clients like Copilot CLI that don't react to tool list changes)
2025-10-16 23:18:23 +00:00
Matt Bierner
360c9fd134 Add lint rule for as any and bulk ignore all existing breaks
For #269213

This adds a new eslint rule for `as any` and `<any>({... })`. We'd like to remove almost all of these, however right now the first goal is to prevent them in new code. That's why with this first PR I simply add `eslint-disable` comments for all breaks

Trying to get this change in soon after branching off for release to hopefully minimize disruption during debt week work
2025-10-02 23:38:33 -07:00
Tyler James Leonhardt
443daf8d60 Allow configuring userDataDir, ExtensionDir, & usage of in-memory Secret Storage (#263451)
* Allow configuring userDataDir, ExtensionDir, & usage of in-memory Secret Storage

ref https://github.com/microsoft/vscode/issues/262164

* fix a couple references of getRandomUserDataDir
2025-08-27 15:31:27 -04:00
Tyler James Leonhardt
14077dbc5b Inject alpha playwright in to our automation in MCP case (#262564)
This fixes things for MCP... with a hack. But Playwright is not interested in having interop between Playwright & Playwright MCP atm... so this is the best we can do for now.
2025-08-20 21:02:18 +00:00
Benjamin Pasero
d2edee2476 Revert "Allow dialogs in automation" (#262444)
Revert "Allow dialogs in automation (#262417)"

This reverts commit 53c9922948.
2025-08-20 06:24:03 +00:00
Tyler James Leonhardt
53c9922948 Allow dialogs in automation (#262417)
So that mcp can use dialogs and let the user answer the dialogs. This is critical for auth.

This also switches to using the custom dialog in electron so that the driver can interact with it.
2025-08-19 18:56:19 -07:00
Daniel Imms
a3c8ce1482 Force accept function in dispatchKeybinding
One common source of flakiness is just dispatching a keybinding and
not verifying it did its thing. This change adds a few accept functions
and also forces callers to provide an async function so that the caller
considers adding one as it's the norm, not the edge case.

Fixes #246731
2025-07-10 06:49:16 -07:00
Robo
7e4d8e92bc (Reland) fix: smoke tests for stable with editcontext enabled (#251074) 2025-06-10 00:44:09 -07:00
Benjamin Pasero
a8c6b3fd45 Improve process termination handling in smoke tests (#245434)
* Improve process termination handling in smoke tests

* .
2025-04-03 12:31:04 +02:00
Benjamin Pasero
621392c665 refactor: enhance process instance registration and termination logging (#245409) 2025-04-03 09:49:38 +02:00
Benjamin Pasero
cf1cfc5f0d fix: improve process termination handling in launch and Code class (#245380) 2025-04-02 21:24:07 +02:00
Benjamin Pasero
992c6150c3 smoke - try to kill earlier when its safe (#245347) 2025-04-02 16:51:10 +02:00
Benjamin Pasero
10fc28b3b8 tests - enable verbose arg for extension installation tests (#245320) 2025-04-02 13:33:19 +02:00
Benjamin Pasero
71c9069cd8 smoke - try to avoid tree-kill for terminating process (#245330)
On Linux, this will also attempt to kill the zygote process (which is a child of the main process). This causes all sorts of issues.

Also, our integration tests just kill the main process and not a tree of processes, so we can align here.
2025-04-02 12:52:35 +02:00
Benjamin Pasero
4bf8005553 Revert "Revert "smoke - try to exit via close also for Electron"" (#245318) 2025-04-02 11:46:27 +02:00
Benjamin Pasero
377d060721 Revert "smoke - try to exit via close also for Electron" (#245304) 2025-04-02 08:09:11 +02:00
Benjamin Pasero
ac27be2456 smoke - try to exit via close also for Electron (#245253) 2025-04-01 21:03:10 +02:00
Benjamin Pasero
c8d1124a06 smoke - kill electron app if unhealthy (#245226) 2025-04-01 17:58:36 +02:00
Benjamin Pasero
7d2083ed1d tests - allow to run our tests in chrome or msedge (#244969) 2025-03-28 08:17:16 -07:00
Aiday Marlen Kyzy
fa548237be Adding acceptance condition to dispatchKeybinding in smoketests (#242570)
* adding code for smoke tests

* adding awaits

* changing wait code

* renaming dispatch to send

* moving comment

* update to send
2025-03-05 11:38:48 +01:00
Benjamin Pasero
5e667f741b smoke tests - run with snapshots: true for tests that install extensions (#238855) 2025-01-27 17:30:59 +01:00
Aiday Marlen Kyzy
3ff1dceedf Enable edit context (#237497)
* Revert "Revert Enablement of EditContext on Insiders (#235062)"

This reverts commit 45385e1c6f.

* adding product import

* adding som code

* removing console logs

* make sure editor selection is observed after keybinding dispatches

Co-authored-with: Aiday Mar <amarlenkyzy@microsoft.com>

* removing empty lines

---------

Co-authored-by: João Moreno <joao.moreno@microsoft.com>
2025-01-13 09:47:32 +01:00
Aiday Marlen Kyzy
be5c64a3df Revert "Enable edit context" (#237468)
Revert "Enable edit context (#235386)"

This reverts commit 3958e26f65.
2025-01-08 11:43:30 +01:00
Aiday Marlen Kyzy
3958e26f65 Enable edit context (#235386)
* Revert "Revert Enablement of EditContext on Insiders (#235062)"

This reverts commit 45385e1c6f.

* adding product import
2025-01-07 10:00:03 +01:00
Aiday Marlen Kyzy
45385e1c6f Revert Enablement of EditContext on Insiders (#235062)
Revert "Reenabling EditContext by default on Insiders (#234888)"

This reverts commit a47f407e38.
2024-12-03 08:37:57 +01:00
Aiday Marlen Kyzy
a47f407e38 Reenabling EditContext by default on Insiders (#234888)
Revert "Revert "Smoke test failure - changing selectors depending on app qual…"

This reverts commit b8d5339e04.
2024-11-29 11:49:50 +01:00
Aiday Marlen Kyzy
b8d5339e04 Revert "Smoke test failure - changing selectors depending on app quality" (#234638)
Revert "Smoke test failure - changing selectors depending on app quality (#23…"

This reverts commit b69589ce38.
2024-11-26 09:17:31 +01:00
Aiday Marlen Kyzy
b69589ce38 Smoke test failure - changing selectors depending on app quality (#234181)
* changing selector depending on app quality smoke test

* using correct selector

* resetting to just insiders

* focusing if not focused after event

* removing dom node focus
2024-11-21 11:58:33 +01:00
Sandeep Somavarapu
5a7b7be28a throw error (#199653) 2023-11-30 12:58:41 +01:00
Daniel Imms
35ae6b1925 Use a polling approach for writing and asserting 2023-11-08 09:20:44 -08:00
Sandeep Somavarapu
f8f9f06401 whenWorkbenchRestored was not implemented in the driver in previous releases (#197068) 2023-10-31 13:43:02 +01:00
Sandeep Somavarapu
519c8072f3 poll to wait for workbench to be restored (#197059) 2023-10-31 11:23:50 +01:00
Sandeep Somavarapu
2f51809ca3 Fix extensions smoke test (#195264)
#193046
- add waitForWorkbenchRestored method to driver
- move driver to workbench
- wait for workbench to restore if command is not found
2023-10-10 20:11:30 +02:00
Sandeep Somavarapu
6e93ce037b feedback 2023-09-06 10:30:13 +02:00
Sandeep Somavarapu
7a0fecc0a7 #191860 - retry if command is not found 2023-09-06 09:36:50 +02:00
Benjamin Pasero
5eba2f631f Expose client (browser) logs for smoke tests running in browser (fix #180102) (#181491) 2023-05-04 12:05:03 +02:00
Rob Lourens
c717237d7c Reenable a couple notebook smoketests (#159521)
* Remove vscode-notebook-tests in favor of an .ipynb in vscode-smoketest-express

* Update build folder

* Add build task to correct platform

* Build for smoke tests on other platforms

* Fix repo url and remove comment

* Just -media?

* Update darwin/win32 as well
2022-09-14 13:22:16 -07:00
Benjamin Pasero
c8dd96f73b smoke - fix log and retry exitApplication (#160244) 2022-09-07 07:17:04 +02:00
Benjamin Pasero
9d0c0b769e Smoke test driver.exitApplication sometimes does not work (#157979) (#158479) 2022-08-18 09:03:44 -04:00
Robo
5d796f32ea smoke(electron): wait for page navigation to commit before using driver (#157106)
* smoke(electron): wait for page navigation to commit before using driver

* chore: only use window event in Electron

* chore: implement load event for web

* 💄

Co-authored-by: Benjamin Pasero <benjamin.pasero@gmail.com>
2022-08-09 09:31:12 +02:00
Benjamin Pasero
5ae2a59a6d smoke test - only warn when treekill fails (#155577) 2022-07-19 14:19:02 +02:00
Benjamin Pasero
1ba0e7b601 smoke - enable crash reporter (#152041)
* smoke - enable crash reporter

* nix da only!
2022-06-14 12:52:29 +00:00
Benjamin Pasero
c4cdb552a5 Remove legacy smoke test driver (#147393)
* wip

* fix imports

* more lipstick

* fix?

* fix
2022-04-13 19:19:58 +02:00
Benjamin Pasero
fa8d1063f6 🆙 1.21.0 (#147348)
* 🆙 `playwright`

* fix install

* adopt latest apis

* comment
2022-04-13 08:43:17 +02:00
Benjamin Pasero
d9db5d10ec smoke - try to fix terminal tests and partition logs path per suite 2022-04-09 13:38:59 +02:00
Benjamin Pasero
fd7efbee45 smoke - cleanup some file names 2022-04-05 19:21:29 +02:00
Benjamin Pasero
16b97e6846 smoke - better use of tree-kill 2022-04-05 19:08:33 +02:00