Module: bluePipelineRunDetails

Represents the detail page of a job in blueocean

Example

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

Methods


<inner> assertBasicLayoutOkay()

Different test on general elements that should be visible on the page

Returns:

self - nightwatch page object

Type
Object

<inner> assertLogTitle(expected)

Validate that the log title contains the expected value

Parameters:
Name Type Description
expected String

the title we await

Returns:

self - nightwatch page object

Type
Object

<inner> assertTitle(expected)

Validate that the detail title contains the expected value

Parameters:
Name Type Description
expected String

the title we await

Returns:

self - nightwatch page object

Type
Object

<inner> authorsIsCondensed()

validate that the authors in the modal header are condensed

Returns:

self - nightwatch page object

Type
Object

<inner> authorsIsNotCondensed()

validate that the authors in the modal header are not condensed

Returns:

self - nightwatch page object

Type
Object

<inner> authorsIsNotSet()

validate that the authors are not set - in case of no scm changes

Returns:

self - nightwatch page object

Type
Object

<inner> clickFirstResultItem(expand)

Locate and click the first result item

Parameters:
Name Type Description
expand boolean

if undefined or true we will assert whether an expand has happened

Returns:

self - nightwatch page object

Type
Object

<inner> clickFirstResultItemFailure(expand)

Locate and click the first result item that has failed

Parameters:
Name Type Description
expand boolean

if undefined or true we will assert whether an expand has happened

Returns:

self - nightwatch page object

Type
Object

<inner> clickFullLog(tab)

Click the "Full Log" button and validate that we have changed the url

Parameters:
Name Type Description
tab String

tabName

Returns:

self - nightwatch page object

Type
Object

<inner> clickReRunButton()

failed pipelines have a rerun/replace button button


<inner> clickTab(tab)

Navigate to a certain tab by clicking on it

Parameters:
Name Type Description
tab String

tabName

Returns:

self - nightwatch page object

Type
Object

<inner> closeModal( [urlFragment])

Close the modal view

Parameters:
Name Type Argument Description
urlFragment String <optional>

expected URL fragment to test for after close.

Returns:

self - nightwatch page object

Type
Object

<inner> forNode(id)

Navigate to a certain node of a detail page of a certain pipeline graph,

Parameters:
Name Type Description
id String

node id

Returns:

self - nightwatch page object

Type
Object

<inner> forRun(jobName, orgName, branchName [, buildNumber])

Navigate to a certain detail page, calculated based on diferent params

Parameters:
Name Type Argument Description
jobName String
orgName String
branchName String | Number

either the branchName o the buildNumber

buildNumber Number <optional>
Returns:

self - nightwatch page object

Type
Object
Example
const blueRunDetailPage = browser.page.bluePipelineRunDetail()
     .forRun(jobNameFreestyle, 'jenkins', 1);

<inner> fullLogButtonNotPresent()

validate that the button for the full log is not present

Returns:

self - nightwatch page object

Type
Object

<inner> pageUrl(relative)

Will return either a relative or an absolute URL

Parameters:
Name Type Description
relative Boolean
Returns:

url

Type
String

<inner> tabUrl(tabName)

Navigate to a certain tab by going directly to the url

Parameters:
Name Type Description
tabName String
Returns:

self - nightwatch page object

Type
Object

<inner> validateEmpty()

validate that the emptyState box is present

Returns:

self - nightwatch page object

Type
Object

<inner> validateFailingTests( [expectedMinimum])

validate that the we have failing tests

Parameters:
Name Type Argument Description
expectedMinimum Number <optional>
Returns:

self - nightwatch page object

Type
Object

<inner> validateGraph()

validate that the pipeline graph is present

Returns:

self - nightwatch page object

Type
Object

<inner> validateLoading()

validate that show the progressBar to indicate loading

Returns:

self - nightwatch page object

Type
Object

<inner> validateLog()

validate that the log console is present

Returns:

self - nightwatch page object

Type
Object

<inner> validateLogConsole( [position])

Nightwatch command to test whether log lines are navigable

Parameters:
Name Type Argument Description
position Number <optional>

which log line do we want to click


<inner> validateNotEmptyArtifacts( [expectedMinimum])

validate that the artifact table has entries

Parameters:
Name Type Argument Description
expectedMinimum Number <optional>
Returns:

self - nightwatch page object

Type
Object

<inner> validateNotEmptyChanges( [expectedMinimum])

validate that the changes table has entries

Parameters:
Name Type Argument Description
expectedMinimum Number <optional>
Returns:

self - nightwatch page object

Type
Object

<inner> validateNotRunningResults()

We are validating that there are no running nodes visible anymore

Returns:

self - nightwatch page object

Type
Object

<inner> validateQueued()

validate that the emptyState box contains a span which indicates queued state

Returns:

self - nightwatch page object

Type
Object

<inner> validateScrollToBottom()

test whether the content container has scrolled to the bottom - using scrollHeight

Returns:

self - nightwatch page object

Type
Object

<inner> validateSteps()

validate that we have some steps to show

Returns:

self - nightwatch page object

Type
Object

<inner> validateSupportedInputTypes()

Validate that all supported input parameter are present