This repository has been archived by the owner on Jan 4, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into bug/JENKINS-39992-d…
…upe-rows
- Loading branch information
Showing
5 changed files
with
97 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/** @module blueNotFound | ||
* @memberof page_objects | ||
* @description Represents the default 404 page in blueocean | ||
* | ||
* @example | ||
* browser.page.blueNotFound().assertBasicLayoutOkay(); | ||
* */ | ||
module.exports = { | ||
elements: { | ||
fullscreenDiv: '.fullscreen.not-found', | ||
title: '.fullscreen.not-found .message-box h3', | ||
message: '.fullscreen.not-found .message-box .message', | ||
link: '.fullscreen.not-found .message-box .actions a', | ||
} | ||
}; | ||
module.exports.commands = [{ | ||
/** | ||
* Different test on general elements that should be visible on the page | ||
* @returns {Object} self - nightwatch page object | ||
*/ | ||
assertBasicLayoutOkay: function (callback) { | ||
this.waitForElementVisible('@fullscreenDiv'); | ||
this.waitForElementVisible('@title'); | ||
this.waitForElementVisible('@message'); | ||
this.waitForElementVisible('@link', callback); | ||
}, | ||
|
||
}]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/** @module freestyle | ||
* @memberof karaoke | ||
* @description TEST: Branch and PR tabs show the correct display. | ||
*/ | ||
module.exports = { | ||
/** Create freestyle Job "hijo"*/ | ||
'Step 01': function (browser) { | ||
const freestyleCreate = browser.page.freestyleCreate().navigate(); | ||
freestyleCreate.createFreestyle('nonmultibranch_freestyle', 'freestyle.sh'); | ||
}, | ||
'Step 02': function (browser) { | ||
const blueActivityPage = browser.page.bluePipelineActivity().forJob('nonmultibranch_freestyle', 'jenkins'); | ||
|
||
blueActivityPage.clickTab('branches'); | ||
|
||
blueActivityPage.assert.containsText('.empty-state-content', 'Branches are unsupported'); | ||
}, | ||
|
||
'Step 03': function (browser) { | ||
const blueActivityPage = browser.page.bluePipelineActivity().forJob('nonmultibranch_freestyle', 'jenkins'); | ||
|
||
blueActivityPage.clickTab('pr'); | ||
|
||
blueActivityPage.assert.containsText('.empty-state-content', 'Pull Requests are unsupported'); | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/** @module freestyle | ||
* @memberof testcases | ||
* @description We are testing different REGRESSIONS that had appeared, so they do not appear again. | ||
* | ||
* @see {@link module:freestyle.activityTabs} | ||
*/ | ||
module.exports = { | ||
|
||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters