|
|
|
@ -91,6 +91,9 @@ module.exports = { |
|
|
|
|
.clickLaunchIcon('filePanel') |
|
|
|
|
.scrollAndClick('*[data-id="landingPageImportFromGistButton"]') |
|
|
|
|
.waitForElementVisible('*[data-id="gisthandlerModalDialogModalBody-react"] input[data-id="modalDialogCustomPromp"]') |
|
|
|
|
.execute(() => { |
|
|
|
|
(document.querySelector('*[data-id="gisthandlerModalDialogModalBody-react"] input[data-id="modalDialogCustomPromp"]') as any).focus() |
|
|
|
|
}, [], () => {})
|
|
|
|
|
.setValue('*[data-id="gisthandlerModalDialogModalBody-react"] input[data-id="modalDialogCustomPromp"]', testData.invalidGistId) |
|
|
|
|
.modalFooterOKClick('gisthandler') |
|
|
|
|
.waitForElementVisible('*[data-id="gisthandlerModalDialogModalBody-react"]') |
|
|
|
@ -131,9 +134,12 @@ module.exports = { |
|
|
|
|
.click('[data-id="settingsTabSaveGistToken"]') |
|
|
|
|
.clickLaunchIcon('filePanel') |
|
|
|
|
.scrollAndClick('*[data-id="landingPageImportFromGistButton"]') |
|
|
|
|
.waitForElementVisible('*[data-id="modalDialogCustomPromptText"]') |
|
|
|
|
.setValue('*[data-id="modalDialogCustomPromptText"]', testData.validGistId) |
|
|
|
|
.modalFooterOKClick() |
|
|
|
|
.waitForElementVisible('*[data-id="gisthandlerModalDialogModalBody-react"] input[data-id="modalDialogCustomPromp"]') |
|
|
|
|
.execute(() => { |
|
|
|
|
(document.querySelector('*[data-id="gisthandlerModalDialogModalBody-react"] input[data-id="modalDialogCustomPromp"]') as any).focus() |
|
|
|
|
}, [], () => {})
|
|
|
|
|
.setValue('*[data-id="gisthandlerModalDialogModalBody-react"] input[data-id="modalDialogCustomPromp"]', testData.validGistId) |
|
|
|
|
.modalFooterOKClick('gisthandler') |
|
|
|
|
.openFile(`gist-${testData.validGistId}/README.txt`) |
|
|
|
|
.waitForElementVisible(`div[title='default_workspace/gist-${testData.validGistId}/README.txt']`) |
|
|
|
|
.assert.containsText(`div[title='default_workspace/gist-${testData.validGistId}/README.txt'] > span`, 'README.txt') |
|
|
|
|