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-40662] add a test case for when user is deep-linked to run d…
…etails in the URL form of :org/:pipeline/:branch/:runId and the modal doesn't close properly
- Loading branch information
Cliff Meyers
committed
Jan 3, 2017
1 parent
e703781
commit a7765b9
Showing
2 changed files
with
46 additions
and
9 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
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,38 @@ | ||
/** | ||
* @module runDetailsDeepLink | ||
* @memberof edgeCases | ||
* @description | ||
* | ||
* Tests: test whether navigating to Run Details without specifying a tab allows the close button to work correctly. | ||
* | ||
* REGRESSION covered: | ||
* | ||
* @see {@link https://issues.jenkins-ci.org/browse/JENKINS-40662|JENKINS-40662} Deep-linking to Run Details | ||
* screen with no tab specified causes problem when closing modal | ||
*/ | ||
const jobName = 'runDetailsDeepLink'; | ||
module.exports = { | ||
/** Create Pipeline Job "runDetailsDeepLink" */ | ||
'Step 01': function (browser) { | ||
const pipelinesCreate = browser.page.pipelineCreate().navigate(); | ||
pipelinesCreate.createPipeline(jobName, 'initialStage.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 */ | ||
'Step 03': function (browser) { | ||
const blueActivityPage = browser.page.bluePipelineActivity().forJob(jobName, 'jenkins'); | ||
blueActivityPage.waitForRunRunningVisible(jobName + '-1'); | ||
const blueRunDetailPage = browser.page.bluePipelineRunDetail().forRun(jobName, 'jenkins', 1); | ||
blueRunDetailPage.closeModal('/activity'); | ||
}, | ||
}; |