Commit Graph

352 Commits

Author SHA1 Message Date
Benjamin Pasero
13461f8c61 Web: change yarn web to run with our server instead of playground (#139725)
* web - first cut `yarn web` via our server

* properly pipe output

* web - remove traces of web playground

* web - remember last opened workspace for convinience

* use vscode-test-web for server less, clean up web commands

* fix comment

* fix `yarn web`

* rename to code-server

* open system browser

* code-server script: use minimist

* test resolver: use ./scripts/code-server

* integartion tests: fix code-server command name

Co-authored-by: Martin Aeschlimann <martinae@microsoft.com>
2022-01-20 13:48:08 +01:00
Martin Aeschlimann
ad928a4e0f adopt server script in integration tests 2022-01-19 18:08:04 +01:00
Sandeep Somavarapu
066671a902 Fix #140838 2022-01-18 17:43:20 +01:00
Benjamin Pasero
9be2757019 🆙 playwright@1.18 (#140767)
* tests - use `@playwright/test@1.18.0-rc1`

* fix bad dependency

* clear more weird ts dependencies
2022-01-15 09:35:39 +01:00
João Moreno
8c9870d298 Smoke Test: forcefully kill electron if exit doesn't work (#140570)
* smoke test: forcefully kill electron if exit doesn't work

* use tree-kill

* roll back veto
2022-01-12 17:02:52 +01:00
Matt Bierner
9f867c3ed8 Revert service worker usage of MessageChannel (#140351)
* Revert service worker usage of MessageChannel

Reverts 66b6adf035

While I'm not 100% about this, I think 66b6adf035 causes resourses to occasionally not load. I believe this can happen if the service worker is unitilized while the webview remains active. I can't reproduce this myself so it may be related to memory pressure or resource usage, however relying on the service worker not being reinitilized does seem like a potentially bad idea https://stackoverflow.com/questions/34775105/what-causes-the-global-context-of-a-service-worker-to-be-reset

Will investigate if there's another way to achive this since using MessagePort did clean up the code and slightly improve performance

* Bump webview commit versions
2022-01-10 14:22:49 -08:00
Benjamin Pasero
a224ef4fb3 smoke - fix selectTab to select tab? 2022-01-04 09:47:09 +01:00
Benjamin Pasero
18a7108073 smoke - select tab over quick pick (#139944)
* smoke - further try to reduce usages of quick pick

* poke
2021-12-30 22:38:59 +01:00
Benjamin Pasero
99fabbdb27 smoke - more logging 2021-12-29 17:46:52 +01:00
Benjamin Pasero
bd43c04262 smoke - log electron stdout into log file 2021-12-29 17:35:54 +01:00
Benjamin Pasero
9c0cce1dae smoke - take screenshot when waiting long for window ready 2021-12-28 15:32:35 +01:00
Benjamin Pasero
b2e79a699f smoke - improve app lifecycle (#139693)
* smoke - make sure app is closed when `app.start` fails

* smoke - `capturePage` to fallback to active window

* smoke - more logging around remote resolving
2021-12-23 16:38:54 +01:00
Daniel Imms
daf4ba622f Merge pull request #138516 from microsoft/tyriar/137847
Try removing timeout in checkWindowReady
2021-12-22 10:38:41 -08:00
Benjamin Pasero
bb39ae82cf smoke - improve runCommand and disable more tests 2021-12-20 08:25:08 +01:00
Benjamin Pasero
2d77c9e23a smoke - more robust usage of quick input / access (#139367)
* smoke - more robust `openQuickAccessAndWait`

* tweaks

* 💄

* trigger

* fix fluke

* poke

* fix terminal weirdness

* poke

* address feedback
2021-12-17 18:49:17 +01:00
Benjamin Pasero
ae8aeb653d smoke - use absolute paths for opening files (#139322) 2021-12-16 20:14:12 +01:00
Benjamin Pasero
fa739870a2 smoke - remove doubleClick usage 2021-12-16 14:27:21 +01:00
Benjamin Pasero
fdc4b7101d smoke - actually retry quick access usage 2021-12-16 14:25:12 +01:00
Daniel Imms
da308a9a7f Format 2021-12-15 19:35:16 +00:00
Daniel Imms
fa61def811 Merge branch 'main' into tyriar/137847 2021-12-15 09:29:49 -08:00
Rob Lourens
b823936907 Wait for window to connect before starting browser smoketests
Fix #138045
2021-12-14 20:23:44 -08:00
Matt Bierner
8cf4dcdade Re-enable notebook smoke tests (#139127)
Fixes #126371
2021-12-14 16:50:22 -08:00
Daniel Imms
2eb4cec44b Wait for terminal to be ready before changing color
Fixes #139081
2021-12-14 10:14:06 -08:00
Daniel Imms
9d1a7abe35 Some jsdoc 2021-12-13 16:57:14 -08:00
Daniel Imms
50f96a3c6b Clean up terminal creation in smoke tests 2021-12-13 16:54:42 -08:00
Daniel Imms
73a19337ac Merge remote-tracking branch 'origin/main' into tyriar/133524 2021-12-13 16:28:23 -08:00
Daniel Imms
9566e299dd Add auto replies test 2021-12-13 16:20:34 -08:00
Megan Rogge
a2f5ec29b2 Revert "Revert "be sure that terminal target gets set for the instance (#138875)""
This reverts commit 8605d7aeff.
2021-12-13 17:08:29 -06:00
Daniel Imms
8605d7aeff Revert "be sure that terminal target gets set for the instance (#138875)"
This reverts commit 578eb0d4ae.
2021-12-13 08:15:32 -08:00
Megan Rogge
578eb0d4ae be sure that terminal target gets set for the instance (#138875) 2021-12-10 14:51:45 -08:00
Daniel Imms
7d35da6eb9 Wait for host on web as well 2021-12-10 11:15:59 -08:00
Daniel Imms
da7ab25150 Merge remote-tracking branch 'origin/main' into tyriar/137847 2021-12-10 11:11:49 -08:00
Daniel Imms
866b9df390 Wait for quick input to open again after runCommandWithValue
Fixes #138658
2021-12-10 10:59:40 -08:00
Rob Lourens
9893857d4b Handle "clear search results" cancelling running search
Fix #138841
2021-12-10 10:51:26 -08:00
Rob Lourens
e5637ce9af Fix #138748 2021-12-09 10:00:25 -08:00
Benjamin Pasero
27e38a8e27 smoke - always create screenshot on failure on desktop 2021-12-09 09:51:55 +01:00
Benjamin Pasero
158bd2507e smoke - always have a logger 2021-12-09 08:48:42 +01:00
Benjamin Pasero
15415b6de6 smoke - align killing 2021-12-09 08:03:48 +01:00
Benjamin Pasero
ec3ba7a320 smoke - rewrite killing 2021-12-09 07:55:25 +01:00
Benjamin Pasero
acc0803f38 cleanup automation 2021-12-09 07:03:29 +01:00
Rob Lourens
1341ca3d7f Remove timeouts in search smoketest.
Improvements came from waiting for search to complete before clicking buttons, clearing previous results before starting the search, and adding a retry around the clicking.
2021-12-08 15:34:35 -08:00
Daniel Imms
465402dd4b Merge remote-tracking branch 'origin/main' into tyriar/137847 2021-12-08 06:28:35 -08:00
Benjamin Pasero
18cba4882d smoke - more logging 2021-12-08 15:23:27 +01:00
Benjamin Pasero
64562e2a0e smoke - reimplement logging 2021-12-08 14:13:41 +01:00
Benjamin Pasero
fbad065eea Playwright: record a trace per failing test, not suite (#138600)
* smoke - record traces per test and not entire suite

* smoke - only persist failing tests

* smoke - cleanup

* smoke - more logging

* smoke - push a test failure to proof the point

* smoke - switch back to chrome for smoke tests

* smoke - warn when exit takes 10s

* Revert "smoke - push a test failure to proof the point"

This reverts commit e572a0c40d.
2021-12-08 10:09:30 +01:00
Tyler James Leonhardt
224701f74d try remove timeouts in smoke tests for quickaccess (#138615) 2021-12-07 12:25:35 -08:00
Benjamin Pasero
13c0ed811e 🆙 playwright & set trace names (#138539) 2021-12-06 19:42:05 +01:00
Daniel Imms
110345a97b Try removing timeout in checkWindowReady
Part of #137847
2021-12-06 06:35:57 -08:00
Benjamin Pasero
ff970e88e5 Revert "smoke - 🆙 retry timeout"
This reverts commit d60b844aa3.
2021-12-02 07:38:04 +01:00
Benjamin Pasero
9d427e4df4 smoke test tweaks
- remove timeout on shutdown
- log exactly where time is spend on shutdown (web)
- stop spawning code when terminated
2021-12-02 07:34:13 +01:00