Skip to content
This repository was archived by the owner on May 21, 2019. It is now read-only.

Commit f9b1467

Browse files
committed
Fix specs.
1 parent d513783 commit f9b1467

File tree

3 files changed

+9
-60
lines changed

3 files changed

+9
-60
lines changed

test/autocompletion_spec.ts

-49
This file was deleted.

test/e2e.ts

+5-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {userFriendlyPath} from "../src/utils/Common";
66
const timeout = 50000;
77

88
class Page {
9-
private promptSelector = ".prompt-content";
9+
private promptSelector = ".monaco-editor";
1010

1111
constructor(private client: SpectronClient) {}
1212

@@ -15,7 +15,10 @@ class Page {
1515
}
1616

1717
executeCommand(command: string) {
18-
return this.prompt.setValue(`${command}\n`);
18+
return new Promise(resolve => {
19+
this.client.keys(command + "\n");
20+
setTimeout(() => resolve(), 500);
21+
});
1922
}
2023

2124
get prompt() {

test/utils/ManPages_spec.ts

+4-9
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import {
88
extractManPageSectionParagraphs,
99
suggestionFromFlagParagraph,
1010
} from "../../src/utils/ManPageParsingUtils";
11-
import {styles} from "../../src/plugins/autocompletion_utils/Common";
1211

1312
describe("man page line combiner", () => {
1413
it("combines lines with correct spacing", () => {
@@ -118,9 +117,8 @@ describe("suggestion parser", () => {
118117
" -f flag with",
119118
" description",
120119
])).to.eql({
121-
value: "-f",
122-
style: styles.option,
123-
description: "flag with description",
120+
label: "-f",
121+
detail: "flag with description",
124122
});
125123
});
126124

@@ -130,11 +128,8 @@ describe("suggestion parser", () => {
130128
" flag with",
131129
" description",
132130
])).to.eql({
133-
value: "-f",
134-
style: styles.option,
135-
description: "flag with description",
136-
displayValue: "-f arg",
137-
space: true,
131+
label: "-f",
132+
detail: "flag with description",
138133
});
139134
});
140135

0 commit comments

Comments
 (0)