|
|
@ -1,6 +1,12 @@ |
|
|
|
'use strict' |
|
|
|
'use strict' |
|
|
|
const init = require('../helpers/init') |
|
|
|
const init = require('../helpers/init') |
|
|
|
const sauce = require('./sauce') |
|
|
|
const sauce = require('./sauce') |
|
|
|
|
|
|
|
const path = require('path') |
|
|
|
|
|
|
|
const testData = { |
|
|
|
|
|
|
|
testFile1: path.resolve(__dirname + '/editor.js'), // eslint-disable-line
|
|
|
|
|
|
|
|
testFile2: path.resolve(__dirname + '/fileExplorer.js'), // eslint-disable-line
|
|
|
|
|
|
|
|
testFile3: path.resolve(__dirname + '/generalSettings.js') // eslint-disable-line
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
module.exports = { |
|
|
|
module.exports = { |
|
|
|
|
|
|
|
|
|
|
@ -88,9 +94,20 @@ module.exports = { |
|
|
|
if (runtimeBrowser === 'chrome') { |
|
|
|
if (runtimeBrowser === 'chrome') { |
|
|
|
browser.switchBrowserTab(1) |
|
|
|
browser.switchBrowserTab(1) |
|
|
|
.assert.urlContains('https://gist.github.com') |
|
|
|
.assert.urlContains('https://gist.github.com') |
|
|
|
|
|
|
|
.switchBrowserTab(0) |
|
|
|
} |
|
|
|
} |
|
|
|
done() |
|
|
|
done() |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
'Should open local filesystem explorer': function (browser) { |
|
|
|
|
|
|
|
browser.waitForElementVisible('*[data-id="filePanelFileExplorerTree"]') |
|
|
|
|
|
|
|
.setValue('*[data-id="fileExplorerFileUpload"]', testData.testFile1) |
|
|
|
|
|
|
|
.setValue('*[data-id="fileExplorerFileUpload"]', testData.testFile2) |
|
|
|
|
|
|
|
.setValue('*[data-id="fileExplorerFileUpload"]', testData.testFile3) |
|
|
|
|
|
|
|
.waitForElementVisible('*[key="browser/editor.js"]') |
|
|
|
|
|
|
|
.waitForElementVisible('*[key="browser/fileExplorer.js"]') |
|
|
|
|
|
|
|
.waitForElementVisible('*[key="browser/generalSettings.js"]') |
|
|
|
.end() |
|
|
|
.end() |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|