This repository has been archived by the owner on Jan 4, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX JENKINS-39809_404_pages_appear_only_in_pipelinePage_children] (#71)
* [JENKINS-39809_404_pages_appear_only_in_pipelinePage_children] Add notFound page. Better description of test case. Add 404 tests for differrent urls. * [JENKINS-39809_404_pages_appear_only_in_pipelinePage_children] smaller tweak * [JENKINS-39809_404_pages_appear_only_in_pipelinePage_children] Add test to trigger 404, add urls to be added when 404 is fixed for those components
- Loading branch information
Showing
2 changed files
with
61 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/** @module blueNotFound | ||
* @memberof page_objects | ||
* @description Represents the default 404 page in blueocean | ||
* | ||
* @example | ||
* browser.page.blueNotFound().assertBasicLayoutOkay(); | ||
* */ | ||
module.exports = { | ||
elements: { | ||
fullscreenDiv: '.fullscreen.not-found', | ||
title: '.fullscreen.not-found .message-box h3', | ||
message: '.fullscreen.not-found .message-box .message', | ||
link: '.fullscreen.not-found .message-box .actions a', | ||
} | ||
}; | ||
module.exports.commands = [{ | ||
/** | ||
* Different test on general elements that should be visible on the page | ||
* @returns {Object} self - nightwatch page object | ||
*/ | ||
assertBasicLayoutOkay: function (callback) { | ||
this.waitForElementVisible('@fullscreenDiv'); | ||
this.waitForElementVisible('@title'); | ||
this.waitForElementVisible('@message'); | ||
this.waitForElementVisible('@link', callback); | ||
}, | ||
|
||
}]; |
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