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

Commit

Permalink
[JENKINS-39761] Check that only 100 artifacts are shown
Browse files Browse the repository at this point in the history
  • Loading branch information
imeredith committed Dec 4, 2016
1 parent d0a0fcd commit 5e8d875
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions 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.