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
c4052f02
Commit
c4052f02
authored
Jan 13, 2021
by
ioedeveloper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Debug ci
parent
f3910c5d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
getModalBody.ts
apps/remix-ide-e2e/src/commands/getModalBody.ts
+1
-1
publishContract.test.ts
apps/remix-ide-e2e/src/tests/publishContract.test.ts
+2
-2
No files found.
apps/remix-ide-e2e/src/commands/getModalBody.ts
View file @
c4052f02
...
@@ -4,7 +4,7 @@ import EventEmitter from "events"
...
@@ -4,7 +4,7 @@ import EventEmitter from "events"
class
GetModalBody
extends
EventEmitter
{
class
GetModalBody
extends
EventEmitter
{
command
(
this
:
NightwatchBrowser
,
callback
:
(
value
:
string
,
cb
:
VoidFunction
)
=>
void
)
{
command
(
this
:
NightwatchBrowser
,
callback
:
(
value
:
string
,
cb
:
VoidFunction
)
=>
void
)
{
this
.
api
.
waitForElementPresent
(
'.modal-body'
)
this
.
api
.
waitForElementPresent
(
'.modal-body'
)
.
getText
(
'
.modal-body
'
,
(
result
)
=>
{
.
getText
(
'
#modal-dialog
'
,
(
result
)
=>
{
console
.
log
(
result
)
console
.
log
(
result
)
const
value
=
typeof
result
.
value
===
'string'
?
result
.
value
:
null
const
value
=
typeof
result
.
value
===
'string'
?
result
.
value
:
null
...
...
apps/remix-ide-e2e/src/tests/publishContract.test.ts
View file @
c4052f02
...
@@ -20,7 +20,7 @@ module.exports = {
...
@@ -20,7 +20,7 @@ module.exports = {
.
openFile
(
'browser/contracts/3_Ballot.sol'
)
.
openFile
(
'browser/contracts/3_Ballot.sol'
)
.
verifyContracts
([
'Ballot'
])
.
verifyContracts
([
'Ballot'
])
.
click
(
'#publishOnIpfs'
)
.
click
(
'#publishOnIpfs'
)
.
waitForElementVisible
(
'*[data-id="modalDialogContainer"]'
)
.
pause
(
10000
)
.
getModalBody
((
value
,
done
)
=>
{
.
getModalBody
((
value
,
done
)
=>
{
if
(
value
.
indexOf
(
'Metadata of "ballot" was published successfully.'
)
===
-
1
)
browser
.
assert
.
fail
(
'ipfs deploy failed'
,
''
,
''
)
if
(
value
.
indexOf
(
'Metadata of "ballot" was published successfully.'
)
===
-
1
)
browser
.
assert
.
fail
(
'ipfs deploy failed'
,
''
,
''
)
if
(
value
.
indexOf
(
'dweb:/ipfs'
)
===
-
1
)
browser
.
assert
.
fail
(
'ipfs deploy failed'
,
''
,
''
)
if
(
value
.
indexOf
(
'dweb:/ipfs'
)
===
-
1
)
browser
.
assert
.
fail
(
'ipfs deploy failed'
,
''
,
''
)
...
@@ -32,7 +32,7 @@ module.exports = {
...
@@ -32,7 +32,7 @@ module.exports = {
'Publish on Swarm'
:
''
+
function
(
browser
:
NightwatchBrowser
)
{
'Publish on Swarm'
:
''
+
function
(
browser
:
NightwatchBrowser
)
{
browser
browser
.
click
(
'#publishOnSwarm'
)
.
click
(
'#publishOnSwarm'
)
.
waitForElementVisible
(
'*[data-id="modalDialogContainer"]'
)
.
pause
(
10000
)
.
getModalBody
((
value
,
done
)
=>
{
.
getModalBody
((
value
,
done
)
=>
{
if
(
value
.
indexOf
(
'Metadata of "ballot" was successfully.'
)
===
-
1
)
browser
.
assert
.
fail
(
'swarm deploy failed'
,
''
,
''
)
if
(
value
.
indexOf
(
'Metadata of "ballot" was successfully.'
)
===
-
1
)
browser
.
assert
.
fail
(
'swarm deploy failed'
,
''
,
''
)
if
(
value
.
indexOf
(
'bzz'
)
===
-
1
)
browser
.
assert
.
fail
(
'swarm deploy failed'
,
''
,
''
)
if
(
value
.
indexOf
(
'bzz'
)
===
-
1
)
browser
.
assert
.
fail
(
'swarm deploy failed'
,
''
,
''
)
...
...
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