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
06c58058
Commit
06c58058
authored
Oct 08, 2021
by
Aniket-Engg
Committed by
Aniket
Oct 15, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debug e2e tests in SUT plugin
parent
2fb12a38
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
1 deletion
+29
-1
solidityUnittests.spec.ts
apps/remix-ide-e2e/src/tests/solidityUnittests.spec.ts
+29
-1
No files found.
apps/remix-ide-e2e/src/tests/solidityUnittests.spec.ts
View file @
06c58058
...
@@ -253,8 +253,36 @@ module.exports = {
...
@@ -253,8 +253,36 @@ module.exports = {
.
setValue
(
'*[data-id="slider"]'
,
new
Array
(
1
).
fill
(
browser
.
Keys
.
RIGHT_ARROW
))
.
setValue
(
'*[data-id="slider"]'
,
new
Array
(
1
).
fill
(
browser
.
Keys
.
RIGHT_ARROW
))
.
waitForElementContainsText
(
'*[data-id="functionPanel"]'
,
'checkWinningProposalFailed()'
,
60000
)
.
waitForElementContainsText
(
'*[data-id="functionPanel"]'
,
'checkWinningProposalFailed()'
,
60000
)
.
waitForElementContainsText
(
'*[data-id="functionPanel"]'
,
'vote(proposal)'
,
60000
)
.
waitForElementContainsText
(
'*[data-id="functionPanel"]'
,
'vote(proposal)'
,
60000
)
.
pause
(
2
000
)
.
pause
(
1
000
)
.
checkVariableDebug
(
'soliditylocals'
,
locals
)
.
checkVariableDebug
(
'soliditylocals'
,
locals
)
.
clickLaunchIcon
(
'solidityUnitTesting'
)
.
scrollAndClick
(
'#Check_winning_proposal_passed'
)
.
waitForElementContainsText
(
'*[data-id="sidePanelSwapitTitle"]'
,
'DEBUGGER'
,
60000
)
.
waitForElementContainsText
(
'*[data-id="functionPanel"]'
,
'checkWinningProposalPassed()'
,
60000
)
// eslint-disable-next-line dot-notation
.
execute
(
function
()
{
document
.
getElementById
(
'slider'
)[
'value'
]
=
'1450'
})
.
setValue
(
'*[data-id="slider"]'
,
new
Array
(
1
).
fill
(
browser
.
Keys
.
RIGHT_ARROW
))
.
waitForElementContainsText
(
'*[data-id="functionPanel"]'
,
'equal(a, b, message)'
,
60000
)
.
waitForElementContainsText
(
'*[data-id="functionPanel"]'
,
'checkWinningProposalPassed()'
,
60000
)
.
pause
(
1000
)
.
clickLaunchIcon
(
'solidityUnitTesting'
)
.
scrollAndClick
(
'#Check_winning_proposal_again'
)
.
waitForElementContainsText
(
'*[data-id="sidePanelSwapitTitle"]'
,
'DEBUGGER'
,
60000
)
.
waitForElementContainsText
(
'*[data-id="functionPanel"]'
,
'checkWinningProposalAgain()'
,
60000
)
// eslint-disable-next-line dot-notation
.
execute
(
function
()
{
document
.
getElementById
(
'slider'
)[
'value'
]
=
'1150'
})
.
setValue
(
'*[data-id="slider"]'
,
new
Array
(
1
).
fill
(
browser
.
Keys
.
RIGHT_ARROW
))
.
waitForElementContainsText
(
'*[data-id="functionPanel"]'
,
'equal(a, b, message)'
,
60000
)
.
waitForElementContainsText
(
'*[data-id="functionPanel"]'
,
'checkWinningProposalAgain()'
,
60000
)
.
pause
(
1000
)
.
clickLaunchIcon
(
'solidityUnitTesting'
)
.
scrollAndClick
(
'#Check_winnin_proposal_with_return_value'
)
.
waitForElementContainsText
(
'*[data-id="sidePanelSwapitTitle"]'
,
'DEBUGGER'
,
60000
)
.
waitForElementContainsText
(
'*[data-id="functionPanel"]'
,
'checkWinninProposalWithReturnValue()'
,
60000
)
// eslint-disable-next-line dot-notation
.
execute
(
function
()
{
document
.
getElementById
(
'slider'
)[
'value'
]
=
'320'
})
.
setValue
(
'*[data-id="slider"]'
,
new
Array
(
1
).
fill
(
browser
.
Keys
.
RIGHT_ARROW
))
.
waitForElementContainsText
(
'*[data-id="functionPanel"]'
,
'checkWinninProposalWithReturnValue()'
,
60000
)
.
clickLaunchIcon
(
'filePanel'
)
.
clickLaunchIcon
(
'filePanel'
)
.
pause
(
2000
)
.
pause
(
2000
)
.
openFile
(
'tests/ballotFailedDebug_test.sol'
)
.
openFile
(
'tests/ballotFailedDebug_test.sol'
)
...
...
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