From 78c730e0726e3fb7482c2bf3e6fa056b3f28344e Mon Sep 17 00:00:00 2001 From: filip mertens Date: Mon, 19 Sep 2022 14:10:58 +0200 Subject: [PATCH] rm pause --- apps/remix-ide-e2e/src/tests/url.test.ts | 2 -- apps/remix-ide/src/app.js | 10 +++++++--- libs/remix-ui/editor/src/lib/remix-ui-editor.tsx | 4 +++- libs/remix-ui/editor/src/lib/web-types.ts | 4 +++- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/apps/remix-ide-e2e/src/tests/url.test.ts b/apps/remix-ide-e2e/src/tests/url.test.ts index 581837ed6b..69f5eb57d5 100644 --- a/apps/remix-ide-e2e/src/tests/url.test.ts +++ b/apps/remix-ide-e2e/src/tests/url.test.ts @@ -160,7 +160,6 @@ module.exports = { browser .url('http://127.0.0.1:8080/#optimize=false&runs=200&deployProxy=true') .refresh().pause(10000) - .switchWorkspace('default_workspace') .addFile('myTokenV1.sol', sources[1]['myTokenV1.sol']) .clickLaunchIcon('solidity') @@ -178,7 +177,6 @@ module.exports = { browser .url('http://127.0.0.1:8080/#optimize=false&runs=200&upgradeProxy=true') .refresh().pause(10000) - .pause(10000) .waitForElementVisible('*[data-id="treeViewLitreeViewItemmyTokenV1.sol"]', 60000) .openFile('myTokenV1.sol') .waitForElementVisible({ diff --git a/apps/remix-ide/src/app.js b/apps/remix-ide/src/app.js index 553bcd3c9d..07d046989c 100644 --- a/apps/remix-ide/src/app.js +++ b/apps/remix-ide/src/app.js @@ -381,7 +381,10 @@ class AppComponent { 'filePanel', 'workspaceInitializationCompleted', async () => { - console.log('workspaceInitializationCompleted') + // for e2e tests + const workspaceloaded = document.createElement('span') + workspaceloaded.setAttribute('data-id', 'workspaceloaded') + document.body.appendChild(workspaceloaded) await this.appManager.registerContextMenuItems() } ) @@ -447,8 +450,9 @@ class AppComponent { } } - console.log('app is done') - + const workspaceloaded = document.createElement('span') + workspaceloaded.setAttribute('data-id', 'apploaded') + document.body.appendChild(workspaceloaded) }) .catch(console.error) } diff --git a/libs/remix-ui/editor/src/lib/remix-ui-editor.tsx b/libs/remix-ui/editor/src/lib/remix-ui-editor.tsx index 705f5506c4..49f9bd00d0 100644 --- a/libs/remix-ui/editor/src/lib/remix-ui-editor.tsx +++ b/libs/remix-ui/editor/src/lib/remix-ui-editor.tsx @@ -606,7 +606,9 @@ export const EditorUI = (props: EditorUIProps) => { } return result } - console.log('editor mounted') + const workspaceloaded = document.createElement('span') + workspaceloaded.setAttribute('data-id', 'editorloaded') + document.body.appendChild(workspaceloaded) } function handleEditorWillMount(monaco) { diff --git a/libs/remix-ui/editor/src/lib/web-types.ts b/libs/remix-ui/editor/src/lib/web-types.ts index 61f0492e4c..8b8feca774 100644 --- a/libs/remix-ui/editor/src/lib/web-types.ts +++ b/libs/remix-ui/editor/src/lib/web-types.ts @@ -233,5 +233,7 @@ export const loadTypes = async (monaco) => { const mochaType = await import('raw-loader!@types/mocha/index.d.ts') monaco.languages.typescript.typescriptDefaults.addExtraLib(mochaType.default, `file:///node_modules/@types/mocha/index.d.ts`) - console.log('types loaded') + const workspaceloaded = document.createElement('span') + workspaceloaded.setAttribute('data-id', 'typesloaded') + document.body.appendChild(workspaceloaded) } \ No newline at end of file