code-server/test/e2e
Asher 9087e0c091
fix: invoking code-server in integrated terminal (#5360)
* Include bin scripts for all platforms

These will get symlinked as part of the postinstall.  These scripts
provide everything ours does inside the integrated terminal plus more.

* Improve OS detection

Specifically for Windows although we do not yet support Windows.

Also standardize the duplicate arch functions since they had drifted
from each other bit.

* Remove duplicate asar symlink

Since standalone releases run the postinstall they will get the asar
symlink there.  That means the symlink will not exist for the npm
package and we will not need to ignore it.

The symlink portion is split out so it can be re-used for other
symlinks (for example linking bin scripts).

* Add symlinks to bin scripts

* Add test for opening a file from the terminal

* Add global Playwright timeout

Otherwise it will exceed the Actions timeout and get rudely killed
without any output.

* Make sed work on macOS

* Fix Node path in bin scripts

* Disable shellcheck expansion error

* Make scripts executable

* Remove .bak files created by sed

* Include Code build script in cache hash

Otherwise if we change the script it will not rebuild Code.

* Make sure the terminal opens

The selector was timing out even though it matched more than one element
but matching on the focused one appears to work.

In addition add a loop so it can keep trying to open the terminal
if something goes wrong with the focus.
2022-08-04 16:03:28 +00:00
..
extensions/test-extension docs: Update some more links (#4806) 2022-02-01 09:45:19 -07:00
models fix: invoking code-server in integrated terminal (#5360) 2022-08-04 16:03:28 +00:00
baseFixture.ts feat: migrate state to new database name (#4938) 2022-03-03 12:32:43 -06:00
codeServer.test.ts chore: update vscode to 1.64 (#4902) 2022-03-09 14:28:52 -07:00
downloads.test.ts feat: add tests for node/heart.ts (#5122) 2022-04-26 16:35:40 +00:00
extensions.test.ts feat: github-auth flag (#4926) 2022-03-02 14:02:51 -06:00
github.test.ts feat: github-auth flag (#4926) 2022-03-02 14:02:51 -06:00
globalSetup.test.ts feat: github-auth flag (#4926) 2022-03-02 14:02:51 -06:00
login.test.ts feat: github-auth flag (#4926) 2022-03-02 14:02:51 -06:00
logout.test.ts feat: github-auth flag (#4926) 2022-03-02 14:02:51 -06:00
openHelpAbout.test.ts release: 4.5.1 (#5354) 2022-07-19 12:34:01 -07:00
terminal.test.ts fix: invoking code-server in integrated terminal (#5360) 2022-08-04 16:03:28 +00:00