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
e146ddeb
Commit
e146ddeb
authored
Jun 26, 2020
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix e2e tests
parent
3c1d26f4
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
6 deletions
+6
-6
compiler-sourceVerifier-fetchAndCompile.js
src/app/compiler/compiler-sourceVerifier-fetchAndCompile.js
+1
-1
debugger-tab.js
src/app/tabs/debugger-tab.js
+1
-1
debugger.test.js
test-browser/tests/debugger.test.js
+2
-2
runAndDeploy.js
test-browser/tests/runAndDeploy.js
+1
-1
staticAnalysis.test.js
test-browser/tests/staticAnalysis.test.js
+1
-1
No files found.
src/app/compiler/compiler-sourceVerifier-fetchAndCompile.js
View file @
e146ddeb
...
...
@@ -72,7 +72,7 @@ export default class FetchAndCompile extends Plugin {
name
===
'main'
?
'mainnet'
:
name
// source-verifier api expect "mainnet" and not "main"
let
data
try
{
data
=
await
this
.
call
(
'sourc
e-verification
'
,
'fetchByNetwork'
,
contractAddress
,
name
.
toLowerCase
())
data
=
await
this
.
call
(
'sourc
ify
'
,
'fetchByNetwork'
,
contractAddress
,
name
.
toLowerCase
())
}
catch
(
e
)
{
setTimeout
(
_
=>
this
.
emit
(
'notFound'
,
contractAddress
),
0
)
// plugin framework returns a time out error although it actually didn't find the source...
this
.
unresolvedAddresses
.
push
(
contractAddress
)
...
...
src/app/tabs/debugger-tab.js
View file @
e146ddeb
...
...
@@ -64,7 +64,7 @@ class DebuggerTab extends ViewPlugin {
}
)
this
.
call
(
'manager'
,
'activatePlugin'
,
'sourc
e-verification
'
)
this
.
call
(
'manager'
,
'activatePlugin'
,
'sourc
ify
'
)
// this.call('manager', 'activatePlugin', 'udapp')
return
this
.
el
...
...
test-browser/tests/debugger.test.js
View file @
e146ddeb
...
...
@@ -70,8 +70,8 @@ module.exports = {
.
assert
.
containsText
(
'*[data-id="stepdetail"]'
,
'execution step: 0'
)
.
click
(
'*[data-id="buttonNavigatorJumpNextBreakpoint"]'
)
.
pause
(
2000
)
.
assert
.
containsText
(
'*[data-id="stepdetail"]'
,
'vm trace step: 1
40
'
)
.
assert
.
containsText
(
'*[data-id="stepdetail"]'
,
'execution step: 1
40
'
)
.
assert
.
containsText
(
'*[data-id="stepdetail"]'
,
'vm trace step: 1
84
'
)
.
assert
.
containsText
(
'*[data-id="stepdetail"]'
,
'execution step: 1
84
'
)
.
end
()
},
...
...
test-browser/tests/runAndDeploy.js
View file @
e146ddeb
...
...
@@ -156,7 +156,7 @@ module.exports = {
* - Source Verifier service for fetching the contract code
* - Ropsten node for retrieving the trace and storage
*
*/
*/
'Should debug Ropsten transaction with source highlighting using the source verifier service and MetaMask'
:
function
(
browser
)
{
browser
.
waitForElementPresent
(
'*[data-id="remixIdeSidePanel"]'
)
.
waitForElementVisible
(
'*[data-id="remixIdeIconPanel"]'
,
10000
)
...
...
test-browser/tests/staticAnalysis.test.js
View file @
e146ddeb
...
...
@@ -41,7 +41,7 @@ function runTests (browser) {
.
waitForElementPresent
(
'#staticanalysisresult .warning'
,
2000
,
true
,
function
()
{
listSelectorContains
([
'Use of tx.origin'
,
'Fallback function of contract TooMuchGas requires too much gas'
,
'TooMuchGas.() : Variables have very similar names
test and test1
.'
],
'TooMuchGas.() : Variables have very similar names
"test" and "test1"
.'
],
'#staticanalysisresult .warning'
,
browser
,
function
()
{
browser
.
end
()
...
...
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