Skip to content
This repository has been archived by the owner on Jan 4, 2023. It is now read-only.

Commit

Permalink
[JENKINS-40627] Check that we show emtpy states for multibranch jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
imeredith committed Feb 3, 2017
1 parent 27c3186 commit c5bbabf
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions src/test/js/multibranch/emptyStates.js
@@ -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');

}
}

0 comments on commit c5bbabf

Please sign in to comment.