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
c62bdc17
Commit
c62bdc17
authored
Dec 08, 2020
by
LianaHus
Committed by
Liana Husikyan
Jan 07, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated test:
linter fixes prevent 000
parent
2651eb3d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
8 deletions
+3
-8
runAndDeploy.ts
apps/remix-ide-e2e/src/tests/runAndDeploy.ts
+1
-3
settings.js
apps/remix-ide/src/app/tabs/runTab/settings.js
+2
-5
No files found.
apps/remix-ide-e2e/src/tests/runAndDeploy.ts
View file @
c62bdc17
...
@@ -25,15 +25,13 @@ module.exports = {
...
@@ -25,15 +25,13 @@ module.exports = {
'Should load run and deploy tab and check value validation'
:
function
(
browser
:
NightwatchBrowser
)
{
'Should load run and deploy tab and check value validation'
:
function
(
browser
:
NightwatchBrowser
)
{
browser
.
waitForElementPresent
(
'*[data-id="remixIdeSidePanel"]'
)
browser
.
waitForElementPresent
(
'*[data-id="remixIdeSidePanel"]'
)
.
clickLaunchIcon
(
'udapp'
)
.
waitForElementPresent
(
'*[data-id="sidePanelSwapitTitle"]'
)
.
assert
.
containsText
(
'*[data-id="sidePanelSwapitTitle"]'
,
'DEPLOY & RUN TRANSACTIONS'
)
.
assert
.
containsText
(
'*[data-id="sidePanelSwapitTitle"]'
,
'DEPLOY & RUN TRANSACTIONS'
)
.
clearValue
(
'#value'
)
.
clearValue
(
'#value'
)
.
setValue
(
'#value'
,
'0000'
)
.
setValue
(
'#value'
,
'0000'
)
.
assert
.
containsText
(
'*[data-id="dandrValue"]'
,
'0'
)
.
assert
.
containsText
(
'*[data-id="dandrValue"]'
,
'0'
)
.
clearValue
(
'#value'
)
.
clearValue
(
'#value'
)
.
setValue
(
'#value'
,
'-44'
)
.
setValue
(
'#value'
,
'-44'
)
.
assert
.
containsText
(
'*[data-id="dandrValue"]'
,
'
44
'
)
.
assert
.
containsText
(
'*[data-id="dandrValue"]'
,
'
0
'
)
.
clearValue
(
'#value'
)
.
clearValue
(
'#value'
)
.
setValue
(
'#value'
,
''
)
.
setValue
(
'#value'
,
''
)
.
assert
.
containsText
(
'*[data-id="dandrValue"]'
,
'0'
)
.
assert
.
containsText
(
'*[data-id="dandrValue"]'
,
'0'
)
...
...
apps/remix-ide/src/app/tabs/runTab/settings.js
View file @
c62bdc17
...
@@ -53,11 +53,8 @@ class SettingsUI {
...
@@ -53,11 +53,8 @@ class SettingsUI {
})
})
}
}
validateInput
(
e
)
{
validateInputKey
(
e
)
{
console
.
log
(
'start value = '
,
this
.
el
.
querySelector
(
'#value'
).
value
)
if
(
!
helper
.
isNumeric
(
e
.
key
)
||
(
e
.
key
===
0
&&
!
this
.
el
.
querySelector
(
'#value'
).
value
))
{
console
.
log
(
"e = "
,
e
)
if
(
!
helper
.
isNumeric
(
e
.
key
))
{
console
.
log
(
"e.data = "
,
e
.
key
)
e
.
preventDefault
()
e
.
preventDefault
()
e
.
stopImmediatePropagation
()
e
.
stopImmediatePropagation
()
}
}
...
...
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