Fixed failing firefox tests

pull/668/head
ioedeveloper 4 years ago
parent 298d58af6f
commit b9251e5264
  1. 2
      apps/remix-ide-e2e/src/commands/clearEditableContent.ts
  2. 2
      apps/remix-ide-e2e/src/tests/terminal.test.ts

@ -22,7 +22,7 @@ function clearContent (browser: NightwatchBrowser, cssSelector: string, callback
selection.removeAllRanges()
selection.addRange(range)
}, [cssSelector], function () {
browser.keys(browser.Keys.BACK_SPACE)
browser.sendKeys(cssSelector, browser.Keys.BACK_SPACE)
.pause(5000)
callback()
})

@ -10,7 +10,6 @@ module.exports = {
'Should execution a simple console command': function (browser: NightwatchBrowser) {
browser
.pause(10000)
.waitForElementVisible('*[data-id="terminalCli"]', 10000)
.executeScript('console.log(1 + 1)')
.journalLastChild('2')
@ -35,7 +34,6 @@ module.exports = {
'Should execute remix.help() command': function (browser: NightwatchBrowser) {
browser
.waitForElementVisible('*[data-id="terminalCli"]')
.clearEditableContent('*[data-id="terminalCliInput"]')
.executeScript('remix.help()')
.journalChildIncludes('remix.loadgist(id)')
.journalChildIncludes('remix.loadurl(url)')

Loading…
Cancel
Save