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
f974fcf8
Unverified
Commit
f974fcf8
authored
May 31, 2021
by
yann300
Committed by
GitHub
May 31, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
e2e debug nodes (#1237)
fix
https://github.com/ethereum/remix-project/issues/1231
parent
15696e68
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
53 additions
and
0 deletions
+53
-0
debugger.spec.ts
apps/remix-ide-e2e/src/tests/debugger.spec.ts
+53
-0
No files found.
apps/remix-ide-e2e/src/tests/debugger.spec.ts
View file @
f974fcf8
...
...
@@ -207,6 +207,25 @@ module.exports = {
As we are only testing if debugger is active, this is ok to keep that for now.
*/
.
waitForElementContainsText
(
'*[data-id="stepdetail"]'
,
'vm trace step:
\
n154'
,
60000
)
},
'Should start debugging using remix debug nodes (rinkeby)'
:
function
(
browser
:
NightwatchBrowser
)
{
browser
.
addFile
(
'useDebugNodes.sol'
,
sources
[
5
][
'useDebugNodes.sol'
])
// compile contract
.
clickLaunchIcon
(
'udapp'
)
.
click
(
'*[data-id="settingsWeb3Mode"]'
)
// select web3 provider with debug nodes URL
.
clearValue
(
'*[data-id="modalDialogCustomPromptText"]'
)
.
setValue
(
'*[data-id="modalDialogCustomPromptText"]'
,
'https://remix-rinkeby.ethdevops.io'
)
.
modalFooterOKClick
()
.
waitForElementPresent
(
'*[title="Deploy - transact (not payable)"]'
,
65000
)
// wait for the compilation to succeed
.
clickLaunchIcon
(
'debugger'
)
.
clearValue
(
'*[data-id="debuggerTransactionInput"]'
)
.
setValue
(
'*[data-id="debuggerTransactionInput"]'
,
'0x156dbf7d0f9b435dd900cfc8f3264d523dd25733418ddbea1ce53e294f421013'
)
.
click
(
'*[data-id="debugGeneratedSourcesLabel"]'
)
// unselect debug with generated sources
.
click
(
'*[data-id="debuggerTransactionStartButton"]'
)
.
waitForElementVisible
(
'*[data-id="solidityLocals"]'
,
60000
)
.
pause
(
10000
)
.
checkVariableDebug
(
'soliditylocals'
,
{
num
:
{
value
:
'2'
,
type
:
'uint256'
}
})
.
checkVariableDebug
(
'soliditystate'
,
{
number
:
{
value
:
'0'
,
type
:
'uint256'
,
constant
:
false
}
})
.
end
()
}
}
...
...
@@ -297,6 +316,40 @@ const sources = [
}
`
}
},
{
'useDebugNodes.sol'
:
{
content
:
`
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.9.0;
/**
* @title Storage
* @dev Store & retrieve value in a variable
*/
contract Storage {
uint256 number;
/**
* @dev Store value in variable
* @param num value to store
*/
function store(uint256 num) public {
number = num;
}
/**
* @dev Return value
* @return value of 'number'
*/
function retrieve() public view returns (uint256){
return number;
}
}
`
}
}
]
...
...
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