|
|
|
@ -79,19 +79,18 @@ module.exports = { |
|
|
|
|
.testContracts('test_import_node_modules_with_github_import.sol', sources[4]['test_import_node_modules_with_github_import.sol'], ['ERC20', 'test11']) |
|
|
|
|
}, |
|
|
|
|
'Static Analysis run with remixd': function (browser) { |
|
|
|
|
browser.testContracts('Untitled.sol', sources[5]['test_static_analysis_with_remixd_and_hardhat'], ['test5']) |
|
|
|
|
.clickLaunchIcon('solidityStaticAnalysis') |
|
|
|
|
.click('#staticanalysisButton button') |
|
|
|
|
.waitForElementPresent('#staticanalysisresult .warning', 2000, true, function () { |
|
|
|
|
browser |
|
|
|
|
.click('[data-id="staticAnalysisModuleMiscellaneous1"') |
|
|
|
|
.click('[data-id="staticAnalysisModuleMiscellaneous1"') |
|
|
|
|
.getEditorValue((content) => { |
|
|
|
|
browser.assert.ok(content.indexOf( |
|
|
|
|
'function _sendLogPayload(bytes memory payload) private view {') !== -1, |
|
|
|
|
'code has not been loaded') |
|
|
|
|
browser.testContracts('test_static_analysis_with_remixd_and_hardhat.sol', sources[5]['test_static_analysis_with_remixd_and_hardhat.sol'], ['test5']) |
|
|
|
|
.clickLaunchIcon('solidityStaticAnalysis') |
|
|
|
|
.click('#staticanalysisButton button') |
|
|
|
|
.waitForElementPresent('#staticanalysisresult .warning', 2000, true, function () { |
|
|
|
|
browser |
|
|
|
|
.click('[data-id="staticAnalysisModuleMiscellaneous1"') |
|
|
|
|
.getEditorValue((content) => { |
|
|
|
|
browser.assert.ok(content.indexOf( |
|
|
|
|
'function _sendLogPayload(bytes memory payload) private view {') !== -1, |
|
|
|
|
'code has not been loaded') |
|
|
|
|
}) |
|
|
|
|
}) |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
'Run git status': '' + function (browser) { |
|
|
|
|