|
|
@ -104,10 +104,27 @@ module.exports = { |
|
|
|
'Test NPM Import (with unpkg.com) #group3': function (browser: NightwatchBrowser) { |
|
|
|
'Test NPM Import (with unpkg.com) #group3': function (browser: NightwatchBrowser) { |
|
|
|
browser |
|
|
|
browser |
|
|
|
.setSolidityCompilerVersion('soljson-v0.8.7+commit.e28d00a7.js') |
|
|
|
.setSolidityCompilerVersion('soljson-v0.8.7+commit.e28d00a7.js') |
|
|
|
|
|
|
|
.waitForElementPresent({ |
|
|
|
|
|
|
|
selector: `//*[@data-id='compilerloaded' and @data-version='soljson-v0.8.7+commit.e28d00a7.js']`, |
|
|
|
|
|
|
|
locateStrategy: 'xpath', |
|
|
|
|
|
|
|
timeout: 120000 |
|
|
|
|
|
|
|
}) |
|
|
|
.clickLaunchIcon('filePanel') |
|
|
|
.clickLaunchIcon('filePanel') |
|
|
|
.click('li[data-id="treeViewLitreeViewItemREADME.txt"') |
|
|
|
.click('li[data-id="treeViewLitreeViewItemREADME.txt"') |
|
|
|
.addFile('Untitled9.sol', sources[8]['Untitled9.sol']) |
|
|
|
.addFile('Untitled9.sol', sources[8]['Untitled9.sol']) |
|
|
|
|
|
|
|
// avoid invalid source issues
|
|
|
|
|
|
|
|
.isVisible({ |
|
|
|
|
|
|
|
selector: '*[data-id="treeViewLitreeViewItem.deps/npm/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol"]', |
|
|
|
|
|
|
|
timeout: 120000, |
|
|
|
|
|
|
|
suppressNotFoundErrors: true |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
.clickLaunchIcon('solidity') |
|
|
|
|
|
|
|
.click('[data-id="compilerContainerCompileBtn"]') |
|
|
|
.clickLaunchIcon('filePanel') |
|
|
|
.clickLaunchIcon('filePanel') |
|
|
|
|
|
|
|
.isVisible({ |
|
|
|
|
|
|
|
selector: '*[data-id="treeViewLitreeViewItem.deps/npm/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol"]', |
|
|
|
|
|
|
|
timeout: 120000, |
|
|
|
|
|
|
|
}) |
|
|
|
.verifyContracts(['test13', 'ERC20'], { wait: 30000 }) |
|
|
|
.verifyContracts(['test13', 'ERC20'], { wait: 30000 }) |
|
|
|
.end() |
|
|
|
.end() |
|
|
|
} |
|
|
|
} |
|
|
|