@@ -25,7 +25,6 @@ import { ITestWorkspaceUtil } from '../../utils/workspace/ITestWorkspaceUtil';
25
25
import { DriverHelper } from '../../utils/DriverHelper' ;
26
26
import { TIMEOUT_CONSTANTS } from '../../constants/TIMEOUT_CONSTANTS' ;
27
27
import { FACTORY_TEST_CONSTANTS } from '../../constants/FACTORY_TEST_CONSTANTS' ;
28
- import { CreateWorkspace } from '../../pageobjects/dashboard/CreateWorkspace' ;
29
28
30
29
suite ( `Workspace using a parent test suite ${ BASE_TEST_CONSTANTS . TEST_ENVIRONMENT } ` , function ( ) : void {
31
30
const projectAndFileTests : ProjectAndFileTests = e2eContainer . get ( CLASSES . ProjectAndFileTests ) ;
@@ -39,8 +38,6 @@ suite(`Workspace using a parent test suite ${BASE_TEST_CONSTANTS.TEST_ENVIRONMEN
39
38
CLASSES . KubernetesCommandLineToolsExecutor
40
39
) ;
41
40
const driverHelper : DriverHelper = e2eContainer . get ( CLASSES . DriverHelper ) ;
42
- const createWorkspace : CreateWorkspace = e2eContainer . get ( CLASSES . CreateWorkspace ) ;
43
-
44
41
let podName : string = '' ;
45
42
46
43
suiteSetup ( function ( ) : void {
@@ -57,13 +54,13 @@ suite(`Workspace using a parent test suite ${BASE_TEST_CONSTANTS.TEST_ENVIRONMEN
57
54
? BASE_TEST_CONSTANTS . TS_SELENIUM_BASE_URL + '/dashboard/#/' + 'https://github.com/testsfactory/parentDevfile'
58
55
: BASE_TEST_CONSTANTS . TS_SELENIUM_BASE_URL + '/dashboard/#/' + FACTORY_TEST_CONSTANTS . TS_SELENIUM_FACTORY_GIT_REPO_URL ;
59
56
await dashboard . waitPage ( ) ;
57
+ await testWorkspaceUtil . switchOffTrustDialogWithJavaScript ( ) ;
60
58
await browserTabsUtil . navigateTo ( factoryUrl ) ;
61
- await createWorkspace . performTrustAuthorPopup ( ) ;
62
59
await workspaceHandlingTests . obtainWorkspaceNameFromStartingPage ( ) ;
63
60
registerRunningWorkspace ( WorkspaceHandlingTests . getWorkspaceName ( ) ) ;
64
61
await projectAndFileTests . waitWorkspaceReadinessForCheCodeEditor ( ) ;
65
62
// add 10 sec timeout for waiting for finishing animation of all IDE parts (Welcome parts. bottom widgets. etc.)
66
- // using 10 sec easier than performing of finishing animation a all elements
63
+ // using 10 sec easier than performing of finishing animation of all elements
67
64
await driverHelper . wait ( TIMEOUT_CONSTANTS . TS_SELENIUM_WAIT_FOR_URL ) ;
68
65
await projectAndFileTests . performTrustAuthorDialog ( ) ;
69
66
} ) ;
0 commit comments