terminal tests

pull/1647/head
bunsenstraat 3 years ago
parent 81ddbdf9c3
commit 799a12937d
  1. 2
      apps/remix-ide-e2e/src/helpers/init.ts
  2. 2
      apps/remix-ide-e2e/src/tests/terminal.test.ts
  3. 2
      apps/remix-ide/src/app/ui/landing-page/landing-page.js
  4. 2
      libs/remix-ui/workspace/src/lib/reducers/workspace.ts

@ -4,7 +4,7 @@ require('dotenv').config()
export default function (browser: NightwatchBrowser, callback: VoidFunction, url?: string, preloadPlugins = true): void {
browser
.url(url || 'http://127.0.0.1:8080')
.url(url || 'http://localhost:8080')
.pause(5000)
.switchBrowserTab(0)
.waitForElementVisible('[id="remixTourSkipbtn"]')

@ -4,7 +4,7 @@ import init from '../helpers/init'
module.exports = {
before: function (browser: NightwatchBrowser, done: VoidFunction) {
init(browser, done, 'http://127.0.0.1:8080?plugins=solidity,udapp', false)
init(browser, done, 'http://localhost:8080?plugins=solidity,udapp', false)
},
'Should execution a simple console command': function (browser: NightwatchBrowser) {

@ -423,6 +423,8 @@ export class LandingPage extends ViewPlugin {
}
}
const setDemoFile = async () => {
await this.call('filePanel', 'createWorkspace', `workspace_${Date.now()}`, true)
await this.call('fileManager', 'setFile', 'tests/one/two/three/four/file.js','neihjiehjiheiheihiehiehiheiheihi')
}
const onAcceptDownloadn = async () => {

@ -656,7 +656,7 @@ const fetchDirectoryContent = (state: BrowserState, payload: { fileTree, path: s
let prevFiles = _.get(files, _path)
if (!prevFiles) {
var object = {}; var o = object
const object = {}; let o = object
for (const pa of _path) {
o = o[pa] = {}
}

Loading…
Cancel
Save