From 925bfa4e6e31db3bcdefb80e9bee1eda4ae978e4 Mon Sep 17 00:00:00 2001 From: bunsenstraat Date: Mon, 4 Nov 2024 15:58:48 +0100 Subject: [PATCH] hidescamdetails --- apps/remix-ide-e2e/src/commands/hideToolTips.ts | 5 ++++- apps/remix-ide-e2e/src/helpers/init.ts | 5 +++-- libs/remix-ui/statusbar/src/lib/components/scamDetails.tsx | 1 + 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/apps/remix-ide-e2e/src/commands/hideToolTips.ts b/apps/remix-ide-e2e/src/commands/hideToolTips.ts index 00a05e26c3..87d7e10b64 100644 --- a/apps/remix-ide-e2e/src/commands/hideToolTips.ts +++ b/apps/remix-ide-e2e/src/commands/hideToolTips.ts @@ -1,4 +1,4 @@ -import {NightwatchBrowser} from 'nightwatch' +import { NightwatchBrowser } from 'nightwatch' import EventEmitter from 'events' class HideToolTips extends EventEmitter { @@ -16,6 +16,9 @@ class HideToolTips extends EventEmitter { .popover { display:none !important; } + #scamDetails { + display:none !important; + } `) }, [], done()) }) diff --git a/apps/remix-ide-e2e/src/helpers/init.ts b/apps/remix-ide-e2e/src/helpers/init.ts index a6c303f32d..5954ce7b38 100644 --- a/apps/remix-ide-e2e/src/helpers/init.ts +++ b/apps/remix-ide-e2e/src/helpers/init.ts @@ -27,8 +27,6 @@ export default function (browser: NightwatchBrowser, callback: VoidFunction, url }) .verifyLoad() .enableClipBoard() - .waitForElementVisible('*[data-id="hTScamAlertButton"]') - .click('*[data-id="hTScamAlertButton"]') .waitForElementVisible('*[data-id="aiStatusButton"]') .click('*[data-id="aiStatusButton"]') .perform((done) => { @@ -43,6 +41,9 @@ export default function (browser: NightwatchBrowser, callback: VoidFunction, url .popover { display:none !important; } + #scamDetails { + display:none !important; + } `); }, [], done()) }) diff --git a/libs/remix-ui/statusbar/src/lib/components/scamDetails.tsx b/libs/remix-ui/statusbar/src/lib/components/scamDetails.tsx index 9c9193b933..6a3108b313 100644 --- a/libs/remix-ui/statusbar/src/lib/components/scamDetails.tsx +++ b/libs/remix-ui/statusbar/src/lib/components/scamDetails.tsx @@ -18,6 +18,7 @@ export default function ScamDetails ({ refs, floatStyle, scamAlerts }: ScamDetai return (