New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@eclipse-che/che-e2e

Package Overview
Dependencies
Maintainers
5
Versions
363
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@eclipse-che/che-e2e - npm Package Compare versions

Comparing version 7.43.0-dev-8d1a61a to 7.43.0-dev-9a3ab24

6

dist/pageobjects/openshift/CheLoginPage.js

@@ -38,7 +38,7 @@ "use strict";

Logger_1.Logger.debug('CheLoginPage.waitEclipseCheLoginFormPage');
await this.driverHelper.waitVisibility(selenium_webdriver_1.By.id('kc-form-login'), TimeoutConstants_1.TimeoutConstants.TS_SELENIUM_LOAD_PAGE_TIMEOUT);
await this.driverHelper.waitVisibility(selenium_webdriver_1.By.id('login'), TimeoutConstants_1.TimeoutConstants.TS_SELENIUM_LOAD_PAGE_TIMEOUT);
}
async inputUserNameEclipseCheLoginPage(userName) {
Logger_1.Logger.debug(`CheLoginPage.inputUserNameEclipseCheLoginPage username: "${userName}"`);
await this.driverHelper.enterValue(selenium_webdriver_1.By.id('username'), userName);
await this.driverHelper.enterValue(selenium_webdriver_1.By.id('login'), userName);
}

@@ -51,3 +51,3 @@ async inputPaswordEclipseCheLoginPage(passw) {

Logger_1.Logger.debug('CheLoginPage.clickEclipseCheLoginButton');
await this.driverHelper.waitAndClick(selenium_webdriver_1.By.id('kc-login'));
await this.driverHelper.waitAndClick(selenium_webdriver_1.By.id('submit-login'));
}

@@ -54,0 +54,0 @@ async isFirstBrokerLoginPageVisible() {

@@ -133,10 +133,10 @@ "use strict";

suite('Validation of workspace build and run', async () => {
const mavenBuildTaskName = 'maven-build';
const runAppTaskName = 'run-with-hsqldb';
test('Build application', async () => {
const taskName = 'build';
await topMenu.runTask(`${taskName}, ${globalTaskScope}`);
await terminal.waitIconSuccess(taskName, 500000);
await topMenu.runTask(`${mavenBuildTaskName}, ${globalTaskScope}`);
await terminal.waitIconSuccess(mavenBuildTaskName, 500000);
});
test('Run application', async () => {
const taskName = 'run-with-hsqldb';
await topMenu.runTask(`${taskName}, ${globalTaskScope}`);
await topMenu.runTask(`${runAppTaskName}, ${globalTaskScope}`);
await ide.waitNotification('Process 8080-tcp is now listening on port 8080. Open it ?', 120000);

@@ -152,6 +152,6 @@ // devWs specific. After running test application we can open it just in the new window.

test('Close the terminal running tasks', async () => {
await terminal.rejectTerminalProcess('run-with-hsqldb');
await terminal.closeTerminalTab('run-with-hsqldb');
await terminal.rejectTerminalProcess(runAppTaskName);
await terminal.closeTerminalTab(runAppTaskName);
await warningDialog.waitAndCloseIfAppear();
await terminal.closeTerminalTab('build');
await terminal.closeTerminalTab(mavenBuildTaskName);
});

@@ -261,2 +261,6 @@ });

}
else {
const { data } = await httpClient.get(urlToApp);
console.log('>>>>>>>seems the app. is not set under debug properly: >>>>>>>>>>>>>>' + data);
}
}

@@ -263,0 +267,0 @@ }

@@ -33,7 +33,7 @@ "use strict";

const browserTabsUtil = inversify_config_1.e2eContainer.get(inversify_types_1.CLASSES.BrowserTabsUtil);
const workspaceNameHandler = inversify_config_1.e2eContainer.get(inversify_types_1.CLASSES.WorkspaceNameHandler);
const devfileUrl = 'https://raw.githubusercontent.com/eclipse/che/main/tests/e2e/files/devfiles/plugins/TypescriptNodeDebug2PluginTest.yaml';
const preferencesHandler = inversify_config_1.e2eContainer.get(inversify_types_1.CLASSES.PreferencesHandler);
const devfileUrl = 'https://github.com/che-samples/web-nodejs-sample/tree/typescript-plugin';
const factoryUrl = `${TestConstants_1.TestConstants.TS_SELENIUM_BASE_URL}/f?url=${devfileUrl}`;
const codeNavigationClassName = 'OpenDefinition.ts';
const projectName = 'nodejs-web-app';
const projectName = 'web-nodejs-sample';
const subRootFolder = 'app';

@@ -45,3 +45,3 @@ const sampleBodyLocator = selenium_webdriver_1.By.xpath(`//body[text()='Hello World!']`);

const tabTitle = 'typescript-node-debug.ts';
let workspaceName;
let workspaceName = 'typescript-plugin';
suite(`The 'TypescriptPlugin and Node-debug' tests`, async () => {

@@ -53,9 +53,7 @@ suite('Create workspace', async () => {

test('Wait until created workspace is started', async () => {
await ide.waitAndSwitchToIdeFrame();
workspaceName = await workspaceNameHandler.getNameFromUrl();
CheReporter_1.default.registerRunningWorkspace(workspaceName);
await ide.waitIde(TimeoutConstants_1.TimeoutConstants.TS_SELENIUM_START_WORKSPACE_TIMEOUT);
await ide.waitNotificationAndClickOnButton('Do you trust the authors of', 'Yes, I trust', 60000);
await projectTree.openProjectTreeContainer();
await projectTree.waitProjectImported(projectName, subRootFolder);
await preferencesHandler.setPreferenceUsingUI('application.confirmExit', 'never');
});

@@ -94,9 +92,9 @@ });

let applicationPreviewWindow = '';
test('Run application in debug mode', async () => {
await topMenu.runTask('run the web app (debugging enabled), Global');
await ide.waitNotification('Process nodejs is now listening on port 3000.');
test('Open application in the new editor window', async () => {
currentWindow = await browserTabsUtil.getCurrentWindowHandle();
});
test('Open application in the new editor window', async () => {
await ide.clickOnNotificationButton('Process nodejs is now listening on port 3000.', 'Open In New Tab');
await topMenu.runTask('run-the-web-app, Global');
await ide.waitNotification('A new process is now listening on port 3000', TimeoutConstants_1.TimeoutConstants.TS_DEBUGGER_CONNECTION_TIMEOUT);
await ide.clickOnNotificationButton('A new process is now listening on port 3000', 'yes');
await ide.waitNotification('Redirect is now enabled on port 3000.', TimeoutConstants_1.TimeoutConstants.TS_DEBUGGER_CONNECTION_TIMEOUT);
await ide.clickOnNotificationButton('Redirect is now enabled on port 3000.', 'Open In New Tab');
await browserTabsUtil.waitAndSwitchToAnotherWindow(currentWindow, 60000);

@@ -108,3 +106,2 @@ await browserTabsUtil.waitContentAvailableInTheNewTab(sampleBodyLocator, 60000);

await browserTabsUtil.switchToWindow(currentWindow);
await ide.waitAndSwitchToIdeFrame(60000);
});

@@ -118,7 +115,4 @@ test('Activate breakpoint', async () => {

await ide.waitLeftToolbarButton(Ide_1.LeftToolbarButton.Debug);
// workaround for the issue: https://github.com/eclipse/che/issues/20067
await debugView.clickOnDebugConfigurationDropDown();
await debugView.clickOnDebugConfigurationItem('Add Configuration...');
await debugView.clickOnDebugConfigurationDropDown();
await debugView.clickOnDebugConfigurationItem('Attach to Remote (nodejs-web-app)');
await debugView.clickOnDebugConfigurationItem('Attach (web-nodejs-sample)');
await debugView.clickOnRunDebugButton();

@@ -139,3 +133,2 @@ });

await browserTabsUtil.switchToWindow(currentWindow);
await ide.waitAndSwitchToIdeFrame(60000);
await editor.waitStoppedDebugBreakpoint(debugFile, 19, 60000);

@@ -142,0 +135,0 @@ });

@@ -26,12 +26,11 @@ "use strict";

const browserTabsUtil = inversify_config_1.e2eContainer.get(inversify_types_1.CLASSES.BrowserTabsUtil);
const workspaceHandlingTests = inversify_config_1.e2eContainer.get(inversify_types_1.CLASSES.WorkspaceHandlingTests);
const preferencesHandler = inversify_config_1.e2eContainer.get(inversify_types_1.CLASSES.PreferencesHandler);
const workspaceHandlingTests = inversify_config_1.e2eContainer.get(inversify_types_1.CLASSES.WorkspaceHandlingTests);
const workspaceNameHandler = inversify_config_1.e2eContainer.get(inversify_types_1.CLASSES.WorkspaceNameHandler);
const devfileUrl = 'https://raw.githubusercontent.com/eclipse/che/main/tests/e2e/files/devfiles/plugins/VscodeYamlPlugin.yaml';
const devfileUrl = 'https://github.com/che-samples/web-nodejs-sample/tree/yaml-plugin';
const factoryUrl = `${TestConstants_1.TestConstants.TS_SELENIUM_BASE_URL}/f?url=${devfileUrl}`;
const projectName = 'nodejs-web-app';
const projectName = 'web-nodejs-sample';
const pathToFile = `${projectName}`;
const yamlFileName = 'routes.yaml';
const yamlSchema = { 'yaml-schema.json': '*.yaml' };
let workspaceName = '';
let workspaceName = 'yaml-plugin';
suite('The "VscodeYamlPlugin" userstory', async () => {

@@ -43,7 +42,4 @@ suite('Create workspace', async () => {

test('Wait until created workspace is started', async () => {
await ide.waitAndSwitchToIdeFrame();
workspaceName = await workspaceNameHandler.getNameFromUrl();
CheReporter_1.default.registerRunningWorkspace(workspaceName);
await ide.waitIde(TimeoutConstants_1.TimeoutConstants.TS_SELENIUM_START_WORKSPACE_TIMEOUT);
await ide.waitNotificationAndClickOnButton('Do you trust the authors of', 'Yes, I trust', 60000);
});

@@ -55,2 +51,3 @@ });

await projectTree.waitProjectImported(projectName, 'app');
await preferencesHandler.setPreferenceUsingUI('application.confirmExit', 'never');
});

@@ -68,8 +65,8 @@ });

await projectTree.expandPathAndOpenFile(pathToFile, yamlFileName);
await editor.type(yamlFileName, selenium_webdriver_1.Key.SPACE, 19);
await editor.waitErrorInLine(19, yamlFileName);
await editor.type(yamlFileName, selenium_webdriver_1.Key.SPACE, 20);
await editor.waitErrorInLine(20, yamlFileName);
});
test('Check error disappearance', async () => {
await editor.performKeyCombination(yamlFileName, selenium_webdriver_1.Key.BACK_SPACE);
await editor.waitErrorInLineDisappearance(19, yamlFileName);
await editor.waitErrorInLineDisappearance(20, yamlFileName);
});

@@ -76,0 +73,0 @@ test('To unformat the "yaml" file', async () => {

{
"name": "@eclipse-che/che-e2e",
"version": "7.43.0-dev-8d1a61a",
"version": "7.43.0-dev-9a3ab24",
"description": "",

@@ -42,3 +42,3 @@ "main": "dist/index.js",

"chai": "4.2.0",
"chromedriver": "95.0.0",
"chromedriver": "97.0.0",
"mocha": "^9.1.3",

@@ -45,0 +45,0 @@ "rimraf": "2.6.2",

@@ -27,3 +27,3 @@ /*********************************************************************

await this.driverHelper.waitVisibility(By.id('kc-form-login'), TimeoutConstants.TS_SELENIUM_LOAD_PAGE_TIMEOUT);
await this.driverHelper.waitVisibility(By.id('login'), TimeoutConstants.TS_SELENIUM_LOAD_PAGE_TIMEOUT);
}

@@ -34,3 +34,3 @@

await this.driverHelper.enterValue(By.id('username'), userName);
await this.driverHelper.enterValue(By.id('login'), userName);
}

@@ -47,3 +47,3 @@

await this.driverHelper.waitAndClick(By.id('kc-login'));
await this.driverHelper.waitAndClick(By.id('submit-login'));
}

@@ -50,0 +50,0 @@

@@ -140,11 +140,11 @@ // /*********************************************************************

suite('Validation of workspace build and run', async () => {
const mavenBuildTaskName: string = 'maven-build';
const runAppTaskName: string = 'run-with-hsqldb';
test('Build application', async () => {
const taskName: string = 'build';
await topMenu.runTask(`${taskName}, ${globalTaskScope}`);
await terminal.waitIconSuccess(taskName, 500_000);
await topMenu.runTask(`${mavenBuildTaskName}, ${globalTaskScope}`);
await terminal.waitIconSuccess(mavenBuildTaskName, 500_000);
});
test('Run application', async () => {
const taskName: string = 'run-with-hsqldb';
await topMenu.runTask(`${taskName}, ${globalTaskScope}`);
await topMenu.runTask(`${runAppTaskName}, ${globalTaskScope}`);
await ide.waitNotification('Process 8080-tcp is now listening on port 8080. Open it ?', 120_000);

@@ -161,6 +161,6 @@ // devWs specific. After running test application we can open it just in the new window.

test('Close the terminal running tasks', async () => {
await terminal.rejectTerminalProcess('run-with-hsqldb');
await terminal.closeTerminalTab('run-with-hsqldb');
await terminal.rejectTerminalProcess(runAppTaskName);
await terminal.closeTerminalTab(runAppTaskName);
await warningDialog.waitAndCloseIfAppear();
await terminal.closeTerminalTab('build');
await terminal.closeTerminalTab(mavenBuildTaskName);
});

@@ -280,2 +280,4 @@ });

console.log('>>>>The debugger is set >>>>>>>>>>>>>>>>>>> ' + error.message);
} else { const {data} = await httpClient.get(urlToApp);
console.log('>>>>>>>seems the app. is not set under debug properly: >>>>>>>>>>>>>>' + data);
}

@@ -282,0 +284,0 @@ }

@@ -27,3 +27,3 @@ /*********************************************************************

import CheReporter from '../../driver/CheReporter';
import { WorkspaceNameHandler } from '../../utils/WorkspaceNameHandler';
import { PreferencesHandler } from '../../utils/PreferencesHandler';

@@ -39,8 +39,8 @@ const workspaceHandlingTests: WorkspaceHandlingTests = e2eContainer.get(CLASSES.WorkspaceHandlingTests);

const browserTabsUtil: BrowserTabsUtil = e2eContainer.get(CLASSES.BrowserTabsUtil);
const workspaceNameHandler: WorkspaceNameHandler = e2eContainer.get(CLASSES.WorkspaceNameHandler);
const preferencesHandler: PreferencesHandler = e2eContainer.get(CLASSES.PreferencesHandler);
const devfileUrl: string = 'https://raw.githubusercontent.com/eclipse/che/main/tests/e2e/files/devfiles/plugins/TypescriptNodeDebug2PluginTest.yaml';
const devfileUrl: string = 'https://github.com/che-samples/web-nodejs-sample/tree/typescript-plugin';
const factoryUrl: string = `${TestConstants.TS_SELENIUM_BASE_URL}/f?url=${devfileUrl}`;
const codeNavigationClassName: string = 'OpenDefinition.ts';
const projectName: string = 'nodejs-web-app';
const projectName: string = 'web-nodejs-sample';
const subRootFolder: string = 'app';

@@ -53,3 +53,3 @@ const sampleBodyLocator: By = By.xpath(`//body[text()='Hello World!']`);

const tabTitle: string = 'typescript-node-debug.ts';
let workspaceName: string;
let workspaceName: string = 'typescript-plugin';

@@ -63,11 +63,9 @@ suite(`The 'TypescriptPlugin and Node-debug' tests`, async () => {

test('Wait until created workspace is started', async () => {
await ide.waitAndSwitchToIdeFrame();
workspaceName = await workspaceNameHandler.getNameFromUrl();
CheReporter.registerRunningWorkspace(workspaceName);
await ide.waitIde(TimeoutConstants.TS_SELENIUM_START_WORKSPACE_TIMEOUT);
await ide.waitNotificationAndClickOnButton('Do you trust the authors of', 'Yes, I trust', 60_000);
await projectTree.openProjectTreeContainer();
await projectTree.waitProjectImported(projectName, subRootFolder);
await preferencesHandler.setPreferenceUsingUI('application.confirmExit', 'never');
});

@@ -113,11 +111,11 @@ });

test('Run application in debug mode', async () => {
await topMenu.runTask('run the web app (debugging enabled), Global');
await ide.waitNotification('Process nodejs is now listening on port 3000.');
test('Open application in the new editor window', async () => {
currentWindow = await browserTabsUtil.getCurrentWindowHandle();
});
test('Open application in the new editor window', async () => {
await ide.clickOnNotificationButton('Process nodejs is now listening on port 3000.', 'Open In New Tab');
await topMenu.runTask('run-the-web-app, Global');
await ide.waitNotification('A new process is now listening on port 3000', TimeoutConstants.TS_DEBUGGER_CONNECTION_TIMEOUT);
await ide.clickOnNotificationButton('A new process is now listening on port 3000', 'yes');
await ide.waitNotification('Redirect is now enabled on port 3000.', TimeoutConstants.TS_DEBUGGER_CONNECTION_TIMEOUT);
await ide.clickOnNotificationButton('Redirect is now enabled on port 3000.', 'Open In New Tab');
await browserTabsUtil.waitAndSwitchToAnotherWindow(currentWindow, 60_000);

@@ -131,3 +129,2 @@ await browserTabsUtil.waitContentAvailableInTheNewTab(sampleBodyLocator, 60_000);

await browserTabsUtil.switchToWindow(currentWindow);
await ide.waitAndSwitchToIdeFrame(60_000);
});

@@ -144,8 +141,4 @@

// workaround for the issue: https://github.com/eclipse/che/issues/20067
await debugView.clickOnDebugConfigurationDropDown();
await debugView.clickOnDebugConfigurationItem('Add Configuration...');
await debugView.clickOnDebugConfigurationDropDown();
await debugView.clickOnDebugConfigurationItem('Attach to Remote (nodejs-web-app)');
await debugView.clickOnDebugConfigurationItem('Attach (web-nodejs-sample)');
await debugView.clickOnRunDebugButton();

@@ -170,3 +163,2 @@ });

await browserTabsUtil.switchToWindow(currentWindow);
await ide.waitAndSwitchToIdeFrame(60000);

@@ -173,0 +165,0 @@ await editor.waitStoppedDebugBreakpoint(debugFile, 19, 60_000);

@@ -17,6 +17,4 @@ /*********************************************************************

import { Editor } from '../../pageobjects/ide/Editor';
import { PreferencesHandler } from '../../utils/PreferencesHandler';
import { TestConstants } from '../../TestConstants';
import { TimeoutConstants } from '../../TimeoutConstants';
import { WorkspaceNameHandler } from '../../utils/WorkspaceNameHandler';
import { Logger } from '../../utils/Logger';

@@ -26,2 +24,3 @@ import { WorkspaceHandlingTests } from '../../testsLibrary/WorkspaceHandlingTests';

import { BrowserTabsUtil } from '../../utils/BrowserTabsUtil';
import { PreferencesHandler } from '../../utils/PreferencesHandler';

@@ -32,9 +31,8 @@ const ide: Ide = e2eContainer.get(CLASSES.Ide);

const browserTabsUtil: BrowserTabsUtil = e2eContainer.get(CLASSES.BrowserTabsUtil);
const workspaceHandlingTests: WorkspaceHandlingTests = e2eContainer.get(CLASSES.WorkspaceHandlingTests);
const preferencesHandler: PreferencesHandler = e2eContainer.get(CLASSES.PreferencesHandler);
const workspaceHandlingTests: WorkspaceHandlingTests = e2eContainer.get(CLASSES.WorkspaceHandlingTests);
const workspaceNameHandler: WorkspaceNameHandler = e2eContainer.get(CLASSES.WorkspaceNameHandler);
const devfileUrl: string = 'https://raw.githubusercontent.com/eclipse/che/main/tests/e2e/files/devfiles/plugins/VscodeYamlPlugin.yaml';
const devfileUrl: string = 'https://github.com/che-samples/web-nodejs-sample/tree/yaml-plugin';
const factoryUrl: string = `${TestConstants.TS_SELENIUM_BASE_URL}/f?url=${devfileUrl}`;
const projectName: string = 'nodejs-web-app';
const projectName: string = 'web-nodejs-sample';
const pathToFile: string = `${projectName}`;

@@ -44,3 +42,3 @@ const yamlFileName: string = 'routes.yaml';

let workspaceName: string = '';
let workspaceName: string = 'yaml-plugin';

@@ -54,8 +52,5 @@ suite('The "VscodeYamlPlugin" userstory', async () => {

test('Wait until created workspace is started', async () => {
await ide.waitAndSwitchToIdeFrame();
workspaceName = await workspaceNameHandler.getNameFromUrl();
CheReporter.registerRunningWorkspace(workspaceName);
await ide.waitIde(TimeoutConstants.TS_SELENIUM_START_WORKSPACE_TIMEOUT);
await ide.waitNotificationAndClickOnButton('Do you trust the authors of', 'Yes, I trust', 60_000);
});

@@ -68,2 +63,4 @@ });

await projectTree.waitProjectImported(projectName, 'app');
await preferencesHandler.setPreferenceUsingUI('application.confirmExit', 'never');
});

@@ -85,4 +82,4 @@ });

await editor.type(yamlFileName, Key.SPACE, 19);
await editor.waitErrorInLine(19, yamlFileName);
await editor.type(yamlFileName, Key.SPACE, 20);
await editor.waitErrorInLine(20, yamlFileName);
});

@@ -92,3 +89,3 @@

await editor.performKeyCombination(yamlFileName, Key.BACK_SPACE);
await editor.waitErrorInLineDisappearance(19, yamlFileName);
await editor.waitErrorInLineDisappearance(20, yamlFileName);
});

@@ -95,0 +92,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc