fix browser test && rename module

pull/1/head
yann300 6 years ago
parent 86eb049ae1
commit d7d9c8b53b
  1. 6
      src/framingService.js
  2. 10
      test-browser/helpers/contracts.js
  3. 6
      test-browser/helpers/init.js

@ -2,12 +2,12 @@ export default {
start: (appStore, swapPanelApi, verticalIconApi, mainPanelApi, resizeFeature) => {
swapPanelApi.event.on('toggle', (moduleName) => {
resizeFeature.panel1.clientWidth !== 0 ? resizeFeature.minimize() : resizeFeature.maximise()
if (moduleName === 'file explorers') {
if (moduleName === 'fileExplorers') {
mainPanelApi.showContent('code editor')
}
})
swapPanelApi.event.on('showing', (moduleName) => {
if (moduleName === 'file explorers') {
if (moduleName === 'fileExplorers') {
mainPanelApi.showContent('code editor')
}
resizeFeature.panel1.clientWidth === 0 ? resizeFeature.maximise() : ''
@ -21,7 +21,7 @@ export default {
})
// mainPanelApi.event.on('showing', (moduleName) => {})
verticalIconApi.select('file explorers')
verticalIconApi.select('fileExplorers')
verticalIconApi.select('homepage')
resizeFeature.minimize()
}

@ -50,14 +50,14 @@ function getCompiledContracts (browser, compiled, callback) {
}
function selectContract (browser, contractName, callback) {
browser.clickLaunchIcon('settings').clickLaunchIcon('run transactions')
browser.clickLaunchIcon('settings').clickLaunchIcon('run')
.setValue('#runTabView select[class^="contractNames"]', contractName).perform(() => {
callback()
})
}
function createContract (browser, inputParams, callback) {
browser.clickLaunchIcon('settings').clickLaunchIcon('run transactions')
browser.clickLaunchIcon('settings').clickLaunchIcon('run')
.setValue('div[class^="contractActionsContainerSingle"] input', inputParams, function () {
browser.click('#runTabView button[class^="instanceButton"]').pause(500).perform(function () { callback() })
})
@ -217,7 +217,7 @@ function setEditorValue (value, callback) {
}
function addInstance (browser, address, isValidFormat, isValidChecksum, callback) {
browser.clickLaunchIcon('run transactions').clearValue('.ataddressinput').setValue('.ataddressinput', address, function () {
browser.clickLaunchIcon('run').clearValue('.ataddressinput').setValue('.ataddressinput', address, function () {
browser.click('div[class^="atAddress"]')
.execute(function () {
var ret = document.querySelector('div[class^="modalBody"] div').innerHTML
@ -265,7 +265,7 @@ function modalFooterOKClick () {
}
function addFile (browser, name, content, done) {
browser.clickLaunchIcon('run transactions').clickLaunchIcon('file explorers').click('.newFile')
browser.clickLaunchIcon('run').clickLaunchIcon('fileExplorers').click('.newFile')
.perform((client, done) => {
browser.execute(function (fileName) {
if (fileName !== 'Untitled.sol') {
@ -372,7 +372,7 @@ function useFilter (browser, filter, test, done) {
}
function switchFile (browser, name, done) {
browser.clickLaunchIcon('settings').clickLaunchIcon('file explorers')
browser.clickLaunchIcon('settings').clickLaunchIcon('fileExplorers')
.click('li[key="' + name + '"]')
.pause(2000)
.perform(() => {

@ -22,10 +22,10 @@ function initModules (browser, callback) {
document.querySelector('div[title="pluginManager"]').scrollTop = document.querySelector('div[title="pluginManager"]').scrollHeight
}, [], function () {
browser.click('#pluginManager div[title="solidity"] button')
.click('#pluginManager div[title="run transactions"] button')
.click('#pluginManager div[title="solidity static analysis"] button')
.click('#pluginManager div[title="run"] button')
.click('#pluginManager div[title="solidityStaticAnalysis"] button')
.click('#pluginManager div[title="debugger"] button')
.click('#icon-panel div[title="file explorers"]')
.click('#icon-panel div[title="fileExplorers"]')
.perform(() => { callback() })
})
}

Loading…
Cancel
Save