Skip to content

Commit b680b0d

Browse files
authored
[Test] ExtensionActivationTest test should use correct repo for airgap cluster (#23554)
1 parent ecb3d93 commit b680b0d

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

tests/e2e/specs/miscellaneous/ExtensionActivationTest.spec.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import { By } from 'selenium-webdriver';
2626
import { BASE_TEST_CONSTANTS } from '../../constants/BASE_TEST_CONSTANTS';
2727
import { ViewSection } from 'monaco-page-objects';
2828
import { Workspaces } from '../../pageobjects/dashboard/Workspaces';
29+
import { FACTORY_TEST_CONSTANTS } from '../../constants/FACTORY_TEST_CONSTANTS';
2930

3031
suite(`Extension Activation Test ${BASE_TEST_CONSTANTS.TEST_ENVIRONMENT}`, function (): void {
3132
const workspaceHandlingTests: WorkspaceHandlingTests = e2eContainer.get(CLASSES.WorkspaceHandlingTests);
@@ -37,7 +38,12 @@ suite(`Extension Activation Test ${BASE_TEST_CONSTANTS.TEST_ENVIRONMENT}`, funct
3738
const testWorkspaceUtil: ITestWorkspaceUtil = e2eContainer.get(TYPES.WorkspaceUtil);
3839
const workspaces: Workspaces = e2eContainer.get(CLASSES.Workspaces);
3940

40-
const FACTORY_URL: string = 'https://github.com/crw-qe/python-hello-world/tree/test-vscode-extensions';
41+
const factoryUrl: string = BASE_TEST_CONSTANTS.IS_CLUSTER_DISCONNECTED()
42+
? FACTORY_TEST_CONSTANTS.TS_SELENIUM_AIRGAP_FACTORY_GIT_REPO_URL ||
43+
'https://gh.crw-qe.com/test-automation-only/python-hello-world/tree/test-vscode-extensions'
44+
: FACTORY_TEST_CONSTANTS.TS_SELENIUM_FACTORY_GIT_REPO_URL ||
45+
'https://github.com/crw-qe/python-hello-world/tree/test-vscode-extensions';
46+
4147
const PROJECT_NAME: string = 'python-hello-world';
4248
const PYTHON_FILE_NAME: string = 'hello-world.py';
4349
const RUN_PYTHON_BUTTON: By = By.xpath('//a[@aria-label="Run Python File"]');
@@ -55,7 +61,7 @@ suite(`Extension Activation Test ${BASE_TEST_CONSTANTS.TEST_ENVIRONMENT}`, funct
5561
});
5662

5763
test('Create and open workspace from factory URL', async function (): Promise<void> {
58-
await workspaceHandlingTests.createAndOpenWorkspaceFromGitRepository(FACTORY_URL);
64+
await workspaceHandlingTests.createAndOpenWorkspaceFromGitRepository(factoryUrl);
5965
await workspaceHandlingTests.obtainWorkspaceNameFromStartingPage();
6066
workspaceName = WorkspaceHandlingTests.getWorkspaceName();
6167
expect(workspaceName, 'Workspace name was not detected').not.empty;

0 commit comments

Comments
 (0)