|
|
@ -22,11 +22,11 @@ module.exports = { |
|
|
|
.waitForElementVisible('button[data-id="landingPageImportFromGitHubButton"]') |
|
|
|
.waitForElementVisible('button[data-id="landingPageImportFromGitHubButton"]') |
|
|
|
.pause(1000) |
|
|
|
.pause(1000) |
|
|
|
.click('button[data-id="landingPageImportFromGitHubButton"]') |
|
|
|
.click('button[data-id="landingPageImportFromGitHubButton"]') |
|
|
|
.waitForElementVisible('*[data-id="homeTabModalDialogModalTitle-react"]') |
|
|
|
.waitForElementVisible('*[data-id="fileSystemModalDialogModalTitle-react"]') |
|
|
|
.assert.containsText('*[data-id="homeTabModalDialogModalTitle-react"]', 'Import from GitHub') |
|
|
|
.assert.containsText('*[data-id="homeTabModalDialogModalTitle-react"]', 'Import from GitHub') |
|
|
|
.waitForElementVisible('*[data-id="homeTabModalDialogModalBody-react"]') |
|
|
|
.waitForElementVisible('*[data-id="fileSystemModalDialogModalBody-react"]') |
|
|
|
.assert.containsText('*[data-id="homeTabModalDialogModalBody-react"]', 'Enter the github URL you would like to load.') |
|
|
|
.assert.containsText('*[data-id="fileSystemModalDialogModalBody-react"]', 'Enter the github URL you would like to load.') |
|
|
|
.waitForElementVisible('input[data-id="homeTabModalDialogCustomPromptText"]') |
|
|
|
.waitForElementVisible('input[data-id="modalDialogCustomPromptTextClone"]') |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
'Display Error Message For Invalid GitHub URL Modal #group1': function (browser: NightwatchBrowser) { |
|
|
|
'Display Error Message For Invalid GitHub URL Modal #group1': function (browser: NightwatchBrowser) { |
|
|
@ -35,8 +35,8 @@ module.exports = { |
|
|
|
(document.querySelector('input[data-id="homeTabModalDialogCustomPromptText"]') as any).focus() |
|
|
|
(document.querySelector('input[data-id="homeTabModalDialogCustomPromptText"]') as any).focus() |
|
|
|
}, [], () => { }) |
|
|
|
}, [], () => { }) |
|
|
|
.setValue('input[data-id="homeTabModalDialogCustomPromptText"]', testData.invalidURL) |
|
|
|
.setValue('input[data-id="homeTabModalDialogCustomPromptText"]', testData.invalidURL) |
|
|
|
.waitForElementVisible('*[data-id="homeTab-modal-footer-ok-react"]') |
|
|
|
.waitForElementVisible('*[data-id="cloneGitRepositoryModalDialogModalFooter-react"]') |
|
|
|
.click('[data-id="homeTab-modal-footer-ok-react"]') // submitted
|
|
|
|
.click('[data-id="cloneGitRepository-modal-footer-ok-react"]') // submitted
|
|
|
|
//.waitForElementVisible('*[data-shared="tooltipPopup"]')
|
|
|
|
//.waitForElementVisible('*[data-shared="tooltipPopup"]')
|
|
|
|
//.waitForElementContainsText('*[data-shared="tooltipPopup"] span', 'not found ' + testData.invalidURL)
|
|
|
|
//.waitForElementContainsText('*[data-shared="tooltipPopup"] span', 'not found ' + testData.invalidURL)
|
|
|
|
}, |
|
|
|
}, |
|
|
|