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.
[JENKINS-40627] Check that we show emtpy states for multibranch jobs
- Loading branch information
Showing
1 changed file
with
27 additions
and
0 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,27 @@ | ||
const jobName = 'emptyStates'; | ||
/** @module emptyStates | ||
* @memberof multibranch | ||
* @description Check empty states for multibranch jobs | ||
*/ | ||
module.exports = { | ||
|
||
'Step 01: Create job': (browser) => { | ||
var multibranchCreate = browser.page.multibranchCreate().navigate(); | ||
multibranchCreate.createBranch(jobName); | ||
}, | ||
|
||
'Step 02: Check emptyStates': (browser) => { | ||
const blueActivityPage = browser.page.bluePipelineActivity().forJob(jobName, 'jenkins'); | ||
|
||
blueActivityPage.waitForElementVisible('@emptyStateShoes'); | ||
|
||
blueActivityPage.clickTab('branches'); | ||
|
||
blueActivityPage.assert.containsText('.empty-state-content', 'Branch out'); | ||
|
||
blueActivityPage.clickTab('pr'); | ||
|
||
blueActivityPage.assert.containsText('.empty-state-content', 'Push me'); | ||
|
||
} | ||
} |