@eclipse-che/che-e2e
Advanced tools
Comparing version 7.98.0-next-2f9d491 to 7.98.0-next-46fa921
@@ -41,3 +41,3 @@ "use strict"; | ||
const randomPref = crypto_1.default.randomBytes(4).toString('hex'); | ||
kubernetesCommandLineToolsExecutor.namespace = API_TEST_CONSTANTS_1.API_TEST_CONSTANTS.TS_API_TEST_NAMESPACE || 'admin-devspaces'; | ||
kubernetesCommandLineToolsExecutor.namespace = API_TEST_CONSTANTS_1.API_TEST_CONSTANTS.TS_API_TEST_NAMESPACE; | ||
devfileContent = devfilesRegistryHelper.getDevfileContent(devfileID); | ||
@@ -44,0 +44,0 @@ const editorDevfileContent = devfilesRegistryHelper.obtainCheDevFileEditorFromCheConfigMap('editors-definitions'); |
@@ -38,3 +38,3 @@ "use strict"; | ||
const randomPref = crypto_1.default.randomBytes(4).toString('hex'); | ||
kubernetesCommandLineToolsExecutor.namespace = API_TEST_CONSTANTS_1.API_TEST_CONSTANTS.TS_API_TEST_NAMESPACE || 'admin-devspaces'; | ||
kubernetesCommandLineToolsExecutor.namespace = API_TEST_CONSTANTS_1.API_TEST_CONSTANTS.TS_API_TEST_NAMESPACE; | ||
devfileContent = devfilesRegistryHelper.getDevfileContent(devfileID); | ||
@@ -41,0 +41,0 @@ const editorDevfileContent = devfilesRegistryHelper.obtainCheDevFileEditorFromCheConfigMap('editors-definitions'); |
@@ -38,3 +38,3 @@ "use strict"; | ||
const randomPref = crypto_1.default.randomBytes(4).toString('hex'); | ||
kubernetesCommandLineToolsExecutor.namespace = API_TEST_CONSTANTS_1.API_TEST_CONSTANTS.TS_API_TEST_NAMESPACE || 'admin-devspaces'; | ||
kubernetesCommandLineToolsExecutor.namespace = API_TEST_CONSTANTS_1.API_TEST_CONSTANTS.TS_API_TEST_NAMESPACE; | ||
devfileContent = devfilesRegistryHelper.getDevfileContent(devfileID); | ||
@@ -41,0 +41,0 @@ const editorDevfileContent = devfilesRegistryHelper.obtainCheDevFileEditorFromCheConfigMap('editors-definitions'); |
@@ -38,3 +38,3 @@ "use strict"; | ||
const randomPref = crypto_1.default.randomBytes(4).toString('hex'); | ||
kubernetesCommandLineToolsExecutor.namespace = API_TEST_CONSTANTS_1.API_TEST_CONSTANTS.TS_API_TEST_NAMESPACE || 'admin-devspaces'; | ||
kubernetesCommandLineToolsExecutor.namespace = API_TEST_CONSTANTS_1.API_TEST_CONSTANTS.TS_API_TEST_NAMESPACE; | ||
devfileContent = devfilesRegistryHelper.getDevfileContent(devfileID); | ||
@@ -41,0 +41,0 @@ const editorDevfileContent = devfilesRegistryHelper.obtainCheDevFileEditorFromCheConfigMap('editors-definitions'); |
@@ -38,3 +38,3 @@ "use strict"; | ||
const randomPref = crypto_1.default.randomBytes(4).toString('hex'); | ||
kubernetesCommandLineToolsExecutor.namespace = API_TEST_CONSTANTS_1.API_TEST_CONSTANTS.TS_API_TEST_NAMESPACE || 'admin-devspaces'; | ||
kubernetesCommandLineToolsExecutor.namespace = API_TEST_CONSTANTS_1.API_TEST_CONSTANTS.TS_API_TEST_NAMESPACE; | ||
devfileContent = devfilesRegistryHelper.getDevfileContent(devfileID); | ||
@@ -41,0 +41,0 @@ const editorDevfileContent = devfilesRegistryHelper.obtainCheDevFileEditorFromCheConfigMap('editors-definitions'); |
@@ -38,3 +38,3 @@ "use strict"; | ||
const randomPref = crypto_1.default.randomBytes(4).toString('hex'); | ||
kubernetesCommandLineToolsExecutor.namespace = API_TEST_CONSTANTS_1.API_TEST_CONSTANTS.TS_API_TEST_NAMESPACE || 'admin-devspaces'; | ||
kubernetesCommandLineToolsExecutor.namespace = API_TEST_CONSTANTS_1.API_TEST_CONSTANTS.TS_API_TEST_NAMESPACE; | ||
devfileContent = devfilesRegistryHelper.getDevfileContent(devfileID); | ||
@@ -41,0 +41,0 @@ const editorDevfileContent = devfilesRegistryHelper.obtainCheDevFileEditorFromCheConfigMap('editors-definitions'); |
@@ -38,3 +38,3 @@ "use strict"; | ||
const randomPref = crypto_1.default.randomBytes(4).toString('hex'); | ||
kubernetesCommandLineToolsExecutor.namespace = API_TEST_CONSTANTS_1.API_TEST_CONSTANTS.TS_API_TEST_NAMESPACE || 'admin-devspaces'; | ||
kubernetesCommandLineToolsExecutor.namespace = API_TEST_CONSTANTS_1.API_TEST_CONSTANTS.TS_API_TEST_NAMESPACE; | ||
devfileContent = devfilesRegistryHelper.getDevfileContent(devfileID); | ||
@@ -41,0 +41,0 @@ const editorDevfileContent = devfilesRegistryHelper.obtainCheDevFileEditorFromCheConfigMap('editors-definitions'); |
@@ -38,3 +38,3 @@ "use strict"; | ||
const randomPref = crypto_1.default.randomBytes(4).toString('hex'); | ||
kubernetesCommandLineToolsExecutor.namespace = API_TEST_CONSTANTS_1.API_TEST_CONSTANTS.TS_API_TEST_NAMESPACE || 'admin-devspaces'; | ||
kubernetesCommandLineToolsExecutor.namespace = API_TEST_CONSTANTS_1.API_TEST_CONSTANTS.TS_API_TEST_NAMESPACE; | ||
devfileContent = devfilesRegistryHelper.getDevfileContent(devfileID); | ||
@@ -41,0 +41,0 @@ const editorDevfileContent = devfilesRegistryHelper.obtainCheDevFileEditorFromCheConfigMap('editors-definitions'); |
@@ -38,3 +38,3 @@ "use strict"; | ||
const randomPref = crypto_1.default.randomBytes(4).toString('hex'); | ||
kubernetesCommandLineToolsExecutor.namespace = API_TEST_CONSTANTS_1.API_TEST_CONSTANTS.TS_API_TEST_NAMESPACE || 'admin-devspaces'; | ||
kubernetesCommandLineToolsExecutor.namespace = API_TEST_CONSTANTS_1.API_TEST_CONSTANTS.TS_API_TEST_NAMESPACE; | ||
devfileContent = devfilesRegistryHelper.getDevfileContent(devfileID); | ||
@@ -41,0 +41,0 @@ const editorDevfileContent = devfilesRegistryHelper.obtainCheDevFileEditorFromCheConfigMap('editors-definitions'); |
@@ -38,3 +38,3 @@ "use strict"; | ||
const randomPref = crypto_1.default.randomBytes(4).toString('hex'); | ||
kubernetesCommandLineToolsExecutor.namespace = API_TEST_CONSTANTS_1.API_TEST_CONSTANTS.TS_API_TEST_NAMESPACE || 'admin-devspaces'; | ||
kubernetesCommandLineToolsExecutor.namespace = API_TEST_CONSTANTS_1.API_TEST_CONSTANTS.TS_API_TEST_NAMESPACE; | ||
devfileContent = devfilesRegistryHelper.getDevfileContent(devfileID); | ||
@@ -41,0 +41,0 @@ const editorDevfileContent = devfilesRegistryHelper.obtainCheDevFileEditorFromCheConfigMap('editors-definitions'); |
"use strict"; | ||
/** ******************************************************************* | ||
* copyright (c) 2021-2024 Red Hat, Inc. | ||
* copyright (c) 2021-2025 Red Hat, Inc. | ||
* | ||
@@ -32,3 +32,2 @@ * This program and the accompanying materials are made | ||
const dashboard = inversify_config_1.e2eContainer.get(inversify_types_1.CLASSES.Dashboard); | ||
const workspaces = inversify_config_1.e2eContainer.get(inversify_types_1.CLASSES.Workspaces); | ||
const loginTests = inversify_config_1.e2eContainer.get(inversify_types_1.CLASSES.LoginTests); | ||
@@ -43,3 +42,2 @@ const testWorkspaceUtil = inversify_config_1.e2eContainer.get(inversify_types_1.TYPES.WorkspaceUtil); | ||
// test specific data | ||
let numberOfCreatedWorkspaces = 0; | ||
const timeToRefresh = 1500; | ||
@@ -57,7 +55,2 @@ const changesToCommit = new Date().getTime().toString(); | ||
}); | ||
test('Get number of previously created workspaces', async function () { | ||
await dashboard.clickWorkspacesButton(); | ||
await workspaces.waitPage(); | ||
numberOfCreatedWorkspaces = (await workspaces.getAllCreatedWorkspacesNames()).length; | ||
}); | ||
test(`Navigate to the ${isPrivateRepo} repository factory URL`, async function () { | ||
@@ -68,18 +61,3 @@ await browserTabsUtil.navigateTo(FACTORY_TEST_CONSTANTS_1.FACTORY_TEST_CONSTANTS.TS_SELENIUM_FACTORY_URL()); | ||
if (FACTORY_TEST_CONSTANTS_1.FACTORY_TEST_CONSTANTS.TS_SELENIUM_IS_PRIVATE_FACTORY_GIT_REPO) { | ||
test(`Check that workspace cannot be created without PAT/OAuth for ${isPrivateRepo} repo`, async function () { | ||
await dashboard.waitLoader(); | ||
const loaderAlert = await dashboard.getLoaderAlert(); | ||
(0, chai_1.expect)(loaderAlert).to.contain('Could not reach devfile at'); | ||
}); | ||
test('Check that workspace was not created', async function () { | ||
await dashboard.openDashboard(); | ||
await dashboard.clickWorkspacesButton(); | ||
await workspaces.waitPage(); | ||
const allCreatedWorkspacesNames = await workspaces.getAllCreatedWorkspacesNames(); | ||
(0, chai_1.expect)(allCreatedWorkspacesNames).has.length(numberOfCreatedWorkspaces); | ||
}); | ||
test('Check creating workspace using default devfile', async function () { | ||
await browserTabsUtil.navigateTo(FACTORY_TEST_CONSTANTS_1.FACTORY_TEST_CONSTANTS.TS_SELENIUM_FACTORY_URL()); | ||
await dashboard.waitLoader(); | ||
await dashboard.clickContinueWithDefaultDevfileButton(); | ||
await workspaceHandlingTests.obtainWorkspaceNameFromStartingPage(); | ||
@@ -86,0 +64,0 @@ (0, MochaHooks_1.registerRunningWorkspace)(WorkspaceHandlingTests_1.WorkspaceHandlingTests.getWorkspaceName()); |
{ | ||
"name": "@eclipse-che/che-e2e", | ||
"version": "7.98.0-next-2f9d491", | ||
"version": "7.98.0-next-46fa921", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -46,3 +46,3 @@ /** ******************************************************************* | ||
const randomPref: string = crypto.randomBytes(4).toString('hex'); | ||
kubernetesCommandLineToolsExecutor.namespace = API_TEST_CONSTANTS.TS_API_TEST_NAMESPACE || 'admin-devspaces'; | ||
kubernetesCommandLineToolsExecutor.namespace = API_TEST_CONSTANTS.TS_API_TEST_NAMESPACE; | ||
devfileContent = devfilesRegistryHelper.getDevfileContent(devfileID); | ||
@@ -49,0 +49,0 @@ const editorDevfileContent: string = devfilesRegistryHelper.obtainCheDevFileEditorFromCheConfigMap('editors-definitions'); |
@@ -42,3 +42,3 @@ /** ******************************************************************* | ||
const randomPref: string = crypto.randomBytes(4).toString('hex'); | ||
kubernetesCommandLineToolsExecutor.namespace = API_TEST_CONSTANTS.TS_API_TEST_NAMESPACE || 'admin-devspaces'; | ||
kubernetesCommandLineToolsExecutor.namespace = API_TEST_CONSTANTS.TS_API_TEST_NAMESPACE; | ||
devfileContent = devfilesRegistryHelper.getDevfileContent(devfileID); | ||
@@ -45,0 +45,0 @@ const editorDevfileContent: string = devfilesRegistryHelper.obtainCheDevFileEditorFromCheConfigMap('editors-definitions'); |
@@ -43,3 +43,3 @@ /** ******************************************************************* | ||
const randomPref: string = crypto.randomBytes(4).toString('hex'); | ||
kubernetesCommandLineToolsExecutor.namespace = API_TEST_CONSTANTS.TS_API_TEST_NAMESPACE || 'admin-devspaces'; | ||
kubernetesCommandLineToolsExecutor.namespace = API_TEST_CONSTANTS.TS_API_TEST_NAMESPACE; | ||
devfileContent = devfilesRegistryHelper.getDevfileContent(devfileID); | ||
@@ -46,0 +46,0 @@ const editorDevfileContent: string = devfilesRegistryHelper.obtainCheDevFileEditorFromCheConfigMap('editors-definitions'); |
@@ -42,3 +42,3 @@ /** ******************************************************************* | ||
const randomPref: string = crypto.randomBytes(4).toString('hex'); | ||
kubernetesCommandLineToolsExecutor.namespace = API_TEST_CONSTANTS.TS_API_TEST_NAMESPACE || 'admin-devspaces'; | ||
kubernetesCommandLineToolsExecutor.namespace = API_TEST_CONSTANTS.TS_API_TEST_NAMESPACE; | ||
devfileContent = devfilesRegistryHelper.getDevfileContent(devfileID); | ||
@@ -45,0 +45,0 @@ const editorDevfileContent: string = devfilesRegistryHelper.obtainCheDevFileEditorFromCheConfigMap('editors-definitions'); |
@@ -42,3 +42,3 @@ /** ******************************************************************* | ||
const randomPref: string = crypto.randomBytes(4).toString('hex'); | ||
kubernetesCommandLineToolsExecutor.namespace = API_TEST_CONSTANTS.TS_API_TEST_NAMESPACE || 'admin-devspaces'; | ||
kubernetesCommandLineToolsExecutor.namespace = API_TEST_CONSTANTS.TS_API_TEST_NAMESPACE; | ||
devfileContent = devfilesRegistryHelper.getDevfileContent(devfileID); | ||
@@ -45,0 +45,0 @@ const editorDevfileContent: string = devfilesRegistryHelper.obtainCheDevFileEditorFromCheConfigMap('editors-definitions'); |
@@ -42,3 +42,3 @@ /** ******************************************************************* | ||
const randomPref: string = crypto.randomBytes(4).toString('hex'); | ||
kubernetesCommandLineToolsExecutor.namespace = API_TEST_CONSTANTS.TS_API_TEST_NAMESPACE || 'admin-devspaces'; | ||
kubernetesCommandLineToolsExecutor.namespace = API_TEST_CONSTANTS.TS_API_TEST_NAMESPACE; | ||
devfileContent = devfilesRegistryHelper.getDevfileContent(devfileID); | ||
@@ -45,0 +45,0 @@ const editorDevfileContent: string = devfilesRegistryHelper.obtainCheDevFileEditorFromCheConfigMap('editors-definitions'); |
@@ -42,3 +42,3 @@ /** ******************************************************************* | ||
const randomPref: string = crypto.randomBytes(4).toString('hex'); | ||
kubernetesCommandLineToolsExecutor.namespace = API_TEST_CONSTANTS.TS_API_TEST_NAMESPACE || 'admin-devspaces'; | ||
kubernetesCommandLineToolsExecutor.namespace = API_TEST_CONSTANTS.TS_API_TEST_NAMESPACE; | ||
devfileContent = devfilesRegistryHelper.getDevfileContent(devfileID); | ||
@@ -45,0 +45,0 @@ const editorDevfileContent: string = devfilesRegistryHelper.obtainCheDevFileEditorFromCheConfigMap('editors-definitions'); |
@@ -42,3 +42,3 @@ /** ******************************************************************* | ||
const randomPref: string = crypto.randomBytes(4).toString('hex'); | ||
kubernetesCommandLineToolsExecutor.namespace = API_TEST_CONSTANTS.TS_API_TEST_NAMESPACE || 'admin-devspaces'; | ||
kubernetesCommandLineToolsExecutor.namespace = API_TEST_CONSTANTS.TS_API_TEST_NAMESPACE; | ||
devfileContent = devfilesRegistryHelper.getDevfileContent(devfileID); | ||
@@ -45,0 +45,0 @@ const editorDevfileContent: string = devfilesRegistryHelper.obtainCheDevFileEditorFromCheConfigMap('editors-definitions'); |
@@ -43,3 +43,3 @@ /** ******************************************************************* | ||
const randomPref: string = crypto.randomBytes(4).toString('hex'); | ||
kubernetesCommandLineToolsExecutor.namespace = API_TEST_CONSTANTS.TS_API_TEST_NAMESPACE || 'admin-devspaces'; | ||
kubernetesCommandLineToolsExecutor.namespace = API_TEST_CONSTANTS.TS_API_TEST_NAMESPACE; | ||
devfileContent = devfilesRegistryHelper.getDevfileContent(devfileID); | ||
@@ -46,0 +46,0 @@ const editorDevfileContent: string = devfilesRegistryHelper.obtainCheDevFileEditorFromCheConfigMap('editors-definitions'); |
@@ -42,3 +42,3 @@ /** ******************************************************************* | ||
const randomPref: string = crypto.randomBytes(4).toString('hex'); | ||
kubernetesCommandLineToolsExecutor.namespace = API_TEST_CONSTANTS.TS_API_TEST_NAMESPACE || 'admin-devspaces'; | ||
kubernetesCommandLineToolsExecutor.namespace = API_TEST_CONSTANTS.TS_API_TEST_NAMESPACE; | ||
devfileContent = devfilesRegistryHelper.getDevfileContent(devfileID); | ||
@@ -45,0 +45,0 @@ const editorDevfileContent: string = devfilesRegistryHelper.obtainCheDevFileEditorFromCheConfigMap('editors-definitions'); |
/** ******************************************************************* | ||
* copyright (c) 2021-2024 Red Hat, Inc. | ||
* copyright (c) 2021-2025 Red Hat, Inc. | ||
* | ||
@@ -36,3 +36,2 @@ * This program and the accompanying materials are made | ||
import { Dashboard } from '../../pageobjects/dashboard/Dashboard'; | ||
import { Workspaces } from '../../pageobjects/dashboard/Workspaces'; | ||
import { Logger } from '../../utils/Logger'; | ||
@@ -57,3 +56,2 @@ import { LoginTests } from '../../tests-library/LoginTests'; | ||
const dashboard: Dashboard = e2eContainer.get(CLASSES.Dashboard); | ||
const workspaces: Workspaces = e2eContainer.get(CLASSES.Workspaces); | ||
const loginTests: LoginTests = e2eContainer.get(CLASSES.LoginTests); | ||
@@ -70,3 +68,2 @@ const testWorkspaceUtil: ITestWorkspaceUtil = e2eContainer.get(TYPES.WorkspaceUtil); | ||
// test specific data | ||
let numberOfCreatedWorkspaces: number = 0; | ||
const timeToRefresh: number = 1500; | ||
@@ -86,8 +83,2 @@ const changesToCommit: string = new Date().getTime().toString(); | ||
test('Get number of previously created workspaces', async function (): Promise<void> { | ||
await dashboard.clickWorkspacesButton(); | ||
await workspaces.waitPage(); | ||
numberOfCreatedWorkspaces = (await workspaces.getAllCreatedWorkspacesNames()).length; | ||
}); | ||
test(`Navigate to the ${isPrivateRepo} repository factory URL`, async function (): Promise<void> { | ||
@@ -99,20 +90,3 @@ await browserTabsUtil.navigateTo(FACTORY_TEST_CONSTANTS.TS_SELENIUM_FACTORY_URL()); | ||
if (FACTORY_TEST_CONSTANTS.TS_SELENIUM_IS_PRIVATE_FACTORY_GIT_REPO) { | ||
test(`Check that workspace cannot be created without PAT/OAuth for ${isPrivateRepo} repo`, async function (): Promise<void> { | ||
await dashboard.waitLoader(); | ||
const loaderAlert: string = await dashboard.getLoaderAlert(); | ||
expect(loaderAlert).to.contain('Could not reach devfile at'); | ||
}); | ||
test('Check that workspace was not created', async function (): Promise<void> { | ||
await dashboard.openDashboard(); | ||
await dashboard.clickWorkspacesButton(); | ||
await workspaces.waitPage(); | ||
const allCreatedWorkspacesNames: string[] = await workspaces.getAllCreatedWorkspacesNames(); | ||
expect(allCreatedWorkspacesNames).has.length(numberOfCreatedWorkspaces); | ||
}); | ||
test('Check creating workspace using default devfile', async function (): Promise<void> { | ||
await browserTabsUtil.navigateTo(FACTORY_TEST_CONSTANTS.TS_SELENIUM_FACTORY_URL()); | ||
await dashboard.waitLoader(); | ||
await dashboard.clickContinueWithDefaultDevfileButton(); | ||
await workspaceHandlingTests.obtainWorkspaceNameFromStartingPage(); | ||
@@ -119,0 +93,0 @@ registerRunningWorkspace(WorkspaceHandlingTests.getWorkspaceName()); |
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
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
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
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 5 instances in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 4 instances in 1 package
1364213
40
19359