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
1004777f
Commit
1004777f
authored
Aug 11, 2020
by
ioedeveloper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Try any type to fix test
parent
c7ec8539
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
getAddressAtPosition.ts
apps/remix-ide-e2e/src/commands/getAddressAtPosition.ts
+3
-5
No files found.
apps/remix-ide-e2e/src/commands/getAddressAtPosition.ts
View file @
1004777f
...
...
@@ -4,7 +4,7 @@ import EventEmitter from "events"
class
GetAddressAtPosition
extends
EventEmitter
{
command
(
this
:
NightwatchBrowser
,
index
:
number
,
cb
:
(
pos
:
string
)
=>
void
):
NightwatchBrowser
{
this
.
api
.
perform
((
done
)
=>
{
getAddressAtPosition
(
this
.
api
,
index
,
(
pos
)
=>
{
getAddressAtPosition
(
this
.
api
,
index
,
(
pos
:
string
)
=>
{
done
()
cb
(
pos
)
this
.
emit
(
'complete'
)
...
...
@@ -14,7 +14,7 @@ class GetAddressAtPosition extends EventEmitter {
}
}
function
getAddressAtPosition
(
browser
:
NightwatchBrowser
,
index
:
number
,
callback
:
(
pos
:
string
)
=>
void
)
{
function
getAddressAtPosition
(
browser
:
NightwatchBrowser
,
index
:
number
,
callback
:
(
pos
:
any
)
=>
void
)
{
browser
.
waitForElementPresent
(
'*[data-shared="universalDappUiInstance"]'
)
.
execute
(
function
(
index
)
{
const
deployedContracts
=
document
.
querySelectorAll
(
'*[data-shared="universalDappUiInstance"]'
)
...
...
@@ -22,9 +22,7 @@ function getAddressAtPosition (browser: NightwatchBrowser, index: number, callba
return
id
.
replace
(
'instance'
,
''
)
},
[
index
],
function
(
result
)
{
const
pos
=
typeof
result
.
value
===
'string'
?
result
.
value
:
null
callback
(
pos
)
callback
(
result
.
value
)
})
}
...
...
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