|
|
|
@ -9,10 +9,11 @@ const testData = { |
|
|
|
|
// 99266d6da54cc12f37f11586e8171546c7700d67
|
|
|
|
|
|
|
|
|
|
module.exports = { |
|
|
|
|
'@disabled': true, |
|
|
|
|
before: function (browser: NightwatchBrowser, done: VoidFunction) { |
|
|
|
|
init(browser, done) |
|
|
|
|
}, |
|
|
|
|
UploadToGists: function (browser: NightwatchBrowser) { |
|
|
|
|
'UploadToGists #group1': function (browser: NightwatchBrowser) { |
|
|
|
|
/* |
|
|
|
|
- set the access token |
|
|
|
|
- publish to gist |
|
|
|
@ -68,7 +69,7 @@ module.exports = { |
|
|
|
|
*/ |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
'Load Gist Modal': function (browser: NightwatchBrowser) { |
|
|
|
|
'Load Gist Modal #group1': function (browser: NightwatchBrowser) { |
|
|
|
|
browser.clickLaunchIcon('home') |
|
|
|
|
.waitForElementVisible('*[data-id="remixIdeIconPanel"]', 10000) |
|
|
|
|
.clickLaunchIcon('filePanel') |
|
|
|
@ -84,7 +85,7 @@ module.exports = { |
|
|
|
|
.modalFooterCancelClick('gisthandler') |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
'Display Error Message For Invalid Gist ID': function (browser: NightwatchBrowser) { |
|
|
|
|
'Display Error Message For Invalid Gist ID #group1': function (browser: NightwatchBrowser) { |
|
|
|
|
browser |
|
|
|
|
.pause(1000) |
|
|
|
|
.waitForElementVisible('*[data-id="remixIdeIconPanel"]', 10000) |
|
|
|
@ -101,7 +102,7 @@ module.exports = { |
|
|
|
|
.modalFooterOKClick('gisthandler') |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
'Display Error Message For Missing Gist Token When Publishing': function (browser: NightwatchBrowser) { |
|
|
|
|
'Display Error Message For Missing Gist Token When Publishing #group1': function (browser: NightwatchBrowser) { |
|
|
|
|
browser |
|
|
|
|
.pause(1000) |
|
|
|
|
.waitForElementVisible('*[data-id="remixIdeIconPanel"]', 10000) |
|
|
|
@ -125,7 +126,7 @@ module.exports = { |
|
|
|
|
.click('[data-id="fileSystemModalDialogModalFooter-react"] .modal-ok') |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
'Import From Gist For Valid Gist ID': function (browser: NightwatchBrowser) { |
|
|
|
|
'Import From Gist For Valid Gist ID #group1': function (browser: NightwatchBrowser) { |
|
|
|
|
browser |
|
|
|
|
.waitForElementVisible('*[data-id="remixIdeIconPanel"]', 10000) |
|
|
|
|
.clickLaunchIcon('settings') |
|
|
|
|