Skip to content

Commit 07d6909

Browse files
committed
Changed how code actions are triggered during UI tests
1 parent 6a729b2 commit 07d6909

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

  • rascal-vscode-extension/src/test/vscode-suite

rascal-vscode-extension/src/test/vscode-suite/utils.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,8 +340,7 @@ export class IDEOperations {
340340
* @param actionLabel
341341
*/
342342
async triggerFirstCodeAction(editor: TextEditor, actionLabel:string) {
343-
const inputarea = await editor.findElement(By.className('inputarea'));
344-
await inputarea.sendKeys(Key.chord(TextEditor.ctlKey, "."));
343+
await VSBrowser.instance.driver.actions().keyDown(Key.CONTROL).sendKeys(".").keyUp(Key.CONTROL).perform();
345344

346345
// finds an open menu with the right item in it (Change to a) and then select
347346
// the parent that handles UI events like click() and sendKeys()

0 commit comments

Comments
 (0)