Commit 8e2c7cb2 authored by aniket-engg's avatar aniket-engg

more e2e tests fixed

parent 7058986e
...@@ -16,7 +16,7 @@ module.exports = { ...@@ -16,7 +16,7 @@ module.exports = {
'Should launch debugger': function (browser: NightwatchBrowser) { 'Should launch debugger': function (browser: NightwatchBrowser) {
browser.addFile('blah.sol', sources[0]['browser/blah.sol']) browser.addFile('blah.sol', sources[0]['browser/blah.sol'])
.clickLaunchIcon('udapp') .clickLaunchIcon('udapp')
.waitForElementPresent('*[title="Deploy - transact (not payable)"]') .waitForElementPresent('*[title="Deploy - transact (not payable)"]', 35000)
.click('*[title="Deploy - transact (not payable)"]') .click('*[title="Deploy - transact (not payable)"]')
.debugTransaction(0) .debugTransaction(0)
.assert.containsText('*[data-id="sidePanelSwapitTitle"]', 'DEBUGGER') .assert.containsText('*[data-id="sidePanelSwapitTitle"]', 'DEBUGGER')
...@@ -178,7 +178,7 @@ const sources = [ ...@@ -178,7 +178,7 @@ const sources = [
{ {
'browser/blah.sol': { 'browser/blah.sol': {
content: ` content: `
pragma solidity >=0.4.22 <0.7.0; pragma solidity >=0.7.0 <0.8.0;
contract Kickstarter { contract Kickstarter {
...@@ -193,7 +193,7 @@ const sources = [ ...@@ -193,7 +193,7 @@ const sources = [
Project[] public projects; Project[] public projects;
constructor() public { constructor() {
} }
......
...@@ -346,7 +346,7 @@ const sources = [ ...@@ -346,7 +346,7 @@ const sources = [
}, },
'browser/compilationError_test.sol': { 'browser/compilationError_test.sol': {
content: ` content: `
pragma solidity ^0.6.1; pragma solidity ^0.7.0;
contract failOnCompilation { contract failOnCompilation {
fallback() { fallback() {
...@@ -357,7 +357,7 @@ const sources = [ ...@@ -357,7 +357,7 @@ const sources = [
}, },
'browser/tests/deployError_test.sol': { 'browser/tests/deployError_test.sol': {
content: ` content: `
pragma solidity ^0.8.0; pragma solidity ^0.7.0;
contract failingDeploy { contract failingDeploy {
constructor() { constructor() {
...@@ -368,7 +368,7 @@ const sources = [ ...@@ -368,7 +368,7 @@ const sources = [
}, },
'browser/tests/methodFailure_test.sol': { 'browser/tests/methodFailure_test.sol': {
content: ` content: `
pragma solidity ^0.8.0; pragma solidity ^0.7.0;
contract methodfailure { contract methodfailure {
function add(uint a, uint b) public { function add(uint a, uint b) public {
......
...@@ -6,12 +6,12 @@ import sauce from './sauce' ...@@ -6,12 +6,12 @@ import sauce from './sauce'
const sources = [ const sources = [
{ {
'browser/Untitled.sol': {content: ` 'browser/Untitled.sol': {content: `
pragma solidity >=0.4.22 <0.7.0; pragma solidity >=0.6.0 <0.8.0;
contract test1 { address test = tx.origin; } contract test1 { address test = tx.origin; }
contract test2 {} contract test2 {}
contract TooMuchGas { contract TooMuchGas {
uint x; uint x;
function() external { fallback() external {
x++; x++;
uint test; uint test;
uint test1; uint test1;
...@@ -36,6 +36,7 @@ function runTests (browser: NightwatchBrowser) { ...@@ -36,6 +36,7 @@ function runTests (browser: NightwatchBrowser) {
browser browser
.waitForElementVisible('#icon-panel', 10000) .waitForElementVisible('#icon-panel', 10000)
.clickLaunchIcon('solidity') .clickLaunchIcon('solidity')
.pause(10000)
.testContracts('Untitled.sol', sources[0]['browser/Untitled.sol'], ['TooMuchGas', 'test1', 'test2']) .testContracts('Untitled.sol', sources[0]['browser/Untitled.sol'], ['TooMuchGas', 'test1', 'test2'])
.clickLaunchIcon('solidityStaticAnalysis') .clickLaunchIcon('solidityStaticAnalysis')
.click('#staticanalysisView button') .click('#staticanalysisView button')
......
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