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)
.testContracts('Untitled.sol', sources[0]['Untitled.sol'], ['TooMuchGas', 'test1', 'test2'])
.clickLaunchIcon('solidityStaticAnalysis')
.click('#staticanalysisView button')
.click('#staticanalysisButton button')
.waitForElementPresent('#staticanalysisresult .warning', 2000, true, function () {
listSelectorContains(['Use of tx.origin',
'Fallback function of contract TooMuchGas requires too much gas',

@ -12,7 +12,7 @@ const StaticAnalyserButton = ({
disabled
}: StaticAnalyserButtonProps) => {
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}>
{buttonText}
</button>

@ -313,7 +313,7 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => {
return (
<div style={{ marginLeft: '10px', marginRight: '10px' }}>
<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 >
<CheckBox
id="checkAllEntries"

Loading…
Cancel
Save