Skip to content

Commit 44aeec7

Browse files
Update tests
1 parent 5ebd10c commit 44aeec7

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

data/fixtures/recorded/hatTokenMap/takeEach.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
languageId: plaintext
22
command:
33
version: 5
4-
spokenForm: take harp
4+
spokenForm: take each
55
action: {name: setSelection}
66
targets:
77
- type: primitive

data/fixtures/recorded/testCaseRecorder/takeEach.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
languageId: plaintext
22
command:
3-
version: 6
3+
version: 7
44
spokenForm: take each
55
action:
66
name: setSelection

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ suite("commandHistory", function () {
4545
async function testActive(tmpdir: string) {
4646
await injectFakeIsActive(true);
4747
await initalizeEditor();
48-
const command = takeCommand("h");
48+
const command = takeCommand("e");
4949
await runCursorlessCommand(command);
5050

5151
const content = await getLogEntry(tmpdir);
@@ -71,7 +71,7 @@ async function testSanitization(tmpdir: string) {
7171
async function testInactive(tmpdir: string) {
7272
await injectFakeIsActive(false);
7373
await initalizeEditor();
74-
await runCursorlessCommand(takeCommand("h"));
74+
await runCursorlessCommand(takeCommand("e"));
7575

7676
assert.notOk(existsSync(tmpdir));
7777
}

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ async function testCaseRecorderGracefulError() {
9595
}
9696

9797
await initalizeEditor(hatTokenMap);
98-
await takeHarp();
98+
await takeEach();
9999
await stopRecording();
100100
await checkRecordedTest(tmpdir);
101101
} finally {
@@ -110,7 +110,7 @@ async function runAndCheckTestCaseRecorder(
110110
) {
111111
await initalizeEditor(hatTokenMap);
112112
await startRecording(...extraArgs);
113-
await takeHarp();
113+
await takeEach();
114114
await stopRecording();
115115
await checkRecordedTest(tmpdir);
116116
}
@@ -134,10 +134,10 @@ async function stopRecording() {
134134
await vscode.commands.executeCommand("cursorless.recordTestCase");
135135
}
136136

137-
async function takeHarp() {
137+
async function takeEach() {
138138
await runCursorlessCommand({
139139
version: LATEST_VERSION,
140-
spokenForm: "take harp",
140+
spokenForm: "take each",
141141
usePrePhraseSnapshot: false,
142142
action: {
143143
name: "setSelection",

0 commit comments

Comments
 (0)