Skip to content

Commit d6baa4e

Browse files
committed
GHA build failure - fix
1 parent 6244e3e commit d6baa4e

1 file changed

Lines changed: 16 additions & 4 deletions

File tree

src/test/GradleSingleModLclsServerEnvTest.ts

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,34 @@
77
*
88
* SPDX-License-Identifier: EPL-2.0
99
*/
10-
import { By, EditorView, TextEditor, VSBrowser } from "vscode-extension-tester";
10+
import { By, EditorView, SideBarView, TextEditor, ViewSection, VSBrowser } from "vscode-extension-tester";
1111
import * as utils from './utils/testUtils';
1212
import * as constants from './definitions/constants';
13+
import { expect } from "chai";
1314

1415
const path = require('path');
1516
const assert = require('assert');
1617

1718
describe('LCLS tests for Gradle Project - Server.env', function () {
1819
let editor: TextEditor;
19-
let actualServerXMLContent: string;
20+
let sidebar: SideBarView;
21+
let section: ViewSection;
2022

2123
before(() => {
24+
sidebar = new SideBarView();
2225
utils.copyDirectoryByPath(path.join(utils.getGradleProjectPath(), 'src', 'main', 'liberty', 'config'), path.join(utils.getGradleProjectPath(), 'src', 'main', 'liberty', 'config2'));
2326
});
2427

25-
it('Should show type ahead support in server.env for a Liberty Server Configuration Stanza', async () => {
28+
it('getViewControl works with the correct label', async() => {
29+
const contentPart = sidebar.getContent();
30+
section = await contentPart.getSection('Liberty Dashboard');
31+
console.log("Found Liberty Dashboard....");
32+
expect(section).not.undefined;
33+
34+
}).timeout(30000);
35+
36+
it('Should show completion support in server.env for a Liberty Server Configuration Stanza', async () => {
37+
await utils.delay(8000);
2638
await utils.openConfigFile(constants.CONFIG_TWO, constants.SERVER_ENV);
2739
editor = await new EditorView().openEditor('server.env') as TextEditor;
2840

@@ -44,7 +56,7 @@ describe('LCLS tests for Gradle Project - Server.env', function () {
4456

4557
const updatedSeverEnvContent = await editor.getText();
4658
await utils.delay(3000);
47-
assert(updatedSeverEnvContent.includes(expectedServerEnvString), 'Type ahead support is not working as expected in server.env');
59+
assert(updatedSeverEnvContent.includes(expectedServerEnvString), 'Completion support is not working as expected in server.env');
4860
await editor.clearText();
4961

5062
}).timeout(35000);

0 commit comments

Comments
 (0)