fix: moved staticanalysisButton id to the Button component

pull/5370/head
tizah 4 years ago
parent 07f6f267f7
commit 0556be679c
  1. 2
      apps/remix-ide-e2e/src/tests/staticAnalysis.spec.ts
  2. 2
      libs/remix-ui/static-analyser/src/lib/Button/StaticAnalyserButton.tsx
  3. 2
      libs/remix-ui/static-analyser/src/lib/remix-ui-static-analyser.tsx

@ -40,7 +40,7 @@ function runTests (browser: NightwatchBrowser) {
.pause(10000) .pause(10000)
.testContracts('Untitled.sol', sources[0]['Untitled.sol'], ['TooMuchGas', 'test1', 'test2']) .testContracts('Untitled.sol', sources[0]['Untitled.sol'], ['TooMuchGas', 'test1', 'test2'])
.clickLaunchIcon('solidityStaticAnalysis') .clickLaunchIcon('solidityStaticAnalysis')
.click('#staticanalysisView button') .click('#staticanalysisButton button')
.waitForElementPresent('#staticanalysisresult .warning', 2000, true, function () { .waitForElementPresent('#staticanalysisresult .warning', 2000, true, function () {
listSelectorContains(['Use of tx.origin', listSelectorContains(['Use of tx.origin',
'Fallback function of contract TooMuchGas requires too much gas', 'Fallback function of contract TooMuchGas requires too much gas',

@ -12,7 +12,7 @@ const StaticAnalyserButton = ({
disabled disabled
}: StaticAnalyserButtonProps) => { }: StaticAnalyserButtonProps) => {
return ( return (
<div className="remixui-button-container"> <div className="remixui-button-container" id='staticanalysisButton'>
<button className="btn btn-sm w-31 btn-primary" onClick={onClick} disabled={disabled}> <button className="btn btn-sm w-31 btn-primary" onClick={onClick} disabled={disabled}>
{buttonText} {buttonText}
</button> </button>

@ -313,7 +313,7 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => {
return ( return (
<div style={{ marginLeft: '10px', marginRight: '10px' }}> <div style={{ marginLeft: '10px', marginRight: '10px' }}>
<div className="my-2 d-flex flex-column align-items-left"> <div className="my-2 d-flex flex-column align-items-left">
<div className="d-flex justify-content-between" id='staticanalysisView'> <div className="d-flex justify-content-between">
<div > <div >
<CheckBox <CheckBox
id="checkAllEntries" id="checkAllEntries"

Loading…
Cancel
Save