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
8df9d5e6
Commit
8df9d5e6
authored
May 27, 2021
by
aniket-engg
Committed by
Aniket
May 28, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
contract call tests for VM
parent
f0bb8587
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
ballot.test.ts
apps/remix-ide-e2e/src/tests/ballot.test.ts
+13
-0
No files found.
apps/remix-ide-e2e/src/tests/ballot.test.ts
View file @
8df9d5e6
...
...
@@ -34,6 +34,19 @@ module.exports = {
})
},
'Call method from Ballot to check return value'
:
function
(
browser
:
NightwatchBrowser
)
{
browser
.
clickFunction
(
'winnerName - call'
)
// Test in terminal
.
testFunction
(
'last'
,
{
to
:
'Ballot.winnerName() 0x692a70D2e424a56D2C6C27aA97D1a86395877b3A'
,
'decoded output'
:
{
"0"
:
"bytes32: winnerName_ 0x48656c6c6f20576f726c64210000000000000000000000000000000000000000"
}
})
// Test in Udapp UI
.
assert
.
containsText
(
'*[data-id="treeViewDiv0"]'
,
"bytes32: winnerName_ 0x48656c6c6f20576f726c64210000000000000000000000000000000000000000"
)
},
'Debug Ballot / delegate'
:
function
(
browser
:
NightwatchBrowser
)
{
browser
.
pause
(
500
)
.
click
(
'*[data-id="txLoggerDebugButton0x41fab8ea5b1d9fba5e0a6545ca1a2d62fff518578802c033c2b9a031a01c31b3"]'
)
...
...
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