Skip to content

Commit 1b23698

Browse files
committed
fixes to allow shared suite builds to only run into rest-snippet error due to LSP4Jakarta issues
1 parent 6476623 commit 1b23698

2 files changed

Lines changed: 14 additions & 5 deletions

File tree

src/test/MavenTestDevModeActions.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,15 @@ describe('Maven-specific devmode action tests', () => {
2828
dashboard = new DashboardPage();
2929
});
3030

31+
after(async function() {
32+
this.timeout(10000);
33+
try {
34+
await new EditorView().closeAllEditors();
35+
} catch (error) {
36+
logger.error('Failed to close editors after Maven-specific suite', error);
37+
}
38+
});
39+
3140
it('Start Maven with options from Liberty Tools', async () => {
3241
logger.testStart('Start Maven with options from Liberty Tools');
3342
try {

src/test/pages/EditorPage.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
import { EditorView, TextEditor, VSBrowser } from 'vscode-extension-tester';
77
import * as utils from '../utils/testUtils';
88

9-
export class EditorPage {
10-
private editor!: TextEditor;
11-
private editorView = new EditorView();
9+
export class EditorPage {
10+
private editor!: TextEditor;
11+
private editorView = new EditorView();
1212

1313
/**
1414
* Open a file and bind this page object to its editor.
@@ -18,10 +18,10 @@ export class EditorPage {
1818
*/
1919
async openFile(filePath: string, tabTitle: string, loadDelay = 3000): Promise<this> {
2020
await VSBrowser.instance.openResources(filePath, async () => {
21-
await utils.getWaitHelper().sleep(loadDelay);
21+
await utils.getWaitHelper().sleep(loadDelay);
2222
});
2323
this.editor = await this.editorView.openEditor(tabTitle) as TextEditor;
24-
return this;
24+
return this;
2525
}
2626

2727
getEditor(): TextEditor {

0 commit comments

Comments
 (0)