pull/5370/head
Joseph Izang 1 year ago
parent 2a99d21177
commit d419138fb3
  1. 3
      apps/remix-ide-e2e/src/tests/staticAnalysis.test.ts

@ -11,7 +11,7 @@ contract test1 { address test = tx.origin; }
contract test2 {} contract test2 {}
contract TooMuchGas { contract TooMuchGas {
uint x; uint x;
fallback() external { fallback() external {
x++; x++;
uint test; uint test;
uint test1; uint test1;
@ -44,6 +44,7 @@ module.exports = {
.waitForElementPresent('#staticanalysisresult .warning', 5000) .waitForElementPresent('#staticanalysisresult .warning', 5000)
// Check warning count // Check warning count
.click('*[data-rb-event-key="basic"]') .click('*[data-rb-event-key="basic"]')
.pause(3000)
.assert.containsText('*[data-id="StaticAnalysisErrorCount"]', '1') .assert.containsText('*[data-id="StaticAnalysisErrorCount"]', '1')
.verify.elementPresent('input[name="showLibWarnings"]') .verify.elementPresent('input[name="showLibWarnings"]')
.verify.not.elementPresent('input[name="showLibWarnings"]:checked') .verify.not.elementPresent('input[name="showLibWarnings"]:checked')

Loading…
Cancel
Save