forked from ethereum/remix-ide
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update tests to include 1 for checking if the console works
- Loading branch information
Showing
6 changed files
with
52 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
const EventEmitter = require('events') | ||
|
||
class ExecuteScript extends EventEmitter { | ||
command (script) { | ||
this.api | ||
.click('#terminalCli') | ||
.keys(script) | ||
.perform(() => { | ||
this.emit('complete') | ||
}) | ||
return this | ||
} | ||
} | ||
|
||
module.exports = ExecuteScript |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
const EventEmitter = require('events') | ||
|
||
class JournalLastChild extends EventEmitter { | ||
command (val) { | ||
|
||
this.api.assert.containsText('#journal div:last-child span.text-info', val).perform(() => { | ||
this.emit('complete') | ||
}) | ||
return this | ||
} | ||
} | ||
|
||
module.exports = JournalLastChild |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
'use strict' | ||
var init = require('../helpers/init') | ||
var sauce = require('./sauce') | ||
|
||
module.exports = { | ||
before: function (browser, done) { | ||
init(browser, done) | ||
}, | ||
'SimpleExecutionConsole': function (browser) { | ||
browser | ||
.waitForElementVisible('#terminalCli', 10000) | ||
.executeScript(['\uE01B','\uE025','\uE01B','\uE006','\uE006','\uE006']) | ||
.waitForElementVisible('#journal div:last-child span.text-info', 10000) | ||
.journalLastChild('2') | ||
.end() | ||
}, | ||
tearDown: sauce | ||
} |