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
a2853a8a
Commit
a2853a8a
authored
Feb 13, 2020
by
ioedeveloper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated executeScript to use data-attributes
parent
61faa0f6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
terminal.js
src/app/panels/terminal.js
+1
-0
executeScript.js
test-browser/commands/executeScript.js
+2
-2
No files found.
src/app/panels/terminal.js
View file @
a2853a8a
...
@@ -120,6 +120,7 @@ class Terminal extends Plugin {
...
@@ -120,6 +120,7 @@ class Terminal extends Plugin {
self
.
_view
.
input
.
setAttribute
(
'spellcheck'
,
'false'
)
self
.
_view
.
input
.
setAttribute
(
'spellcheck'
,
'false'
)
self
.
_view
.
input
.
setAttribute
(
'contenteditable'
,
'true'
)
self
.
_view
.
input
.
setAttribute
(
'contenteditable'
,
'true'
)
self
.
_view
.
input
.
setAttribute
(
'id'
,
'terminalCliInput'
)
self
.
_view
.
input
.
setAttribute
(
'id'
,
'terminalCliInput'
)
self
.
_view
.
input
.
setAttribute
(
'data-id'
,
'terminalCliInput'
)
self
.
_view
.
input
.
innerText
=
'
\
n'
self
.
_view
.
input
.
innerText
=
'
\
n'
self
.
_view
.
cli
=
yo
`
self
.
_view
.
cli
=
yo
`
...
...
test-browser/commands/executeScript.js
View file @
a2853a8a
...
@@ -3,8 +3,8 @@ const EventEmitter = require('events')
...
@@ -3,8 +3,8 @@ const EventEmitter = require('events')
class
ExecuteScript
extends
EventEmitter
{
class
ExecuteScript
extends
EventEmitter
{
command
(
script
)
{
command
(
script
)
{
this
.
api
this
.
api
.
clearValue
(
'
#terminalCliInput
'
)
.
clearValue
(
'
span[data-id="terminalCliInput"]
'
)
.
click
(
'
#terminalCli
'
)
.
click
(
'
div[data-id="terminalCli"]
'
)
.
keys
(
script
)
.
keys
(
script
)
.
keys
(
this
.
api
.
Keys
.
ENTER
)
.
keys
(
this
.
api
.
Keys
.
ENTER
)
.
keys
(
this
.
api
.
Keys
.
ENTER
)
// that's a bug... sometimes we need to press 2 times to execute a command
.
keys
(
this
.
api
.
Keys
.
ENTER
)
// that's a bug... sometimes we need to press 2 times to execute a command
...
...
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