do it 3 times

pull/2868/head
filip mertens 2 years ago
parent 8dbfc6da97
commit 144721e910
  1. 16
      apps/remix-ide-e2e/src/tests/ballot.test.ts

@ -131,17 +131,21 @@ module.exports = {
.click('*[data-id="scConfigExpander"]')
.waitForElementVisible('*[data-id="scFileConfiguration"]', 10000)
.click('*[data-id="scFileConfiguration"]')
.saveScreenshot('./reports/screenshots/cf-00.png')
.waitForElementVisible('*[data-id="scConfigChangeFilePath"]', 10000)
.saveScreenshot('./reports/screenshots/cf-01.png')
.click('*[data-id="scConfigChangeFilePath"]')
.saveScreenshot('./reports/screenshots/cf-0.png')
.waitForElementVisible('*[data-id="scConfigFilePathInput"]', 10000)
.saveScreenshot('./reports/screenshots/cf-1.png')
.updateValue('*[data-id="scConfigFilePathInput"]', 'cf.json')
.saveScreenshot('./reports/screenshots/cf-2.png')
.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')
.verifyContracts(['Ballot'], { wait: 2000, runs: '300' })
},

Loading…
Cancel
Save