Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
8e5e7e0f
Commit
8e5e7e0f
authored
Oct 26, 2020
by
aniket-engg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debugger tests fixed
parent
8e2c7cb2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
8 deletions
+12
-8
debugger.test.ts
apps/remix-ide-e2e/src/tests/debugger.test.ts
+12
-8
No files found.
apps/remix-ide-e2e/src/tests/debugger.test.ts
View file @
8e5e7e0f
...
@@ -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)"]'
,
3
5000
)
.
waitForElementPresent
(
'*[title="Deploy - transact (not payable)"]'
,
4
5000
)
.
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'
)
...
@@ -43,7 +43,7 @@ module.exports = {
...
@@ -43,7 +43,7 @@ module.exports = {
.
click
(
'*[data-id="slider"]'
)
.
click
(
'*[data-id="slider"]'
)
.
setValue
(
'*[data-id="slider"]'
,
'50'
)
.
setValue
(
'*[data-id="slider"]'
,
'50'
)
.
assert
.
containsText
(
'*[data-id="solidityLocals"]'
,
'no locals'
)
.
assert
.
containsText
(
'*[data-id="solidityLocals"]'
,
'no locals'
)
.
assert
.
containsText
(
'*[data-id="stepdetail"]'
,
'vm trace step:
\
n9
2
'
)
.
assert
.
containsText
(
'*[data-id="stepdetail"]'
,
'vm trace step:
\
n9
1
'
)
},
},
'Should step back and forward transaction'
:
function
(
browser
:
NightwatchBrowser
)
{
'Should step back and forward transaction'
:
function
(
browser
:
NightwatchBrowser
)
{
...
@@ -51,12 +51,12 @@ module.exports = {
...
@@ -51,12 +51,12 @@ module.exports = {
.
waitForElementPresent
(
'*[data-id="buttonNavigatorIntoBack"]'
)
.
waitForElementPresent
(
'*[data-id="buttonNavigatorIntoBack"]'
)
.
scrollAndClick
(
'*[data-id="buttonNavigatorIntoBack"]'
)
.
scrollAndClick
(
'*[data-id="buttonNavigatorIntoBack"]'
)
.
pause
(
2000
)
.
pause
(
2000
)
.
assert
.
containsText
(
'*[data-id="stepdetail"]'
,
'vm trace step:
\
n9
1
'
)
.
assert
.
containsText
(
'*[data-id="stepdetail"]'
,
'vm trace step:
\
n9
0
'
)
.
assert
.
containsText
(
'*[data-id="stepdetail"]'
,
'execution step:
\
n9
1
'
)
.
assert
.
containsText
(
'*[data-id="stepdetail"]'
,
'execution step:
\
n9
0
'
)
.
click
(
'*[data-id="buttonNavigatorIntoForward"]'
)
.
click
(
'*[data-id="buttonNavigatorIntoForward"]'
)
.
pause
(
2000
)
.
pause
(
2000
)
.
assert
.
containsText
(
'*[data-id="stepdetail"]'
,
'vm trace step:
\
n9
2
'
)
.
assert
.
containsText
(
'*[data-id="stepdetail"]'
,
'vm trace step:
\
n9
1
'
)
.
assert
.
containsText
(
'*[data-id="stepdetail"]'
,
'execution step:
\
n9
2
'
)
.
assert
.
containsText
(
'*[data-id="stepdetail"]'
,
'execution step:
\
n9
1
'
)
},
},
'Should jump through breakpoints'
:
function
(
browser
:
NightwatchBrowser
)
{
'Should jump through breakpoints'
:
function
(
browser
:
NightwatchBrowser
)
{
...
@@ -78,8 +78,10 @@ module.exports = {
...
@@ -78,8 +78,10 @@ module.exports = {
browser
browser
.
clickLaunchIcon
(
'solidity'
)
.
clickLaunchIcon
(
'solidity'
)
.
setSolidityCompilerVersion
(
'soljson-v0.6.12+commit.27d51765.js'
)
.
setSolidityCompilerVersion
(
'soljson-v0.6.12+commit.27d51765.js'
)
.
clickLaunchIcon
(
'udapp'
)
.
pause
(
2000
)
.
clickLaunchIcon
(
'udapp'
)
.
testContracts
(
'externalImport.sol'
,
sources
[
1
][
'browser/externalImport.sol'
],
[
'ERC20'
])
.
testContracts
(
'externalImport.sol'
,
sources
[
1
][
'browser/externalImport.sol'
],
[
'ERC20'
])
.
waitForElementPresent
(
'*[title="Deploy - transact (not payable)"]'
,
35000
)
.
selectContract
(
'ERC20'
)
.
selectContract
(
'ERC20'
)
.
createContract
(
'"tokenName", "symbol"'
)
.
createContract
(
'"tokenName", "symbol"'
)
.
debugTransaction
(
2
)
.
debugTransaction
(
2
)
...
@@ -135,6 +137,7 @@ module.exports = {
...
@@ -135,6 +137,7 @@ module.exports = {
browser
.
addFile
(
'locals.sol'
,
sources
[
3
][
'browser/locals.sol'
])
browser
.
addFile
(
'locals.sol'
,
sources
[
3
][
'browser/locals.sol'
])
.
clickLaunchIcon
(
'udapp'
)
.
clickLaunchIcon
(
'udapp'
)
.
createContract
(
''
)
.
createContract
(
''
)
.
pause
(
2000
)
.
clickInstance
(
3
)
.
clickInstance
(
3
)
.
clickFunction
(
't - transact (not payable)'
)
.
clickFunction
(
't - transact (not payable)'
)
.
pause
(
2000
)
.
pause
(
2000
)
...
@@ -154,7 +157,8 @@ module.exports = {
...
@@ -154,7 +157,8 @@ module.exports = {
browser
browser
.
clickLaunchIcon
(
'solidity'
)
.
clickLaunchIcon
(
'solidity'
)
.
setSolidityCompilerVersion
(
'soljson-v0.7.2+commit.51b20bc0.js'
)
.
setSolidityCompilerVersion
(
'soljson-v0.7.2+commit.51b20bc0.js'
)
.
clickLaunchIcon
(
'udapp'
)
.
clickLaunchIcon
(
'udapp'
)
.
pause
(
2000
)
.
testContracts
(
'withGeneratedSources.sol'
,
sources
[
4
][
'browser/withGeneratedSources.sol'
],
[
'A'
])
.
testContracts
(
'withGeneratedSources.sol'
,
sources
[
4
][
'browser/withGeneratedSources.sol'
],
[
'A'
])
.
createContract
(
''
)
.
createContract
(
''
)
.
clickInstance
(
4
)
.
clickInstance
(
4
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment