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
80da4b9a
Unverified
Commit
80da4b9a
authored
Nov 20, 2020
by
David Disu
Committed by
GitHub
Nov 20, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #610 from ethereum/fix_e2e
Fix e2e
parents
b4bc482c
9e840e46
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
6 deletions
+8
-6
debugTransaction.ts
apps/remix-ide-e2e/src/commands/debugTransaction.ts
+1
-1
selectContract.ts
apps/remix-ide-e2e/src/commands/selectContract.ts
+1
-0
debugger.test.ts
apps/remix-ide-e2e/src/tests/debugger.test.ts
+3
-3
solidityImport.test.ts
apps/remix-ide-e2e/src/tests/solidityImport.test.ts
+3
-2
No files found.
apps/remix-ide-e2e/src/commands/debugTransaction.ts
View file @
80da4b9a
...
...
@@ -17,7 +17,7 @@ function checkStyle (browser: NightwatchBrowser, index: number, callback: VoidFu
browser
.
pause
(
2000
).
execute
(
function
(
index
:
number
)
{
const
debugBtn
=
document
.
querySelectorAll
(
'*[data-shared="txLoggerDebugButton"]'
)[
index
]
as
HTMLInputElement
debugBtn
.
click
()
debugBtn
&&
debugBtn
.
click
()
},
[
index
],
function
()
{
callback
()
})
...
...
apps/remix-ide-e2e/src/commands/selectContract.ts
View file @
80da4b9a
...
...
@@ -15,6 +15,7 @@ class SelectContract extends EventEmitter {
function
selectContract
(
browser
:
NightwatchBrowser
,
contractName
:
string
,
callback
:
VoidFunction
)
{
browser
.
clickLaunchIcon
(
'settings'
).
clickLaunchIcon
(
'udapp'
)
.
pause
(
10000
)
.
setValue
(
'#runTabView select[class^="contractNames"]'
,
contractName
).
perform
(()
=>
{
callback
()
})
...
...
apps/remix-ide-e2e/src/tests/debugger.test.ts
View file @
80da4b9a
...
...
@@ -90,9 +90,9 @@ module.exports = {
.
pause
(
2000
)
.
goToVMTraceStep
(
10
)
.
getEditorValue
((
content
)
=>
{
browser
.
assert
.
ok
(
content
.
indexOf
(
`constructor (string memory name
, string memory symbol
) public {
_name = name;
_symbol = symbol;
browser
.
assert
.
ok
(
content
.
indexOf
(
`constructor (string memory name
_, string memory symbol_
) public {
_name = name
_
;
_symbol = symbol
_
;
_decimals = 18;
}`
)
!=
-
1
,
'current displayed content is not from the ERC20 source code'
)
...
...
apps/remix-ide-e2e/src/tests/solidityImport.test.ts
View file @
80da4b9a
...
...
@@ -66,8 +66,9 @@ module.exports = {
.
addFile
(
'Untitled8.sol'
,
sources
[
7
][
'browser/Untitled8.sol'
])
.
clickLaunchIcon
(
'fileExplorers'
)
.
clickLaunchIcon
(
'solidity'
)
.
waitForElementPresent
(
'[data-id="compiledErrors"] div:nth-child(3)'
)
.
click
(
'[data-id="compiledErrors"] div:nth-child(3)'
)
// select the second warning which point to ERC20 code
.
waitForElementPresent
(
'[data-id="compiledErrors"] div:nth-child(4)'
)
.
click
(
'[data-id="compiledErrors"] div:nth-child(4)'
)
// select the second warning which point to ERC20 code
.
pause
(
5000
)
.
getEditorValue
((
content
)
=>
{
browser
.
assert
.
ok
(
content
.
indexOf
(
`contract ERC20 is Context, IERC20`
)
!=
-
1
,
'current displayed content should be from the ERC20 source code'
)
...
...
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