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
88fefd0b
Commit
88fefd0b
authored
Feb 19, 2020
by
ioedeveloper
Committed by
yann300
Apr 01, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modified testFunction command
parent
a6e1fb2b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
15 deletions
+14
-15
txLogger.js
src/app/ui/txLogger.js
+1
-1
testTransactionLog.js
test-browser/commands/testTransactionLog.js
+13
-0
ballot.js
test-browser/tests/ballot.js
+0
-14
No files found.
src/app/ui/txLogger.js
View file @
88fefd0b
...
@@ -215,7 +215,7 @@ function renderKnownTransaction (self, data, blockchain) {
...
@@ -215,7 +215,7 @@ function renderKnownTransaction (self, data, blockchain) {
${
checkTxStatus
(
data
.
receipt
,
txType
)}
${
checkTxStatus
(
data
.
receipt
,
txType
)}
${
context
(
self
,
{
from
,
to
,
data
},
blockchain
)}
${
context
(
self
,
{
from
,
to
,
data
},
blockchain
)}
<div class=
${
css
.
buttons
}
>
<div class=
${
css
.
buttons
}
>
<button
data-shared="txLoggerDebugButton" data-id="txLoggerDebugButton
${
data
.
tx
.
hash
}
" class="
${
css
.
debug
}
btn btn-primary btn-sm
" onclick=
${(
e
)
=>
debug
(
e
,
data
,
self
)}
>Debug</div>
<button
class="
${
css
.
debug
}
btn btn-primary btn-sm" data-shared="txLoggerDebugButton" data-id="txLoggerDebugButton
${
data
.
tx
.
hash
}
" onclick=
${(
e
)
=>
debug
(
e
,
data
,
self
)}
>Debug</div>
</div>
</div>
<i class="
${
css
.
arrow
}
fas fa-angle-down"></i>
<i class="
${
css
.
arrow
}
fas fa-angle-down"></i>
</div>
</div>
...
...
test-browser/commands/testTransactionLog.js
View file @
88fefd0b
...
@@ -7,6 +7,19 @@ class testTransactionLog extends EventEmitter {
...
@@ -7,6 +7,19 @@ class testTransactionLog extends EventEmitter {
const
logs
=
{}
const
logs
=
{}
const
setLog
=
(
index
,
value
)
=>
logs
[
Object
.
keys
(
logs
)[
index
]]
=
value
;
const
setLog
=
(
index
,
value
)
=>
logs
[
Object
.
keys
(
logs
)[
index
]]
=
value
;
browser
.
waitForElementPresent
(
'.instance button[title="'
+
fnFullName
+
'"]'
)
.
perform
(
function
(
client
,
done
)
{
client
.
execute
(
function
()
{
document
.
querySelector
(
'#runTabView'
).
scrollTop
=
document
.
querySelector
(
'#runTabView'
).
scrollHeight
},
[],
function
()
{
if
(
expectedInput
)
{
client
.
setValue
(
'#runTabView input[title="'
+
expectedInput
.
types
+
'"]'
,
expectedInput
.
values
,
function
()
{})
}
done
()
})
})
.
click
(
'.instance button[title="'
+
fnFullName
+
'"]'
)
.
pause
(
500
)
browser
.
waitForElementVisible
(
`*[data-id="txLogger
${
txHash
}
"]`
)
browser
.
waitForElementVisible
(
`*[data-id="txLogger
${
txHash
}
"]`
)
.
click
(
`*[data-id="txLogger
${
txHash
}
"]`
)
.
click
(
`*[data-id="txLogger
${
txHash
}
"]`
)
.
waitForElementVisible
(
`*[data-id="txLoggerTable
${
txHash
}
"]`
)
.
waitForElementVisible
(
`*[data-id="txLoggerTable
${
txHash
}
"]`
)
...
...
test-browser/tests/ballot.js
View file @
88fefd0b
...
@@ -55,7 +55,6 @@ module.exports = {
...
@@ -55,7 +55,6 @@ module.exports = {
.
clickLaunchIcon
(
'fileExplorers'
)
.
clickLaunchIcon
(
'fileExplorers'
)
.
addAtAddressInstance
(
'0x692a70D2e424a56D2C6C27aA97D1a86395877b3A'
,
true
,
true
)
.
addAtAddressInstance
(
'0x692a70D2e424a56D2C6C27aA97D1a86395877b3A'
,
true
,
true
)
.
pause
(
500
)
.
pause
(
500
)
<<<<<<<
HEAD
.
waitForElementPresent
(
'*[data-id="universalDappUiContractActionWrapper"]'
)
.
waitForElementPresent
(
'*[data-id="universalDappUiContractActionWrapper"]'
)
.
click
(
'*[data-id="universalDappUiTitleExpander"]'
)
.
click
(
'*[data-id="universalDappUiTitleExpander"]'
)
.
clickFunction
(
'delegate - transact (not payable)'
,
{
types
:
'address to'
,
values
:
'"0x4b0897b0513fdc7c541b6d9d7e929c4e5364d2db"'
})
.
clickFunction
(
'delegate - transact (not payable)'
,
{
types
:
'address to'
,
values
:
'"0x4b0897b0513fdc7c541b6d9d7e929c4e5364d2db"'
})
...
@@ -65,19 +64,6 @@ module.exports = {
...
@@ -65,19 +64,6 @@ module.exports = {
'transaction hash'
:
'0xca58080c8099429caeeffe43b8104df919c2c543dceb9edf9242fa55f045c803'
,
'transaction hash'
:
'0xca58080c8099429caeeffe43b8104df919c2c543dceb9edf9242fa55f045c803'
,
'decoded input'
:
{
'address to'
:
'0x4B0897b0513fdC7C541B6d9D7E929C4e5364D2dB'
}
'decoded input'
:
{
'address to'
:
'0x4B0897b0513fdC7C541B6d9D7E929C4e5364D2dB'
}
})
})
=======
.
waitForElementPresent
(
'.instance:nth-of-type(2)'
)
.
click
(
'.instance:nth-of-type(2) > div > button'
)
.
createContract
([
"0xca58080c8099429caeeffe43b8104df919c2c543dceb9edf9242fa55f045c803"
])
.
pause
(
100000
)
.
testTransactionLog
(
'0x57f7ac07a894739a8bbf059248f47aa49935bfcf673494114b1c5c0c183890f0'
,
{
status
:
'0x1 Transaction mined and execution succeed'
,
'transaction hash'
:
'0x57f7ac07a894739a8bbf059248f47aa49935bfcf673494114b1c5c0c183890f0'
,
'decoded input'
:
{
'bytes32[] proposalNames'
:
[
'0x48656c6c6f20576f726c64210000000000000000000000000000000000000000'
]
}
})
>>>>>>>
Improve
transaction
log
tests
},
},
'Deploy and use Ballot using external web3'
:
function
(
browser
)
{
'Deploy and use Ballot using external web3'
:
function
(
browser
)
{
...
...
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