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
b67b9ad7
Commit
b67b9ad7
authored
Dec 06, 2017
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix tests
parent
f22e45ad
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
5 deletions
+13
-5
contracts.js
test-browser/helpers/contracts.js
+9
-2
ballot.js
test-browser/tests/ballot.js
+4
-3
No files found.
test-browser/helpers/contracts.js
View file @
b67b9ad7
...
@@ -99,8 +99,15 @@ function testFunction (fnFullName, txHash, log, expectedInput, expectedReturn, e
...
@@ -99,8 +99,15 @@ function testFunction (fnFullName, txHash, log, expectedInput, expectedReturn, e
}
}
function
addInstance
(
browser
,
address
,
done
)
{
function
addInstance
(
browser
,
address
,
done
)
{
browser
.
setValue
(
'#ataddressinput'
,
address
,
function
()
{
browser
.
setValue
(
'.ataddressinput'
,
address
,
function
()
{
browser
.
click
(
'div[class^="atAddress"]'
).
click
(
'#modal-footer-ok'
).
perform
(()
=>
{
done
()
})
browser
.
click
(
'div[class^="atAddress"]'
)
.
perform
((
client
)
=>
{
browser
.
execute
(
function
()
{
document
.
querySelector
(
'#modal-footer-ok'
).
click
()
},
[],
function
(
result
)
{
done
()
})
})
})
})
}
}
...
...
test-browser/tests/ballot.js
View file @
b67b9ad7
...
@@ -56,12 +56,13 @@ function runTests (browser, testData) {
...
@@ -56,12 +56,13 @@ function runTests (browser, testData) {
done
()
done
()
})
})
})
})
.
click
(
'.runView'
)
.
click
(
'div[class^="udappClose"]'
)
.
click
(
'div[class^="udappClose"]'
)
.
perform
(
function
(
client
,
done
)
{
.
perform
(
function
(
client
,
done
)
{
contractHelper
.
addFile
(
client
,
'ballot.abi'
,
ballotABI
,
()
=>
{
contractHelper
.
addFile
(
client
,
'ballot.abi'
,
{
content
:
ballotABI
}
,
()
=>
{
contractHelper
.
addInstance
(
client
,
'0x692a70d2e424a56d2c6c27aa97d1a86395877b3a'
,
()
=>
{
contractHelper
.
addInstance
(
client
,
'0x692a70d2e424a56d2c6c27aa97d1a86395877b3a'
,
()
=>
{
browser
.
testFunction
(
'delegate - transact (not payable)'
,
'0x
8a0de532559a9c20b98d451b4873bb78ec723c585cb1c170bdcd30ccda0afa76
'
,
browser
.
testFunction
(
'delegate - transact (not payable)'
,
'0x
7a9ebc90614274b7eb6b072f9bba7825e588cf88ae00598cfdbc4c215b88433e
'
,
'[vm] from:0xca3...a733c, to:Ballot.delegate(address) 0x692...77b3a, value:0 wei, data:0x5c1...4d2db, 0 logs, hash:0x
8a0...afa76
'
,
'[vm] from:0xca3...a733c, to:Ballot.delegate(address) 0x692...77b3a, value:0 wei, data:0x5c1...4d2db, 0 logs, hash:0x
7a9...8433e
'
,
{
types
:
'address to'
,
values
:
'"0x4b0897b0513fdc7c541b6d9d7e929c4e5364d2db"'
},
null
,
null
).
perform
(()
=>
{
{
types
:
'address to'
,
values
:
'"0x4b0897b0513fdc7c541b6d9d7e929c4e5364d2db"'
},
null
,
null
).
perform
(()
=>
{
done
()
done
()
browser
.
end
()
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