From 02c771ca1f29fd0cf7612522386c849867a9bcb2 Mon Sep 17 00:00:00 2001 From: Maksym Musiienko Date: Fri, 29 Mar 2024 11:09:58 +0200 Subject: [PATCH] Add ability to set c0ustom factory url for the WorkspaceWithParent (#22903) --- tests/e2e/specs/miscellaneous/WorkspaceWithParent.spec.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/e2e/specs/miscellaneous/WorkspaceWithParent.spec.ts b/tests/e2e/specs/miscellaneous/WorkspaceWithParent.spec.ts index ba6ddf6b57b..c7fd451905e 100644 --- a/tests/e2e/specs/miscellaneous/WorkspaceWithParent.spec.ts +++ b/tests/e2e/specs/miscellaneous/WorkspaceWithParent.spec.ts @@ -24,6 +24,7 @@ import { KubernetesCommandLineToolsExecutor } from '../../utils/KubernetesComman import { ITestWorkspaceUtil } from '../../utils/workspace/ITestWorkspaceUtil'; import { DriverHelper } from '../../utils/DriverHelper'; import { TIMEOUT_CONSTANTS } from '../../constants/TIMEOUT_CONSTANTS'; +import { FACTORY_TEST_CONSTANTS } from '../../constants/FACTORY_TEST_CONSTANTS'; suite(`Workspace using a parent test suite ${BASE_TEST_CONSTANTS.TEST_ENVIRONMENT}`, function (): void { const projectAndFileTests: ProjectAndFileTests = e2eContainer.get(CLASSES.ProjectAndFileTests); @@ -49,7 +50,10 @@ suite(`Workspace using a parent test suite ${BASE_TEST_CONSTANTS.TEST_ENVIRONMEN }); test('Create a workspace from child devfile', async function (): Promise { - const factoryUrl: string = `${BASE_TEST_CONSTANTS.TS_SELENIUM_BASE_URL}/dashboard/#https://github.com/testsfactory/parentDevfile`; + const factoryUrl: string = + FACTORY_TEST_CONSTANTS.TS_SELENIUM_FACTORY_GIT_REPO_URL.length === 0 + ? BASE_TEST_CONSTANTS.TS_SELENIUM_BASE_URL + '/dashboard/#/' + 'https://github.com/testsfactory/parentDevfile' + : BASE_TEST_CONSTANTS.TS_SELENIUM_BASE_URL + '/dashboard/#/' + FACTORY_TEST_CONSTANTS.TS_SELENIUM_FACTORY_GIT_REPO_URL; await dashboard.waitPage(); await browserTabsUtil.navigateTo(factoryUrl); await workspaceHandlingTests.obtainWorkspaceNameFromStartingPage();