Commit b9251e52 authored by ioedeveloper's avatar ioedeveloper

Fixed failing firefox tests

parent 298d58af
...@@ -22,7 +22,7 @@ function clearContent (browser: NightwatchBrowser, cssSelector: string, callback ...@@ -22,7 +22,7 @@ function clearContent (browser: NightwatchBrowser, cssSelector: string, callback
selection.removeAllRanges() selection.removeAllRanges()
selection.addRange(range) selection.addRange(range)
}, [cssSelector], function () { }, [cssSelector], function () {
browser.keys(browser.Keys.BACK_SPACE) browser.sendKeys(cssSelector, browser.Keys.BACK_SPACE)
.pause(5000) .pause(5000)
callback() callback()
}) })
......
...@@ -10,7 +10,6 @@ module.exports = { ...@@ -10,7 +10,6 @@ module.exports = {
'Should execution a simple console command': function (browser: NightwatchBrowser) { 'Should execution a simple console command': function (browser: NightwatchBrowser) {
browser browser
.pause(10000)
.waitForElementVisible('*[data-id="terminalCli"]', 10000) .waitForElementVisible('*[data-id="terminalCli"]', 10000)
.executeScript('console.log(1 + 1)') .executeScript('console.log(1 + 1)')
.journalLastChild('2') .journalLastChild('2')
...@@ -35,7 +34,6 @@ module.exports = { ...@@ -35,7 +34,6 @@ module.exports = {
'Should execute remix.help() command': function (browser: NightwatchBrowser) { 'Should execute remix.help() command': function (browser: NightwatchBrowser) {
browser browser
.waitForElementVisible('*[data-id="terminalCli"]') .waitForElementVisible('*[data-id="terminalCli"]')
.clearEditableContent('*[data-id="terminalCliInput"]')
.executeScript('remix.help()') .executeScript('remix.help()')
.journalChildIncludes('remix.loadgist(id)') .journalChildIncludes('remix.loadgist(id)')
.journalChildIncludes('remix.loadurl(url)') .journalChildIncludes('remix.loadurl(url)')
......
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