Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
Signed-off-by: Dominik Jelinek <[email protected]>
  • Loading branch information
djelinek committed Apr 10, 2024
1 parent 636b214 commit 8dd0312
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions tests/test-project/src/test/editor/textEditor.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as path from 'path';
import { expect } from 'chai';
import { TextEditor, EditorView, StatusBar, InputBox, ContentAssist, Workbench, FindWidget, VSBrowser, after, before } from "vscode-extension-tester";
import { TextEditor, EditorView, StatusBar, InputBox, ContentAssist, Workbench, FindWidget, VSBrowser, after, before, afterEach, beforeEach } from "vscode-extension-tester";

describe.only('ContentAssist', async function () {
let assist: ContentAssist;
Expand Down Expand Up @@ -154,13 +154,18 @@ describe.only('TextEditor', function () {
params.forEach(param => describe(`file using ${param.spaces}`, function () {

let editor: TextEditor;
let ew: EditorView;

before(async function() {
beforeEach(async function() {
await VSBrowser.instance.openResources(path.resolve(__dirname, '..', '..', '..', 'resources', param.file));
editor = new TextEditor();
ew = new EditorView();
await ew.getDriver().wait(async function () {
return (await ew.getOpenEditorTitles()).includes(param.file);
}, 10_000);
editor = await ew.openEditor(param.file) as TextEditor;
});

after(async function() {
afterEach(async function() {
await new EditorView().closeEditor(param.file);
});

Expand Down

0 comments on commit 8dd0312

Please sign in to comment.