pull/1647/head
bunsenstraat 3 years ago
parent 7f2f53e03e
commit 2116acbca8
  1. 2
      apps/remix-ide-e2e/src/commands/addFile.ts
  2. 2
      apps/remix-ide-e2e/src/tests/solidityImport.spec.ts
  3. 5
      apps/remix-ide/src/app/editor/editor.js

@ -30,7 +30,7 @@ function addFile (browser: NightwatchBrowser, name: string, content: NightwatchC
.sendKeys('*[data-id$="/blank"] .remixui_items', browser.Keys.ENTER)
// .pause(2000)
.waitForElementVisible(`li[data-id="treeViewLitreeViewItem${name}"]`, 60000)
.setEditorValue(content.content).pause(5000)
.setEditorValue(content.content).pause(10000)
// .pause(1000)
.perform(function () {
done()

@ -17,7 +17,7 @@ module.exports = {
'Test Success Import': function (browser: NightwatchBrowser) {
browser.addFile('Untitled1.sol', sources[1]['Untitled1.sol'])
.addFile('Untitled2.sol', sources[1]['Untitled2.sol'])
.addFile('Untitled2.sol', sources[1]['Untitled2.sol']).pause(4000)
.openFile('Untitled1.sol')
.verifyContracts(['test6', 'test4', 'test5'])
.pause(1000)

@ -147,11 +147,12 @@ class Editor extends Plugin {
if (this.saveTimeout) {
window.clearTimeout(this.saveTimeout)
}
this.triggerEvent('contentChanged', [])
this.saveTimeout = window.setTimeout(() => {
this.triggerEvent('contentChanged', [])
this.triggerEvent('requiringToSaveCurrentfile', [])
}, 5000)
}, 500)
}
_switchSession (path) {

Loading…
Cancel
Save