mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 17:19:48 +01:00
smoke: use pasteboard to edit editor
This commit is contained in:
@@ -109,12 +109,8 @@ export class Editor {
|
||||
await this.spectron.client.waitForActiveElement(textarea);
|
||||
|
||||
// https://github.com/Microsoft/vscode/issues/34203#issuecomment-334441786
|
||||
for (let i = 0; i < text.length; i++) {
|
||||
this.spectron.client.spectron.client.keys([text[i], 'NULL']);
|
||||
await new Promise(c => setTimeout(c, 50));
|
||||
}
|
||||
|
||||
// this.spectron.client.spectron.client.keys([text, 'NULL']);
|
||||
this.spectron.app.electron.clipboard.writeText(text);
|
||||
this.spectron.app.webContents.paste();
|
||||
|
||||
await this.waitForEditorContents(filename, c => c.indexOf(text) > -1, selectorPrefix);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user