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
73115fd3
Commit
73115fd3
authored
Aug 03, 2020
by
ioedeveloper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added transactionExecution tests
parent
a0621db3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
39 additions
and
2 deletions
+39
-2
checkElementStyle.ts
apps/remix-ide-e2e/src/commands/checkElementStyle.ts
+1
-1
checkTerminalFilter.ts
apps/remix-ide-e2e/src/commands/checkTerminalFilter.ts
+36
-0
transactionExecution.test.ts
apps/remix-ide-e2e/src/tests/transactionExecution.test.ts
+0
-0
index.d.ts
apps/remix-ide-e2e/src/types/index.d.ts
+2
-1
No files found.
apps/remix-ide-e2e/src/commands/checkElementStyle.ts
View file @
73115fd3
import
EventEmitter
from
"events"
import
EventEmitter
from
'events'
import
{
NightwatchBrowser
}
from
'nightwatch'
class
checkElementStyle
extends
EventEmitter
{
...
...
apps/remix-ide-e2e/src/commands/checkTerminalFilter.ts
0 → 100644
View file @
73115fd3
import
EventEmitter
from
'events'
import
{
NightwatchBrowser
}
from
'nightwatch'
class
CheckTerminalFilter
extends
EventEmitter
{
command
(
this
:
NightwatchBrowser
,
filter
:
string
,
test
:
string
):
NightwatchBrowser
{
this
.
api
.
perform
((
done
)
=>
{
checkFilter
(
this
.
api
,
filter
,
test
,
()
=>
{
done
()
this
.
emit
(
'complete'
)
})
})
return
this
}
}
function
checkFilter
(
browser
:
NightwatchBrowser
,
filter
:
string
,
test
:
string
,
done
:
VoidFunction
)
{
if
(
browser
.
options
.
desiredCapabilities
.
browserName
===
'chrome'
)
{
// nightwatch deos not handle well that part.... works locally
done
()
return
}
const
filterClass
=
'[data-id="terminalInputSearch"]'
browser
.
setValue
(
filterClass
,
filter
,
function
()
{
browser
.
execute
(
function
()
{
return
document
.
querySelector
(
'[data-id="terminalJournal"]'
).
innerHTML
===
test
},
[],
function
(
result
)
{
browser
.
clearValue
(
filterClass
).
setValue
(
filterClass
,
''
,
function
()
{
if
(
!
result
.
value
)
{
browser
.
assert
.
fail
(
'useFilter on '
+
filter
+
' '
+
test
,
'info about error'
,
''
)
}
done
()
})
})
})
}
module
.
exports
=
CheckTerminalFilter
apps/remix-ide-e2e/src/tests/transactionExecution.test.ts
0 → 100644
View file @
73115fd3
This diff is collapsed.
Click to expand it.
apps/remix-ide-e2e/src/types/index.d.ts
View file @
73115fd3
...
...
@@ -49,7 +49,8 @@ declare module "nightwatch" {
clickElementAtPosition
(
cssSelector
:
string
,
index
:
number
):
NightwatchBrowser
,
notContainsText
(
cssSelector
:
string
,
text
:
string
):
NightwatchBrowser
,
sendLowLevelTx
(
address
:
string
,
value
:
string
,
callData
:
string
):
NightwatchBrowser
,
journalLastChild
(
val
:
string
):
NightwatchBrowser
journalLastChild
(
val
:
string
):
NightwatchBrowser
,
checkTerminalFilter
(
filter
:
string
,
test
:
string
):
NightwatchBrowser
}
export
interface
NightwatchBrowser
{
...
...
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