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
212bd0fc
Commit
212bd0fc
authored
Apr 14, 2020
by
ioedeveloper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix library deployment failing test for firefox
parent
58abbd47
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
5 deletions
+9
-5
universal-dapp-ui.js
src/app/ui/universal-dapp-ui.js
+1
-1
getAddressAtPosition.js
test-browser/commands/getAddressAtPosition.js
+6
-3
init.js
test-browser/helpers/init.js
+1
-1
libraryDeployment.js
test-browser/tests/libraryDeployment.js
+1
-0
No files found.
src/app/ui/universal-dapp-ui.js
View file @
212bd0fc
...
@@ -54,7 +54,7 @@ UniversalDAppUI.prototype.renderInstanceFromABI = function (contractABI, address
...
@@ -54,7 +54,7 @@ UniversalDAppUI.prototype.renderInstanceFromABI = function (contractABI, address
let
self
=
this
let
self
=
this
address
=
(
address
.
slice
(
0
,
2
)
===
'0x'
?
''
:
'0x'
)
+
address
.
toString
(
'hex'
)
address
=
(
address
.
slice
(
0
,
2
)
===
'0x'
?
''
:
'0x'
)
+
address
.
toString
(
'hex'
)
address
=
ethJSUtil
.
toChecksumAddress
(
address
)
address
=
ethJSUtil
.
toChecksumAddress
(
address
)
var
instance
=
yo
`<div class="instance run-instance border-dark
${
css
.
instance
}
${
css
.
hidesub
}
" id="instance
${
address
}
"></div>`
var
instance
=
yo
`<div class="instance run-instance border-dark
${
css
.
instance
}
${
css
.
hidesub
}
" id="instance
${
address
}
"
data-shared="universalDappUiInstance"
></div>`
const
context
=
this
.
blockchain
.
context
()
const
context
=
this
.
blockchain
.
context
()
var
shortAddress
=
helper
.
shortenAddress
(
address
)
var
shortAddress
=
helper
.
shortenAddress
(
address
)
...
...
test-browser/commands/getAddressAtPosition.js
View file @
212bd0fc
...
@@ -14,9 +14,12 @@ class GetAddressAtPosition extends EventEmitter {
...
@@ -14,9 +14,12 @@ class GetAddressAtPosition extends EventEmitter {
}
}
function
getAddressAtPosition
(
browser
,
index
,
callback
)
{
function
getAddressAtPosition
(
browser
,
index
,
callback
)
{
index
=
index
+
2
browser
.
waitForElementPresent
(
'*[data-shared="universalDappUiInstance"]'
)
browser
.
execute
(
function
(
index
)
{
.
execute
(
function
(
index
)
{
return
document
.
querySelector
(
'.instance:nth-of-type('
+
index
+
')'
).
getAttribute
(
'id'
).
replace
(
'instance'
,
''
)
const
deployedContracts
=
document
.
querySelectorAll
(
'*[data-shared="universalDappUiInstance"]'
)
const
id
=
deployedContracts
[
index
].
getAttribute
(
'id'
)
return
id
.
replace
(
'instance'
,
''
)
},
[
index
],
function
(
result
)
{
},
[
index
],
function
(
result
)
{
callback
(
result
.
value
)
callback
(
result
.
value
)
})
})
...
...
test-browser/helpers/init.js
View file @
212bd0fc
...
@@ -22,7 +22,7 @@ module.exports = function (browser, callback, url, preloadPlugins = true) {
...
@@ -22,7 +22,7 @@ module.exports = function (browser, callback, url, preloadPlugins = true) {
}
}
function
initModules
(
browser
,
callback
)
{
function
initModules
(
browser
,
callback
)
{
browser
.
pause
(
5
000
)
browser
.
pause
(
20
000
)
.
click
(
'#icon-panel div[plugin="pluginManager"]'
)
.
click
(
'#icon-panel div[plugin="pluginManager"]'
)
.
scrollAndClick
(
'#pluginManager article[id="remixPluginManagerListItem_solidity"] button'
)
.
scrollAndClick
(
'#pluginManager article[id="remixPluginManagerListItem_solidity"] button'
)
.
pause
(
5000
)
.
pause
(
5000
)
...
...
test-browser/tests/libraryDeployment.js
View file @
212bd0fc
...
@@ -52,6 +52,7 @@ module.exports = {
...
@@ -52,6 +52,7 @@ module.exports = {
})
})
})
})
})
})
.
end
()
},
},
tearDown
:
sauce
tearDown
:
sauce
}
}
...
...
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