|
|
|
@ -364,6 +364,7 @@ module.exports = { |
|
|
|
|
.setValue('*[data-id="githubToken"]', 'invalidtoken') |
|
|
|
|
.setValue('*[data-id="gitubUsername"]', 'git') |
|
|
|
|
.setValue('*[data-id="githubEmail"]', 'git@example.com') |
|
|
|
|
.pause() |
|
|
|
|
.click('*[data-id="saveGitHubCredentials"]') |
|
|
|
|
.modalFooterOKClick('github-credentials-error') |
|
|
|
|
}, |
|
|
|
@ -382,6 +383,7 @@ module.exports = { |
|
|
|
|
.click('*[data-id="load-more-commits"]') |
|
|
|
|
.waitForElementVisible('*[data-id="loader-indicator"]') |
|
|
|
|
.waitForElementNotPresent('*[data-id="loader-indicator"]') |
|
|
|
|
.pause() |
|
|
|
|
.elements('xpath', '//*[@data-id="commits-current-branch-master"]//*[@data-type="commit-summary"]', function (result) { |
|
|
|
|
console.log('Number of commit-summary elements:', (result.value as any).length); |
|
|
|
|
browser.assert.ok((result.value as any).length > 2) |
|
|
|
|