From 5f08f929942902974c53aa60357870d325050595 Mon Sep 17 00:00:00 2001 From: lianahus Date: Wed, 29 Nov 2023 18:58:58 +0100 Subject: [PATCH] enamble matomo check --- apps/remix-ide-e2e/src/helpers/init.ts | 4 ++-- apps/remix-ide/src/app.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/remix-ide-e2e/src/helpers/init.ts b/apps/remix-ide-e2e/src/helpers/init.ts index 48c09a52f4..2f8eb94c7f 100644 --- a/apps/remix-ide-e2e/src/helpers/init.ts +++ b/apps/remix-ide-e2e/src/helpers/init.ts @@ -11,10 +11,10 @@ export default function (browser: NightwatchBrowser, callback: VoidFunction, url browser .url(url || 'http://127.0.0.1:8080') //.switchBrowserTab(0) + .waitForElementVisible('[id="beginnerbtn"]') + .click('[id="beginnerbtn"]') .waitForElementVisible('[id="remixTourSkipbtn"]') .click('[id="remixTourSkipbtn"]') - .waitForElementVisible('data-id="EnterModalDialogContainer-react"]') - .click('[data-id="beginnerbtn"]') .perform((done) => { if (!loadPlugin) return done() diff --git a/apps/remix-ide/src/app.js b/apps/remix-ide/src/app.js index c7e11c0512..55d349088a 100644 --- a/apps/remix-ide/src/app.js +++ b/apps/remix-ide/src/app.js @@ -130,7 +130,7 @@ class AppComponent { 'remix.ethereum.org': 23, '6fd22d6fe5549ad4c4d8fd3ca0b7816b.mod': 35 // remix desktop } - this.showMatamo = true//matomoDomains[window.location.hostname] && !Registry.getInstance().get('config').api.exists('settings/matomo-analytics') + this.showMatamo = matomoDomains[window.location.hostname] && !Registry.getInstance().get('config').api.exists('settings/matomo-analytics') this.showEnter = !localStorage.getItem('hadUsageTypeAsked') console.log("show ", this.showMatamo, " ", this.showEnter)