Skip to content

Commit d8fa216

Browse files
committed
More CI
1 parent 74c2507 commit d8fa216

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

packages/cursorless-vscode-e2e/src/suite/tutorial/tutorial.vscode.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import path from "path";
1616
import sinon from "sinon";
1717
import { commands } from "vscode";
1818
import { endToEndTestSetup } from "../../endToEndTestSetup";
19+
import { isEqual, uniqWith } from "lodash-es";
1920

2021
suite("tutorial", async function () {
2122
// Retry doesn't make sense because we need to capture initial load events of
@@ -146,7 +147,9 @@ async function runBasicTutorialTest(spyIde: SpyIDE) {
146147
// Allow for debounce
147148
await sleep(250);
148149

149-
const log = getTutorialWebviewEventLog();
150+
// We allow duplicate messages because they're idempotent. Not sure why some
151+
// platforms get the init message twice but it doesn't matter.
152+
const log = uniqWith(getTutorialWebviewEventLog(), isEqual);
150153
assert.equal(log.length, 3, JSON.stringify(log, null, 2));
151154
const lastMessage = log[log.length - 1];
152155
assert(

packages/cursorless-vscode/src/VscodeTutorial.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ export class VscodeTutorial implements WebviewViewProvider {
7676
_context: WebviewViewResolveContext,
7777
_token: CancellationToken,
7878
) {
79-
console.log("resolveWebviewView");
8079
if (this.view != null && this.view instanceof SpyWebviewView) {
8180
this.view.view = webviewView;
8281
} else {
@@ -117,8 +116,8 @@ export class VscodeTutorial implements WebviewViewProvider {
117116
return [];
118117
}
119118

120-
public async start(tutorialId: TutorialId) {
121-
await this.tutorial.start(tutorialId);
119+
public async start(id: TutorialId | number) {
120+
await this.tutorial.start(id);
122121
this.revealTutorial();
123122
}
124123

0 commit comments

Comments
 (0)