Merge pull request #2943 from ethereum/fix/#2942
fix path to create and open file from home tabpull/2948/head^2
commit
0df5d77f80
@ -0,0 +1,20 @@ |
|||||||
|
'use strict' |
||||||
|
import { NightwatchBrowser } from 'nightwatch' |
||||||
|
import init from '../helpers/init' |
||||||
|
|
||||||
|
module.exports = { |
||||||
|
|
||||||
|
before: function (browser: NightwatchBrowser, done: VoidFunction) { |
||||||
|
init(browser, done) |
||||||
|
}, |
||||||
|
|
||||||
|
'Should create new file': function (browser: NightwatchBrowser) { |
||||||
|
browser |
||||||
|
.waitForElementVisible('*[data-id="homeTabNewFile"]') |
||||||
|
.click('*[data-id="homeTabNewFile"]') |
||||||
|
.waitForElementContainsText('*[data-id$="/blank"]', '', 60000) |
||||||
|
.sendKeys('*[data-id$="/blank"] .remixui_items', 'newTestFile') |
||||||
|
.sendKeys('*[data-id$="/blank"] .remixui_items', browser.Keys.ENTER) |
||||||
|
.waitForElementVisible('li[data-id="treeViewLitreeViewItemnewTestFile.sol"]') |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue