Skip to content
This repository has been archived by the owner on Mar 17, 2021. It is now read-only.

[E2E] Add test: Check Java Language Server #1492

Merged
merged 1 commit into from
Jul 23, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions e2e-saas/tests/HappyPath.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ suite('RhChe E2E', async () => {
await dashboard.waitPage(30000);
});
});

suite('Create workspace and add plugin', async () => {
suite('Create and run workspace', async () => {
test(`Open 'New Workspace' page`, async () => {
await newWorkspace.openPageByUI();
});
Expand Down Expand Up @@ -76,18 +76,21 @@ suite('RhChe E2E', async () => {
await projectTree.expandPathAndOpenFile(fileFolderPath, tabTitle);
});

// unskip after resolving issue https://github.com/eclipse/che/issues/12904
test.skip(`Check 'Java Language Server' initialization by statusbar`, async () => {
test.skip('Check "Java Language Server" initialization by statusbar', async () => {
await ide.waitStatusBarContains('Starting Java Language Server');
await ide.waitStatusBarContains('100% Starting Java Language Server');
await ide.waitStatusBarTextAbcence('Starting Java Language Server');
});

// unskip after resolving issue https://github.com/eclipse/che/issues/12904
test.skip(`Check 'Java Language Server' initialization by suggestion invoking`, async () => {
test('Check "Java Language Server" initialization by suggestion invoking', async () => {
await ide.closeAllNotifications();
await editor.waitEditorAvailable(tabTitle);
await editor.clickOnTab(tabTitle);
await editor.waitEditorAvailable(tabTitle);
await editor.waitTabFocused(tabTitle);
await editor.moveCursorToLineAndChar(tabTitle, 6, 20);
await editor.pressControlSpaceCombination(tabTitle);
await editor.waitSuggestion(tabTitle, 'append(CharSequence csq, int start, int end) : PrintStream');
});

});
Expand Down