Skip to content

Commit

Permalink
Lets hope that retrying the outline click is enough to get it to run …
Browse files Browse the repository at this point in the history
…on osx
  • Loading branch information
DavyLandman committed Sep 30, 2024
1 parent 82bdbf0 commit 1e1f7c2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions rascal-vscode-extension/src/test/vscode-suite/ide.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,10 @@ describe('IDE', function () {
const outline = await driver.wait(() => explorer.getContent().getSection("Outline"), Delays.normal) as ViewSection;
await outline.expand();
const mainItem = await driver.wait(async() => ignoreFails(outline.findItem("main()", 0)), Delays.slow, "Main function should show in the outline");
await driver.actions().doubleClick(mainItem!).perform();
await driver.wait(async ()=> (await editor.getCoordinates())[0] === 5, Delays.normal, "Cursor should have moved to line that contains the println function");
await driver.wait(async () => {
await driver.actions().doubleClick(mainItem!).perform();
return (await editor.getCoordinates())[0] === 5;
}, Delays.normal, "Cursor should have moved to line that contains the println function");
});

it ("rename works", async() => {
Expand Down

0 comments on commit 1e1f7c2

Please sign in to comment.