|
|
@ -131,17 +131,21 @@ module.exports = { |
|
|
|
.click('*[data-id="scConfigExpander"]') |
|
|
|
.click('*[data-id="scConfigExpander"]') |
|
|
|
.waitForElementVisible('*[data-id="scFileConfiguration"]', 10000) |
|
|
|
.waitForElementVisible('*[data-id="scFileConfiguration"]', 10000) |
|
|
|
.click('*[data-id="scFileConfiguration"]') |
|
|
|
.click('*[data-id="scFileConfiguration"]') |
|
|
|
.saveScreenshot('./reports/screenshots/cf-00.png') |
|
|
|
|
|
|
|
.waitForElementVisible('*[data-id="scConfigChangeFilePath"]', 10000) |
|
|
|
.waitForElementVisible('*[data-id="scConfigChangeFilePath"]', 10000) |
|
|
|
.saveScreenshot('./reports/screenshots/cf-01.png') |
|
|
|
|
|
|
|
.click('*[data-id="scConfigChangeFilePath"]') |
|
|
|
.click('*[data-id="scConfigChangeFilePath"]') |
|
|
|
.saveScreenshot('./reports/screenshots/cf-0.png') |
|
|
|
|
|
|
|
.waitForElementVisible('*[data-id="scConfigFilePathInput"]', 10000) |
|
|
|
.waitForElementVisible('*[data-id="scConfigFilePathInput"]', 10000) |
|
|
|
.saveScreenshot('./reports/screenshots/cf-1.png') |
|
|
|
|
|
|
|
.updateValue('*[data-id="scConfigFilePathInput"]', 'cf.json') |
|
|
|
.updateValue('*[data-id="scConfigFilePathInput"]', 'cf.json') |
|
|
|
.saveScreenshot('./reports/screenshots/cf-2.png') |
|
|
|
|
|
|
|
.sendKeys('*[data-id="scConfigFilePathInput"]', browser.Keys.ENTER) |
|
|
|
.sendKeys('*[data-id="scConfigFilePathInput"]', browser.Keys.ENTER) |
|
|
|
.saveScreenshot('./reports/screenshots/cf-3.png') |
|
|
|
.waitForElementVisible('*[data-id="scConfigChangeFilePath"]', 10000) |
|
|
|
|
|
|
|
.click('*[data-id="scConfigChangeFilePath"]') |
|
|
|
|
|
|
|
.waitForElementVisible('*[data-id="scConfigFilePathInput"]', 10000) |
|
|
|
|
|
|
|
.updateValue('*[data-id="scConfigFilePathInput"]', 'cf.json') |
|
|
|
|
|
|
|
.sendKeys('*[data-id="scConfigFilePathInput"]', browser.Keys.ENTER) |
|
|
|
|
|
|
|
.waitForElementVisible('*[data-id="scConfigChangeFilePath"]', 10000) |
|
|
|
|
|
|
|
.click('*[data-id="scConfigChangeFilePath"]') |
|
|
|
|
|
|
|
.waitForElementVisible('*[data-id="scConfigFilePathInput"]', 10000) |
|
|
|
|
|
|
|
.updateValue('*[data-id="scConfigFilePathInput"]', 'cf.json') |
|
|
|
|
|
|
|
.sendKeys('*[data-id="scConfigFilePathInput"]', browser.Keys.ENTER) |
|
|
|
.openFile('Untitled.sol') |
|
|
|
.openFile('Untitled.sol') |
|
|
|
.verifyContracts(['Ballot'], { wait: 2000, runs: '300' }) |
|
|
|
.verifyContracts(['Ballot'], { wait: 2000, runs: '300' }) |
|
|
|
}, |
|
|
|
}, |
|
|
|