webdriverio-community / wdio-vscode-service

A service to test VSCode extensions from end to end using WebdriverIO
https://webdriverio-community.github.io/wdio-vscode-service/
MIT License
29 stars 23 forks source link

`getText` fails on Linux / Ubuntu #103

Closed seanpoulter closed 5 months ago

seanpoulter commented 5 months ago

I found this while reviewing #94.

Problem

We assume the command to copy from the terminal is Ctrl--c:

[chrome 114.0.5735.289 linux #0-0] » /test/specs/bottombar.e2e.ts
[chrome 114.0.5735.289 linux #0-0] bottombar
[chrome 114.0.5735.289 linux #0-0]    ✖ can read from terminal @skipWeb

Proposal

christian-bromann commented 5 months ago

Thanks for raising the issue. I think all proposals make sense and we should pick whichever is more reliable.

seanpoulter commented 5 months ago

How about using the built-in command? I found workbench.action.terminal.copySelection listed in Preferences: Open Keyboard Shortcuts. We don't have to deal with the platform or keys to press at all.