Skip to content

Commit

Permalink
fix(helloworld-sample): Stabilise textEditor tests in sample project (#…
Browse files Browse the repository at this point in the history
…1162)

Signed-off-by: Dominik Jelinek <[email protected]>
  • Loading branch information
djelinek authored Feb 27, 2024
1 parent e665e7f commit 5940036
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import { EditorView, InputBox, TextEditor, Workbench } from 'vscode-extension-te
describe('Text Editor sample tests', () => {
let editor: TextEditor;

before(async () => {
before(async function () {
this.timeout(10_000);
// create a file to open in an editor
await new Workbench().executeCommand('Create: New File...');
await (await InputBox.create()).selectQuickPick('Text File');
Expand All @@ -14,7 +15,8 @@ describe('Text Editor sample tests', () => {
// editor = new TextEditor();
});

after(async () => {
after(async function () {
this.timeout(10_000);
// cleanup, delete the file contents and close the editor
await editor.clearText();
await new EditorView().closeAllEditors();
Expand Down

0 comments on commit 5940036

Please sign in to comment.