Represents the listing of the activities in blueocean
Example
const blueActivityPage = browser.page.bluePipelineActivity().forJob('my-pipeline', 'jenkins');
Methods
-
<inner> assertActivitiesToBeEqual(expected)
-
Count the activities in the table and compare them with the expected value.
Parameters:
Name Type Description expected
Number -
<inner> assertBasicLayoutOkay()
-
Different test on general elements that should be visible on the page
Returns:
self - nightwatch page object
- Type
- Object
-
<inner> assertEmptyLayoutOkay()
-
Different test on general elements that should be visible on an empty activity page
Returns:
self - nightwatch page object
- Type
- Object
-
<inner> assertStageGraphShows()
-
Inspect that result screen runs, shows a stage graph, and completes.
-
<inner> clickRunButtonAndOpenDetail()
-
On Activity Page click the run button, then click the open in toast and then validate that we are on the detail page
Returns:
self - nightwatch page object
- Type
- Object
-
<inner> clickTab(tab)
-
Click css selector of a specific tab
Parameters:
Name Type Description tab
string the tab we want to select
Returns:
self - nightwatch page object
- Type
- Object
-
<inner> forJob(jobName, branchName)
-
Returns the config page of a certain job
Parameters:
Name Type Description jobName
String name of the job to configure
branchName
String name of the branch (may be the same as jobname, in case of freestyle
Returns:
self - nightwatch page object
- Type
- Object
-
<inner> waitForRunFailureVisible(runName)
-
Wait for a specific run to appear in the activity table as a failure
Parameters:
Name Type Description runName
name of the job
-
<inner> waitForRunPausedVisible(runName [, callback])
-
Wait for a specific run to appear in the activity table as paused
Parameters:
Name Type Argument Description runName
name of the job
callback
function <optional>
callback to be invoke when finished, will pass the sse event to the callback
-
<inner> waitForRunRunningVisible(runName [, callback])
-
Wait for a specific run to appear in the activity table as running
Parameters:
Name Type Argument Description runName
name of the job
callback
function <optional>
callback to be invoke when finished, will pass the sse event to the callback
-
<inner> waitForRunSuccessVisible(runName)
-
Wait for a specific run to appear in the activity table as a success
Parameters:
Name Type Description runName
name of the job
-
<inner> waitForRunUnstableVisible(runName)
-
Wait for a specific run to appear in the activity table as unstable
Parameters:
Name Type Description runName
name of the job