hidescamdetails

pull/5371/head
bunsenstraat 2 weeks ago
parent 5ed722e0ff
commit 925bfa4e6e
  1. 5
      apps/remix-ide-e2e/src/commands/hideToolTips.ts
  2. 5
      apps/remix-ide-e2e/src/helpers/init.ts
  3. 1
      libs/remix-ui/statusbar/src/lib/components/scamDetails.tsx

@ -1,4 +1,4 @@
import {NightwatchBrowser} from 'nightwatch' import { NightwatchBrowser } from 'nightwatch'
import EventEmitter from 'events' import EventEmitter from 'events'
class HideToolTips extends EventEmitter { class HideToolTips extends EventEmitter {
@ -16,6 +16,9 @@ class HideToolTips extends EventEmitter {
.popover { .popover {
display:none !important; display:none !important;
} }
#scamDetails {
display:none !important;
}
`) `)
}, [], done()) }, [], done())
}) })

@ -27,8 +27,6 @@ export default function (browser: NightwatchBrowser, callback: VoidFunction, url
}) })
.verifyLoad() .verifyLoad()
.enableClipBoard() .enableClipBoard()
.waitForElementVisible('*[data-id="hTScamAlertButton"]')
.click('*[data-id="hTScamAlertButton"]')
.waitForElementVisible('*[data-id="aiStatusButton"]') .waitForElementVisible('*[data-id="aiStatusButton"]')
.click('*[data-id="aiStatusButton"]') .click('*[data-id="aiStatusButton"]')
.perform((done) => { .perform((done) => {
@ -43,6 +41,9 @@ export default function (browser: NightwatchBrowser, callback: VoidFunction, url
.popover { .popover {
display:none !important; display:none !important;
} }
#scamDetails {
display:none !important;
}
`); `);
}, [], done()) }, [], done())
}) })

@ -18,6 +18,7 @@ export default function ScamDetails ({ refs, floatStyle, scamAlerts }: ScamDetai
return ( return (
<div <div
ref={refs.setFloating} ref={refs.setFloating}
id='scamDetails'
style={{ style={{
position: 'absolute', position: 'absolute',
bottom: '-3.3rem', bottom: '-3.3rem',

Loading…
Cancel
Save