Commit 3909eb2c authored by ioedeveloper's avatar ioedeveloper

Add hidden element for e2e test assertion

parent 82caa50e
...@@ -16,6 +16,7 @@ class SelectContract extends EventEmitter { ...@@ -16,6 +16,7 @@ class SelectContract extends EventEmitter {
function selectContract (browser: NightwatchBrowser, contractName: string, callback: VoidFunction) { function selectContract (browser: NightwatchBrowser, contractName: string, callback: VoidFunction) {
browser.clickLaunchIcon('settings').clickLaunchIcon('udapp') browser.clickLaunchIcon('settings').clickLaunchIcon('udapp')
.setValue('#runTabView select[class^="contractNames"]', contractName).perform(() => { .setValue('#runTabView select[class^="contractNames"]', contractName).perform(() => {
console.log('Done!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!')
callback() callback()
}) })
} }
......
...@@ -17,7 +17,7 @@ function testContracts (browser: NightwatchBrowser, fileName: string, contractCo ...@@ -17,7 +17,7 @@ function testContracts (browser: NightwatchBrowser, fileName: string, contractCo
browser browser
.clickLaunchIcon('solidity') .clickLaunchIcon('solidity')
.addFile(fileName, contractCode) .addFile(fileName, contractCode)
.pause(1000) .pause(25000)
.verifyContracts(compiledContractNames) .verifyContracts(compiledContractNames)
.perform(() => { .perform(() => {
callback() callback()
......
...@@ -45,8 +45,8 @@ module.exports = { ...@@ -45,8 +45,8 @@ module.exports = {
.pause(2000) .pause(2000)
.goToVMTraceStep(79) .goToVMTraceStep(79)
.pause(1000) .pause(1000)
// .checkVariableDebug('soliditystate', stateCheck) .checkVariableDebug('soliditystate', stateCheck)
// .checkVariableDebug('soliditylocals', localsCheck) .checkVariableDebug('soliditylocals', localsCheck)
}, },
'Access Ballot via at address': function (browser: NightwatchBrowser) { 'Access Ballot via at address': function (browser: NightwatchBrowser) {
......
...@@ -54,7 +54,7 @@ module.exports = { ...@@ -54,7 +54,7 @@ module.exports = {
.pause(2000) .pause(2000)
.goToVMTraceStep(20) .goToVMTraceStep(20)
.pause(1000) .pause(1000)
// .checkVariableDebug('callstackpanel', ["0x692a70D2e424a56D2C6C27aA97D1a86395877b3A"]) .checkVariableDebug('callstackpanel', ["0x692a70D2e424a56D2C6C27aA97D1a86395877b3A"])
}, },
'Access Ballot via at address': function (browser: NightwatchBrowser) { 'Access Ballot via at address': function (browser: NightwatchBrowser) {
......
...@@ -51,9 +51,7 @@ export const DebuggerUI = ({ debuggerModule }) => { ...@@ -51,9 +51,7 @@ export const DebuggerUI = ({ debuggerModule }) => {
}) })
editor.event.register('breakpointAdded', (fileName, row) => { editor.event.register('breakpointAdded', (fileName, row) => {
console.log('breakpoint triggerred!')
if (state.debugger) { if (state.debugger) {
console.log('breakpoint added!')
state.debugger.breakPointManager.add({fileName: fileName, row: row}) state.debugger.breakPointManager.add({fileName: fileName, row: row})
} }
}) })
......
...@@ -201,6 +201,7 @@ export const DropdownPanel = (props: DropdownPanelProps) => { ...@@ -201,6 +201,7 @@ export const DropdownPanel = (props: DropdownPanelProps) => {
</TreeView> </TreeView>
} }
</div> </div>
<div className='dropdownrawcontent' hidden={true}>{ state.copiableContent }</div>
<div className='message' style={{ display: state.message.display }}>{ state.message.innerText }</div> <div className='message' style={{ display: state.message.display }}>{ state.message.innerText }</div>
</div> </div>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment