@ -18,7 +18,6 @@ function addFile (browser: NightwatchBrowser, name: string, content: NightwatchC
.clickLaunchIcon('filePanel')
.click('li[data-id="treeViewLitreeViewItemREADME.txt"]') // focus on root directory
.elements('css selector', `li[data-id="treeViewLitreeViewItem${name}"]`, (res) => {
console.log(res)
if (res.value && (res.value as any).length > 0) {
browser.openFile(name)
.perform(function () {
@ -3,7 +3,6 @@ import EventEmitter from 'events'
class SetEditorValue extends EventEmitter {
command (this: NightwatchBrowser, value: string, callback?: VoidFunction): NightwatchBrowser {
console.log('set editor', value)
this.api.perform((client, done) => {
this.api.execute(function (value) {
const elem: any = document.getElementById('editorView')