Skip to content
Permalink
Browse files
[JENKINS-39761] Check that only 100 artifacts are shown
  • Loading branch information
imeredith committed Dec 4, 2016
1 parent d0a0fcd commit 5e8d8756e90cda159ea471d8eb4ef83618b65319
Showing with 43 additions and 0 deletions.
  1. +43 −0 src/test/js/artifacts/artifacts.js
@@ -0,0 +1,43 @@
const jobName = 'pipeRunArtifacts';
/** @module pipelineRunning
* @memberof notMultibranch
* @description Check can run non multibranch pipelines from activity
*/
module.exports = {
/** Create pipeline Job */
'Step 01': function (browser) {
const pipelinesCreate = browser.page.pipelineCreate().navigate();
// we have used the noStages script as basis
pipelinesCreate.createPipeline(jobName, 'lots-of-artifacts.groovy');
},

/** Build Pipeline Job*/
'Step 02': function (browser) {
const pipelinePage = browser.page.jobUtils().forJob(jobName);
pipelinePage.buildStarted(function() {
// Reload the job page and check that there was a build done.
pipelinePage
.waitForElementVisible('div#pipeline-box')
.forRun(1)
.waitForElementVisible('@executer');
});
},

/** Check Job Blue Ocean Pipeline Activity Page has run - stop follow
* need to click on an element so the up_arrow takes place in the window
* */
'Step 03': function (browser) {
const blueActivityPage = browser.page.bluePipelineActivity().forJob(jobName, 'jenkins');
// Check the run itself
blueActivityPage.waitForRunSuccessVisible(`${jobName}-1`);

const blueRunDetailPage = browser.page.bluePipelineRunDetail().forRun(jobName, 'jenkins', 1);

blueRunDetailPage.waitForElementVisible('div.header.success');

blueRunDetailPage.clickTab('artifacts');

browser.assert.containsText('.artifactListingLimited', 'Only showing the first 100 artifacts');
}

};

0 comments on commit 5e8d875

Please sign in to comment.