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
ab17529c
Commit
ab17529c
authored
Apr 29, 2020
by
LianaHus
Committed by
Liana Husikyan
Apr 29, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changed golden output
parent
14b1ea74
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
solidityUnittests.js
test-browser/tests/solidityUnittests.js
+6
-1
No files found.
test-browser/tests/solidityUnittests.js
View file @
ab17529c
...
@@ -49,7 +49,9 @@ module.exports = {
...
@@ -49,7 +49,9 @@ module.exports = {
.
assert
.
containsText
(
'*[data-id="testTabSolidityUnitTestsOutput"]'
,
'✓ Initial value should be100'
)
.
assert
.
containsText
(
'*[data-id="testTabSolidityUnitTestsOutput"]'
,
'✓ Initial value should be100'
)
.
assert
.
containsText
(
'*[data-id="testTabSolidityUnitTestsOutput"]'
,
'✓ Value is set200'
)
.
assert
.
containsText
(
'*[data-id="testTabSolidityUnitTestsOutput"]'
,
'✓ Value is set200'
)
.
assert
.
containsText
(
'*[data-id="testTabSolidityUnitTestsOutput"]'
,
'✘ Should fail for wrong value200'
)
.
assert
.
containsText
(
'*[data-id="testTabSolidityUnitTestsOutput"]'
,
'✘ Should fail for wrong value200'
)
.
assert
.
containsText
(
'*[data-id="testTabSolidityUnitTestsOutput"]'
,
'2 passing, 1 failing'
)
.
assert
.
containsText
(
'*[data-id="testTabSolidityUnitTestsOutput"]'
,
'Passing: 2'
)
.
assert
.
containsText
(
'*[data-id="testTabSolidityUnitTestsOutput"]'
,
'Failing: 1'
)
.
assert
.
containsText
(
'*[data-id="testTabSolidityUnitTestsOutput"]'
,
'FAIL MyTest (browser/simple_storage_test.sol)'
)
},
},
'Should run advance unit test using natspec and experimental ABIEncoderV2 `ks2b_test.sol` '
:
function
(
browser
)
{
'Should run advance unit test using natspec and experimental ABIEncoderV2 `ks2b_test.sol` '
:
function
(
browser
)
{
...
@@ -81,11 +83,13 @@ module.exports = {
...
@@ -81,11 +83,13 @@ module.exports = {
.
scrollAndClick
(
'*[data-id="testTabRunTestsTabRunAction"]'
)
.
scrollAndClick
(
'*[data-id="testTabRunTestsTabRunAction"]'
)
.
pause
(
5000
)
.
pause
(
5000
)
.
click
(
'*[data-id="testTabRunTestsTabStopAction"]'
)
.
click
(
'*[data-id="testTabRunTestsTabStopAction"]'
)
.
pause
(
2000
)
.
assert
.
containsText
(
'*[data-id="testTabRunTestsTabStopAction"]'
,
'Stopping'
)
.
assert
.
containsText
(
'*[data-id="testTabRunTestsTabStopAction"]'
,
'Stopping'
)
.
pause
(
10000
)
.
pause
(
10000
)
.
assert
.
containsText
(
'*[data-id="testTabSolidityUnitTestsOutput"]'
,
'browser/ks2b_test.sol'
)
.
assert
.
containsText
(
'*[data-id="testTabSolidityUnitTestsOutput"]'
,
'browser/ks2b_test.sol'
)
.
notContainsText
(
'*[data-id="testTabSolidityUnitTestsOutput"]'
,
'browser/4_Ballot_test.sol'
)
.
notContainsText
(
'*[data-id="testTabSolidityUnitTestsOutput"]'
,
'browser/4_Ballot_test.sol'
)
.
notContainsText
(
'*[data-id="testTabSolidityUnitTestsOutput"]'
,
'browser/simple_storage_test.sol'
)
.
notContainsText
(
'*[data-id="testTabSolidityUnitTestsOutput"]'
,
'browser/simple_storage_test.sol'
)
.
pause
(
5000
)
.
assert
.
containsText
(
'*[data-id="testTabTestsExecutionStopped"]'
,
'The test execution has been stopped'
)
.
assert
.
containsText
(
'*[data-id="testTabTestsExecutionStopped"]'
,
'The test execution has been stopped'
)
},
},
...
@@ -144,6 +148,7 @@ function runTests (browser) {
...
@@ -144,6 +148,7 @@ function runTests (browser) {
.
clickLaunchIcon
(
'fileExplorers'
)
.
clickLaunchIcon
(
'fileExplorers'
)
.
switchFile
(
'browser/3_Ballot.sol'
)
.
switchFile
(
'browser/3_Ballot.sol'
)
.
clickLaunchIcon
(
'solidityUnitTesting'
)
.
clickLaunchIcon
(
'solidityUnitTesting'
)
.
pause
(
500
)
.
scrollAndClick
(
'#runTestsTabRunAction'
)
.
scrollAndClick
(
'#runTestsTabRunAction'
)
.
waitForElementPresent
(
'#solidityUnittestsOutput div[class^="testPass"]'
)
.
waitForElementPresent
(
'#solidityUnittestsOutput div[class^="testPass"]'
)
.
pause
(
15000
)
.
pause
(
15000
)
...
...
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