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

Commit

Permalink
Jenkins 36771 (#23)
Browse files Browse the repository at this point in the history
* Debug logging of SSE events

* More on logging (client and server side)

* Better SSE connection disconnect cleanup

* Update to latest SSE gateway client api

* Use a relative path to logging.properties file

* Remove misleading seleium docs in readme (#11)

* [master] Fix last test by turning on cssPath again before finishing last test

* [master] try to fix freestyle error validation on server

* [master] comment the flaky test until I come up with something better. stop karaoke is covered in other tests as well

* [master] Add more comments to code

* [master] Change test to test positive. stop karaoke via keyUp is tested in noStage

* [JENKINS-36771] Implement validation that the progressbar is visible while loading but the code block not
  • Loading branch information
scherler committed Aug 17, 2016
1 parent 2f8c2a5 commit 0a25e2d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/main/js/page_objects/blueocean/bluePipelineRunDetail.js
Expand Up @@ -4,6 +4,8 @@ var url = require('../../util/url');

module.exports = {
elements: {
code: 'code',
progressBar: 'div.loadingContainer',
logHeader: '.dialog .log-header',
fullLog: 'div.fullLog a',
followAlongOn: '.step-scroll-area.follow-along-on',
Expand Down Expand Up @@ -57,6 +59,8 @@ module.exports.commands = [{
self.assert.equal(response.status, 0);
// is the "full log" link gone?
self.fullLogButtonNotPresent();
// is the progressbar visible and not the code?
self.validateLoading();
// did we changed the url on change?
self.assert.equal(response.value.includes('start=0'), true);
return self;
Expand All @@ -66,5 +70,12 @@ module.exports.commands = [{
// is the "full log" link gone?
this.expect.element('@fullLog').to.not.be.present.before(1000);
return this;
},
validateLoading: function () {
// when we are loading the code element should not be present
this.expect.element('@code').to.not.be.present.before(1000);
// but the progressBar should be
this.expect.element('@progressBar').to.be.present.before(1000);

}
}];

0 comments on commit 0a25e2d

Please sign in to comment.