File tree 2 files changed +16
-2
lines changed
2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change 1
1
/** *******************************************************************
2
- * copyright (c) 2020-2023 Red Hat, Inc.
2
+ * copyright (c) 2020-2025 Red Hat, Inc.
3
3
*
4
4
* This program and the accompanying materials are made
5
5
* available under the terms of the Eclipse Public License 2.0
@@ -17,6 +17,7 @@ export const BASE_TEST_CONSTANTS: {
17
17
DELETE_WORKSPACE_ON_FAILED_TEST : boolean ;
18
18
DELETE_WORKSPACE_ON_SUCCESSFUL_TEST : boolean ;
19
19
SELECT_OPENING_EXISTING_WORKSPACE_INSTEAD_OF_CREATION_NEW : boolean ;
20
+ SELECT_CREATING_NEW_WORKSPACE : boolean ;
20
21
IS_CLUSTER_DISCONNECTED : ( ) => boolean ;
21
22
IS_PRODUCT_DOCUMENTATION_RELEASED : any ;
22
23
OCP_VERSION : string ;
@@ -145,6 +146,12 @@ export const BASE_TEST_CONSTANTS: {
145
146
SELECT_OPENING_EXISTING_WORKSPACE_INSTEAD_OF_CREATION_NEW :
146
147
process . env . SELECT_OPENING_EXISTING_WORKSPACE_INSTEAD_OF_CREATION_NEW === 'true' ,
147
148
149
+ /**
150
+ * select creation of a new workspace, if a duplicate workspace is created from the factory or sample list.
151
+ * this option is false by default.
152
+ */
153
+ SELECT_CREATING_NEW_WORKSPACE : process . env . SELECT_CREATING_NEW_WORKSPACE === 'true' ,
154
+
148
155
/**
149
156
* constant, which prolong timeout constants for local debug.
150
157
*/
Original file line number Diff line number Diff line change 1
1
/** *******************************************************************
2
- * copyright (c) 2021-2024 Red Hat, Inc.
2
+ * copyright (c) 2021-2025 Red Hat, Inc.
3
3
*
4
4
* This program and the accompanying materials are made
5
5
* available under the terms of the Eclipse Public License 2.0
@@ -95,6 +95,13 @@ suite(
95
95
} ) ;
96
96
}
97
97
98
+ if ( BASE_TEST_CONSTANTS . SELECT_CREATING_NEW_WORKSPACE ) {
99
+ test ( 'Select of creating a new workspace' , async function ( ) : Promise < void > {
100
+ await dashboard . waitExistingWorkspaceFoundAlert ( ) ;
101
+ await dashboard . clickOnCreateNewWorkspaceButton ( ) ;
102
+ } ) ;
103
+ }
104
+
98
105
test ( 'Obtain workspace name from workspace loader page' , async function ( ) : Promise < void > {
99
106
await workspaceHandlingTests . obtainWorkspaceNameFromStartingPage ( ) ;
100
107
} ) ;
You can’t perform that action at this time.
0 commit comments