Commit c62bdc17 authored by LianaHus's avatar LianaHus Committed by Liana Husikyan

updated test:

linter fixes prevent 000
parent 2651eb3d
...@@ -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')
......
...@@ -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()
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment