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

Commit

Permalink
[JENKINS-37323] fix merge problem and make sure we returning always s…
Browse files Browse the repository at this point in the history
…elf and not coditional
  • Loading branch information
scherler committed Sep 8, 2016
1 parent d3547ca commit b1ec3e1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/main/js/page_objects/blueocean/bluePipelineRunDetail.js
Expand Up @@ -48,8 +48,8 @@ const notEmptyHelper = function (selector, self, expectedMinimum) {
} else {
self.assert.equal(codeCollection.value.length > 0, true);
}
return self;
});
return self;
};
module.exports = {
elements: {
Expand Down Expand Up @@ -187,8 +187,8 @@ module.exports.commands = [{
// current, this is the reason, why no url change is triggered. The question remains
// why that is happening
// this.pause(10000)
return self;
})
return self;
},
/*
* Navigate to a certain tab by clicking on it
Expand Down Expand Up @@ -222,9 +222,9 @@ module.exports.commands = [{
self.validateLoading();
// did we changed the url on change?
self.assert.equal(responseInner.value.includes('start=0'), true);
return self;
})
})
return self;

},
/*
Expand All @@ -247,6 +247,7 @@ module.exports.commands = [{
self.waitForElementVisible('@progressBar');
// when we are loading the code element should not be present
this.expect.element('@code').to.not.be.present.before(1000);
return self;

},
/*
Expand All @@ -267,7 +268,6 @@ module.exports.commands = [{
self.waitForElementVisible('@logConsole');
const selector = '.logConsole';
return notEmptyHelper(selector, self, expectedMinimum);
return self;
},
/*
* validate that the log console is present
Expand Down Expand Up @@ -414,8 +414,8 @@ module.exports.commands = [{
// the scrollHeight has to be higher 0 to indicate that we have scrolled
browser.assert.equal(result.value > 0, true);
// to make component chain-able we will return self - part 2
return self;
});
return self;
}

}];
2 changes: 1 addition & 1 deletion src/test/js/log-karaoke/stages.js
Expand Up @@ -133,7 +133,7 @@ module.exports = {
const blueRunDetailPage = browser.page.bluePipelineRunDetail().forRun(useCase.name, 'jenkins', 1);
blueRunDetailPage.clickTab('artifacts');
blueRunDetailPage
.validateNotEmptyArtifacts(browser, 1)
.validateNotEmptyArtifacts(1)
.waitForElementVisible('@artifactTable', createCallbackWrapper(callback));
}, function(err, results) {
// Check whether the changes tab shows emptyState for only one case
Expand Down

0 comments on commit b1ec3e1

Please sign in to comment.