Commit a960881d authored by ioedeveloper's avatar ioedeveloper

Fixed terminal test

parent 95c2c2be
...@@ -10,6 +10,7 @@ module.exports = { ...@@ -10,6 +10,7 @@ module.exports = {
'Should execution a simple console command': function (browser: NightwatchBrowser) { 'Should execution a simple console command': function (browser: NightwatchBrowser) {
browser browser
.pause(10000)
.waitForElementVisible('*[data-id="terminalCli"]', 10000) .waitForElementVisible('*[data-id="terminalCli"]', 10000)
.executeScript('console.log(1 + 1)') .executeScript('console.log(1 + 1)')
.journalLastChild('2') .journalLastChild('2')
...@@ -97,6 +98,7 @@ module.exports = { ...@@ -97,6 +98,7 @@ module.exports = {
'Call Remix File Resolver (internal URL) from a script': function (browser: NightwatchBrowser) { 'Call Remix File Resolver (internal URL) from a script': function (browser: NightwatchBrowser) {
browser browser
.click('*[data-id="terminalClearConsole"]') // clear the terminal .click('*[data-id="terminalClearConsole"]') // clear the terminal
.click('li[data-id="treeViewLitreeViewItembrowser/resolveExternalUrlAndSave.js"')
.addFile('resolveUrl.js', { content: resolveUrl }) .addFile('resolveUrl.js', { content: resolveUrl })
.openFile('browser/resolveUrl.js') .openFile('browser/resolveUrl.js')
.pause(1000) .pause(1000)
...@@ -108,6 +110,7 @@ module.exports = { ...@@ -108,6 +110,7 @@ module.exports = {
'Call Remix File Resolver (internal URL) from a script and specify a path': function (browser: NightwatchBrowser) { 'Call Remix File Resolver (internal URL) from a script and specify a path': function (browser: NightwatchBrowser) {
browser browser
.click('*[data-id="terminalClearConsole"]') // clear the terminal .click('*[data-id="terminalClearConsole"]') // clear the terminal
.click('li[data-id="treeViewLitreeViewItembrowser/resolveUrl.js"')
.addFile('resolveExternalUrlAndSaveToaPath.js', { content: resolveExternalUrlAndSaveToaPath }) .addFile('resolveExternalUrlAndSaveToaPath.js', { content: resolveExternalUrlAndSaveToaPath })
.openFile('browser/resolveExternalUrlAndSaveToaPath.js') .openFile('browser/resolveExternalUrlAndSaveToaPath.js')
.pause(1000) .pause(1000)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment