hidescam button

pull/5371/head
bunsenstraat 3 weeks ago committed by bunsenstraat
parent 8af1f52dbe
commit 9734f542d6
  1. 3
      apps/remix-ide-e2e/src/helpers/init.ts
  2. 2
      libs/remix-ui/statusbar/src/lib/components/scamAlertStatus.tsx

@ -27,6 +27,8 @@ export default function (browser: NightwatchBrowser, callback: VoidFunction, url
}) })
.verifyLoad() .verifyLoad()
.enableClipBoard() .enableClipBoard()
.waitForElementVisible('*[data-id="hTScamAlertButton"]')
.click('*[data-id="hTScamAlertButton"]')
.perform((done) => { .perform((done) => {
browser.execute(function () { // hide tooltips browser.execute(function () { // hide tooltips
function addStyle(styleString) { function addStyle(styleString) {
@ -76,6 +78,7 @@ export default function (browser: NightwatchBrowser, callback: VoidFunction, url
function initModules(browser: NightwatchBrowser, callback: VoidFunction) { function initModules(browser: NightwatchBrowser, callback: VoidFunction) {
browser browser
.pause()
.click('[data-id="verticalIconsKindpluginManager"]') .click('[data-id="verticalIconsKindpluginManager"]')
.scrollAndClick('[data-id="pluginManagerComponentActivateButtonsolidityStaticAnalysis"]') .scrollAndClick('[data-id="pluginManagerComponentActivateButtonsolidityStaticAnalysis"]')
.scrollAndClick('[data-id="pluginManagerComponentActivateButtondebugger"]') .scrollAndClick('[data-id="pluginManagerComponentActivateButtondebugger"]')

@ -15,7 +15,7 @@ export default function ScamAlertStatus ({ refs, getReferenceProps }: ScamAlertS
<CustomTooltip <CustomTooltip
tooltipText={"Scam Alerts"} tooltipText={"Scam Alerts"}
> >
<div className="mr-1 d-flex align-items-center justify-content-center remixui_statusbar_scamAlert" id="hTScamAlertSection" ref={refs.setReference} {...getReferenceProps()}> <div className="mr-1 d-flex align-items-center justify-content-center remixui_statusbar_scamAlert" data-id="hTScamAlertButton" id="hTScamAlertSection" ref={refs.setReference} {...getReferenceProps()}>
<span className="pr-2 far fa-exclamation-triangle text-white"></span> <span className="pr-2 far fa-exclamation-triangle text-white"></span>
<span className="text-white font-semibold small"> <span className="text-white font-semibold small">
<FormattedMessage id="home.scamAlert" /> <FormattedMessage id="home.scamAlert" />

Loading…
Cancel
Save