fix: testing to see if test passes

pull/1104/head
tizah 4 years ago
parent 5971471679
commit dcf510f2c4
  1. 2
      apps/remix-ide-e2e/src/tests/staticAnalysis.spec.ts
  2. 2
      libs/remix-ui/static-analyser/src/lib/ErrorRenderer.tsx
  3. 1
      libs/remix-ui/static-analyser/src/lib/remix-ui-static-analyser.tsx

@ -41,7 +41,7 @@ function runTests (browser: NightwatchBrowser) {
.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('#staticanalysisView button')
.waitForElementPresent('#staticanalysisresult .warning', 2000, true, function () { .waitForElementPresent('#staticanalysisresult .warning', 2000, false, 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',
'TooMuchGas.() : Variables have very similar names "test" and "test1".', 'TooMuchGas.() : Variables have very similar names "test" and "test1".',

@ -60,7 +60,7 @@ const ErrorRenderer = ({ message, opt }: ErrorRendererProps) => {
<i className="fas fa-times"></i> <i className="fas fa-times"></i>
</div> </div>
<span className='d-flex flex-column'> <span className='d-flex flex-column'>
<span className='h6 font-weight-bold'>{opt.item.name}</span> <span className='h6 font-weight-bold'>{opt.name}</span>
{ opt.item.warning } { opt.item.warning }
{opt.item.more {opt.item.more
? <span><a href={opt.item.more} target='_blank'>more</a></span> ? <span><a href={opt.item.more} target='_blank'>more</a></span>

@ -164,6 +164,7 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => {
} }
<span class="" title="Position in ${fileName}">Pos: ${locationString}</span> <span class="" title="Position in ${fileName}">Pos: ${locationString}</span>
</span>` </span>`
console.log(result.name, ' result name now')
const options = { const options = {
type: 'warning', type: 'warning',
useSpan: true, useSpan: true,

Loading…
Cancel
Save