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

Commit

Permalink
Browse files Browse the repository at this point in the history
[JENKINS-38597] cleanup
  • Loading branch information
Cliff Meyers committed Feb 2, 2017
1 parent 9a70504 commit 79ad6ae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
10 changes: 3 additions & 7 deletions src/main/js/page_objects/blueocean/bluePipelineCreate.js
@@ -1,10 +1,10 @@
/**
* @module blueCreate
* @memberof page_objects
* @description Represents the "create piepline" page
* @description Represents the "create pipeline" page
*
* @example
* var blueCreatePage = browser.page.blueCreate().navigate();
* var blueCreatePage = browser.page.bluePipelineCreate().navigate();
* */
const url = require('../../util/url');

Expand All @@ -21,13 +21,9 @@ module.exports = {
}
};

// Nightwatch commands.
// http://nightwatchjs.org/guide#writing-commands
// Seems like we could use a Nightwatch assertions for some of these, but then that would be global.
// Prefer it this way, local to the page.
module.exports.commands = [{
assertCompleted: function() {
this.waitForElementVisible('.last-step.complete');
this.waitForElementVisible('.git-step-completed');
this.waitForElementVisible('@openPipelineButton');
}
}];
3 changes: 1 addition & 2 deletions src/test/js/creation/git/localRepo.js
Expand Up @@ -3,7 +3,7 @@
* @memberof git
* @description
*
* Tests: test when creating a pipeline from a local Git repo works
* Tests: test that creating a pipeline from a local Git repo works
*/
const git = require("../../../../main/js/api/git");
const path = require("path");
Expand All @@ -16,7 +16,6 @@ const sourceRep = './src/test/resources/multibranch_2';
module.exports = {
before: function(browser, done) {
browser.waitForJobDeleted(jobName, function () {
// we creating a git repo in target based on the src repo (see above)
git.createRepo(sourceRep, pathToRepo)
.then(function () {
git.createBranch('feature/alpha', pathToRepo)
Expand Down

0 comments on commit 79ad6ae

Please sign in to comment.