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
f3910c5d
Commit
f3910c5d
authored
Jan 13, 2021
by
ioedeveloper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Wait for modal visible
parent
d9e0ebfb
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 @
f3910c5d
...
@@ -3,7 +3,7 @@ import EventEmitter from "events"
...
@@ -3,7 +3,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
.
waitForElement
Visible
(
'.modal-body'
)
this
.
api
.
waitForElement
Present
(
'.modal-body'
)
.
getText
(
'.modal-body'
,
(
result
)
=>
{
.
getText
(
'.modal-body'
,
(
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 @
f3910c5d
...
@@ -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'
)
.
pause
(
5000
)
.
waitForElementVisible
(
'*[data-id="modalDialogContainer"]'
)
.
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'
)
.
pause
(
5000
)
.
waitForElementVisible
(
'*[data-id="modalDialogContainer"]'
)
.
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