Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP Tables update #1028

Merged
merged 129 commits into from Jun 15, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
129 commits
Select commit Hold shift + click to select a range
876cd6d
Squashed commit of the following:
sophistifunk Mar 6, 2017
653dfb7
feature/jenkins-41833-new-table-dashboard * Lint 'errors'
sophistifunk Mar 6, 2017
cb15355
Merge branch 'master' into feature/jenkins-41833-new-table-dashboard
sophistifunk Mar 7, 2017
5196c27
feature/jenkins-41833-new-table-dashboard * Fix tests
sophistifunk Mar 7, 2017
8f68ecd
Merge branch 'feature/jenkins-41833-new-table-dashboard' into josh/je…
sophistifunk Mar 15, 2017
c27fea2
josh/jenkins-41833-new-table-migration-2 * WIP so I can separate the …
sophistifunk Mar 16, 2017
2ff45e1
Merge branch 'master' into josh/jenkins-41833-new-table-migration-2
sophistifunk Mar 17, 2017
a48981e
josh/jenkins-41833-new-table-migration-2 WIP need to merge
sophistifunk Mar 20, 2017
44b5213
Merge remote-tracking branch 'github-jenkins/master' into josh/jenkin…
sophistifunk Mar 20, 2017
9733cfd
josh/jenkins-41833-new-table-migration-2 * fix a typo in test extension
sophistifunk Mar 21, 2017
ae1e9e1
josh/jenkins-41833-new-table-migration-2 * Install updated js-extensions
sophistifunk Mar 21, 2017
e070a14
josh/jenkins-41833-new-table-migration-2 * WIP, need to jump around b…
sophistifunk Mar 21, 2017
1ae479e
Merge branch 'master' into josh/jenkins-41833-new-table-migration-2
sophistifunk Mar 22, 2017
c35cdf3
josh/jenkins-41833-new-table-migration-2 * Clean up a little bit of s…
sophistifunk Mar 23, 2017
ea31a84
josh/jenkins-41833-new-table-migration-2 * WIP - need to change branches
sophistifunk Mar 28, 2017
71759a3
Merge branch 'master' into josh/jenkins-41833-new-table-migration-2
sophistifunk Mar 29, 2017
49f0e2a
josh/jenkins-41833-new-table-migration-2 * Update main JDL dep
sophistifunk Mar 29, 2017
50bbfb3
Merge branch 'master' into josh/jenkins-41833-new-table-migration-2
sophistifunk Mar 31, 2017
8b338d3
Merge remote-tracking branch 'github-jenkins/master' into josh/jenkin…
sophistifunk Apr 3, 2017
18dfe55
task/update-dash-card-padding * Does what it says on the box
sophistifunk Apr 3, 2017
51673ae
Merge branch 'task/update-dash-card-padding' into josh/jenkins-41833-…
sophistifunk Apr 3, 2017
42af5f1
josh/jenkins-41833-new-table-migration-2 * Clean up some merge issues…
sophistifunk Apr 4, 2017
a61463a
Update to beta version of builder so I can see the runtime error
sophistifunk Apr 4, 2017
7152ab6
* Add the "dev" command line swith to bin/cleanInstall so it can upda…
sophistifunk Apr 4, 2017
aa61d59
Merge branch 'master' into josh/jenkins-41833-new-table-migration-2
sophistifunk Apr 4, 2017
ad21a96
Merge branch 'task/cleaninstall-polish' into josh/jenkins-41833-new-t…
sophistifunk Apr 4, 2017
aaf1e3f
Fuck knows. Random changes to shrinkwrap
sophistifunk Apr 4, 2017
72c1059
Merge branch 'master' into josh/jenkins-41833-new-table-migration-2
sophistifunk Apr 4, 2017
c54d34e
Harmonise deps
sophistifunk Apr 4, 2017
1f91bed
Update corejs' dependency on js-extensions, and update core-js dep to…
sophistifunk Apr 5, 2017
f204576
josh/jenkins-41833-new-table-migration-2 * WIP need to splat drive :(
sophistifunk Apr 6, 2017
2faa5e2
Merge remote-tracking branch 'github-jenkins/master' into josh/jenkin…
sophistifunk Apr 9, 2017
9e10826
josh/jenkins-41833-new-table-migration-2 * Finally running again
sophistifunk Apr 10, 2017
94ad633
josh/jenkins-41833-new-table-migration-2 * Showing correct action but…
sophistifunk Apr 11, 2017
36699a9
josh/jenkins-41833-new-table-migration-2 * Support multibranch in Act…
sophistifunk Apr 11, 2017
b368e14
josh/jenkins-41833-new-table-migration-2 * Action column in Activity …
sophistifunk Apr 11, 2017
7ada4f8
Merge remote-tracking branch 'github-jenkins/master' into josh/jenkin…
sophistifunk Apr 19, 2017
c6e617d
josh/jenkins-41833-new-table-migration-2 (bad commit, but I need to s…
sophistifunk Apr 25, 2017
b4e1709
Merge branch 'master' into josh/jenkins-41833-new-table-migration-2
sophistifunk Apr 26, 2017
e5091dd
josh/jenkins-41833-new-table-migration-2 * Clean up some imports brok…
sophistifunk Apr 26, 2017
7ab550e
Merge branch 'master' into josh/jenkins-41833-new-table-migration-2
sophistifunk May 1, 2017
e3afbfa
Merge remote-tracking branch 'github-jenkins/master' into josh/jenkin…
sophistifunk May 2, 2017
6a59608
josh/jenkins-41833-new-table-migration-2 * Clean up a little, get bui…
sophistifunk May 2, 2017
40dc4a3
josh/jenkins-41833-new-table-migration-2 * Commit WIP on adding stori…
sophistifunk May 2, 2017
e9d2d4c
josh/jenkins-41833-new-table-migration-2 Update JDL to latest
sophistifunk May 2, 2017
dd768e9
josh/jenkins-41833-new-table-migration-2 * Finish up a simple story t…
sophistifunk May 2, 2017
b1e189b
josh/jenkins-41833-new-table-migration-2 * Clean up some, and pull in…
sophistifunk May 3, 2017
7a96284
josh/jenkins-41833-new-table-migration-2 * more cleanup, fix up some …
sophistifunk May 3, 2017
f8adbcd
josh/jenkins-41833-new-table-migration-2 * moar cleanup
sophistifunk May 3, 2017
e307eb2
Merge remote-tracking branch 'github-jenkins/master' into josh/jenkin…
sophistifunk May 3, 2017
eac470b
josh/jenkins-41833-new-table-migration-2 * Squash a couple of small T…
sophistifunk May 3, 2017
6c68658
josh/jenkins-41833-new-table-migration-2 * Fix all the lint errors in…
sophistifunk May 4, 2017
02a4575
josh/jenkins-41833-new-table-migration-2 * Fix an export problem
sophistifunk May 4, 2017
9afcdfe
Merge branch 'master' into josh/jenkins-41833-new-table-migration-2
sophistifunk May 4, 2017
c838ad7
josh/jenkins-41833-new-table-migration-2 * Update core-js to beta JDL
sophistifunk May 8, 2017
002a25b
josh/jenkins-41833-new-table-migration-2 * Update to beta core-js, an…
sophistifunk May 8, 2017
2ca5a0d
josh/jenkins-41833-new-table-migration-2 * Bump deps again
sophistifunk May 8, 2017
1ff8060
josh/jenkins-41833-new-table-migration-2 * Use new linkTo functionali…
sophistifunk May 8, 2017
5647bc7
Merge branch 'master' into josh/jenkins-41833-new-table-migration-2
sophistifunk May 10, 2017
4a14625
Merge remote-tracking branch 'github-jenkins/master' into josh/jenkin…
sophistifunk May 11, 2017
47654db
josh/jenkins-41833-new-table-migration-2 New core-js with updated (be…
sophistifunk May 11, 2017
8225799
josh/jenkins-41833-new-table-migration-2 * core-js new beta v
sophistifunk May 11, 2017
b50beae
josh/jenkins-41833-new-table-migration-2 * Update main to point to jd…
sophistifunk May 11, 2017
d25f5d5
josh/jenkins-41833-new-table-migration-2 * WIP on sorting out the iss…
sophistifunk May 12, 2017
261dc54
josh/jenkins-41833-new-table-migration-2 * Fix an issue where run but…
sophistifunk May 12, 2017
4bc0ab6
josh/jenkins-41833-new-table-migration-2 * Bring it fixed core-js
sophistifunk May 12, 2017
c229af7
Merge branch 'master' into josh/jenkins-41833-new-table-migration-2
sophistifunk May 14, 2017
38600f2
Merge remote-tracking branch 'github-jenkins/master' into josh/jenkin…
sophistifunk May 18, 2017
dd87750
josh/jenkins-41833-new-table-migration-2 * Bring in updated JDL beta
sophistifunk May 18, 2017
6905451
josh/jenkins-41833-new-table-migration-2 * Fix artifacts ATH test
sophistifunk May 19, 2017
c738007
josh/jenkins-41833-new-table-migration-2 * Remove and ignore local ur…
sophistifunk May 19, 2017
4828f94
josh/jenkins-41833-new-table-migration-2 * Fix failing tests
sophistifunk May 19, 2017
8276766
josh/jenkins-41833-new-table-migration-2 * Fixes for initialStage.js
sophistifunk May 21, 2017
1d3079b
josh/jenkins-41833-new-table-migration-2 * Fixes for testResults
sophistifunk May 22, 2017
436f4ec
josh/jenkins-41833-new-table-migration-2 * karaoke input test works n…
sophistifunk May 22, 2017
0fff9e9
josh/jenkins-41833-new-table-migration-2 * Fixes for multibranch comm…
sophistifunk May 22, 2017
bf569bf
josh/jenkins-41833-new-table-migration-2 * Fixes for multiBranchOpeni…
sophistifunk May 23, 2017
3a74c8a
josh/jenkins-41833-new-table-migration-2 * Fix freestyleRunning test …
sophistifunk May 23, 2017
c941d63
josh/jenkins-41833-new-table-migration-2 * Fixes for pipelineRUnning …
sophistifunk May 23, 2017
60f028b
josh/jenkins-41833-new-table-migration-2 * Update bluePipelines page …
sophistifunk May 23, 2017
afb1cda
josh/jenkins-41833-new-table-migration-2 * Update action screen branc…
sophistifunk May 23, 2017
baba828
Merge remote-tracking branch 'github-jenkins/master' into josh/jenkin…
sophistifunk May 23, 2017
53cb151
josh/jenkins-41833-new-table-migration-2 * Update new Java tests to u…
sophistifunk May 24, 2017
950039a
Merge remote-tracking branch 'github-jenkins/master' into josh/jenkin…
sophistifunk May 24, 2017
49927c8
josh/jenkins-41833-new-table-migration-2 * Version dance to update to…
sophistifunk May 24, 2017
02e3408
josh/jenkins-41833-new-table-migration-2 * Skeleton of new table impl…
sophistifunk May 24, 2017
0dfe217
Merge remote-tracking branch 'github-jenkins/master' into josh/jenkin…
sophistifunk May 25, 2017
fa77e9c
josh/jenkins-41833-new-table-migration-2 * Add more columns to new br…
sophistifunk May 26, 2017
e290354
Merge remote-tracking branch 'github-jenkins/master' into josh/jenkin…
sophistifunk May 26, 2017
c49ee65
Merge remote-tracking branch 'github-jenkins/master' into josh/jenkin…
sophistifunk May 29, 2017
f87277b
josh/jenkins-41833-new-table-migration-2 * Update deps again
sophistifunk May 29, 2017
c60e6e6
josh/jenkins-41833-new-table-migration-2 * Adds more details to branc…
sophistifunk May 30, 2017
934b874
josh/jenkins-41833-new-table-migration-2 * Actions back into not-run …
sophistifunk May 30, 2017
f1700fb
josh/jenkins-41833-new-table-migration-2 * Remove old branches table …
sophistifunk May 30, 2017
d68211a
josh/jenkins-41833-new-table-migration-2 * Add data-x attribs to bran…
sophistifunk May 30, 2017
913cd15
josh/jenkins-41833-new-table-migration-2 * Cleanup
sophistifunk May 30, 2017
c501f65
josh/jenkins-41833-new-table-migration-2 * Rejig table CSS a bit to a…
sophistifunk May 30, 2017
14e70c8
josh/jenkins-41833-new-table-migration-2 * Vary action column width b…
sophistifunk May 30, 2017
91bfa18
josh/jenkins-41833-new-table-migration-2 * Lint
sophistifunk May 31, 2017
0bcfd6b
Merge remote-tracking branch 'github-jenkins/master' into josh/jenkin…
sophistifunk May 31, 2017
d557cc1
josh/jenkins-41833-new-table-migration-2 * Re-delete old branches spe…
sophistifunk May 31, 2017
5633ca7
josh/jenkins-41833-new-table-migration-2 * Fixes for runDetailsBackwa…
sophistifunk Jun 1, 2017
97af48b
josh/jenkins-41833-new-table-migration-2 * Fixes for parametrisedPipe…
sophistifunk Jun 2, 2017
cc68394
josh/jenkins-41833-new-table-migration-2 * fix an issue with the bran…
sophistifunk Jun 2, 2017
1a5da49
change matching css for run button for branches
michaelneale Jun 2, 2017
0a6064d
Merge branch 'master' into josh/jenkins-41833-new-table-migration-2
sophistifunk Jun 2, 2017
5c7ff9a
Merge branch 'josh/jenkins-41833-new-table-migration-2' of https://gi…
sophistifunk Jun 2, 2017
a011da1
Merge branch 'master' into josh/jenkins-41833-new-table-migration-2
sophistifunk Jun 4, 2017
cf0a3df
josh/jenkins-41833-new-table-migration-2 * Basic-level fix for #JENKI…
sophistifunk Jun 5, 2017
8892ef3
josh/jenkins-41833-new-table-migration-2 * undo previous crappy fix f…
sophistifunk Jun 5, 2017
e49d64f
josh/jenkins-41833-new-table-migration-2 * Update matrix ath test
sophistifunk Jun 5, 2017
42fb6b2
josh/jenkins-41833-new-table-migration-2 * lint
sophistifunk Jun 5, 2017
0e69911
josh/jenkins-41833-new-table-migration-2 * Update some unit tests
sophistifunk Jun 5, 2017
1dd0459
Merge branch 'master' into josh/jenkins-41833-new-table-migration-2
sophistifunk Jun 13, 2017
6be68df
Merge remote-tracking branch 'github-jenkins/master' into josh/jenkin…
sophistifunk Jun 13, 2017
65a1e08
josh/jenkins-41833-new-table-migration-2 * Update core-js to JDL beta…
sophistifunk Jun 13, 2017
612e689
josh/jenkins-41833-new-table-migration-2 * Import new JDL beta and up…
sophistifunk Jun 13, 2017
29df75e
josh/jenkins-41833-new-table-migration-2 * Move a method because that…
sophistifunk Jun 14, 2017
a96af5e
Merge remote-tracking branch 'github-jenkins/master' into josh/jenkin…
sophistifunk Jun 14, 2017
2c96c3f
josh/jenkins-41833-new-table-migration-2 * Re-generate broken shrinkr…
sophistifunk Jun 14, 2017
4e8ffa2
josh/jenkins-41833-new-table-migration-2 * more re-releases and re-im…
sophistifunk Jun 14, 2017
b9e0035
josh/jenkins-41833-new-table-migration-2 * re-generate more broken sh…
sophistifunk Jun 14, 2017
bc76da9
josh/jenkins-41833-new-table-migration-2 * Update pipelines page to u…
sophistifunk Jun 15, 2017
6bf206b
josh/jenkins-41833-new-table-migration-2 * Change activities to use c…
sophistifunk Jun 15, 2017
8ab118b
josh/jenkins-41833-new-table-migration-2 * Update branches view to us…
sophistifunk Jun 15, 2017
52a72fd
josh/jenkins-41833-new-table-migration-2 * Fix some lint complaints, …
sophistifunk Jun 15, 2017
96df80b
josh/jenkins-41833-new-table-migration-2 * Specify fixed create-hmac …
sophistifunk Jun 15, 2017
0b1b04b
josh/jenkins-41833-new-table-migration-2 * Update other create-hmac d…
sophistifunk Jun 15, 2017
61b0078
Remove a commented out line
sophistifunk Jun 15, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions acceptance-tests/.gitignore
@@ -0,0 +1,2 @@
runner/.blueocean-ath-jenkins-url
ath-output.txt
Expand Up @@ -41,15 +41,15 @@ public void open() {

public boolean isFavorite(String job) {
WebElement favorite = wait.until(driver -> {
WebElement tr = driver.findElement(By.xpath("//tr[@data-name=\"" + job + "\"]"));
WebElement tr = driver.findElement(By.xpath("//*[@data-pipeline=\"" + job + "\"]"));
return tr.findElement(By.cssSelector(".Checkbox.Favorite > label > input"));
});
return favorite.isSelected();
}

public void toggleFavorite(String job) {
WebElement favorite = wait.until(driver -> {
WebElement tr = driver.findElement(By.xpath("//tr[@data-name=\"" + job + "\"]"));
WebElement tr = driver.findElement(By.xpath("//*[@data-pipeline=\"" + job + "\"]"));
return tr.findElement(By.cssSelector(".Checkbox.Favorite > label"));
});

Expand Down
Expand Up @@ -10,12 +10,19 @@ const pageHelper = require('../../util/pageHelper');
//oh man, I miss es6 import :(
const sanityCheck = pageHelper.sanityCheck;

function activityRowSelector(pipeline, runId) {
// Fixme: Can we parameterise the "elements" below?
return `.activity-table .JTable-row[data-pipeline='${pipeline}'][data-runid='${runId}']`;
}

const activityTableEntries = '.activity-table .JTable-row[data-pipeline]';

module.exports = {
elements: {
pipelinesNav: '.Header-topNav nav a[href="/blue/pipelines"]',
emptyStateShoes: '.PlaceholderContent.NoRuns',
activityTable: '.activity-table',
activityTableEntries: 'table.activity-table tbody tr',
activityTableEntries: activityTableEntries,
runButton: 'a.run-button',
toastOpenButton: {
selector: '//div[@class="toast default"]/a[@class="action" and text()="Open"]',
Expand Down Expand Up @@ -64,61 +71,62 @@ module.exports.commands = [{
this.assertBasicLayoutOkay(jobName);
this.waitForElementVisible('@emptyStateShoes');
},
/**
* Wait for a specific run to appear in the activity table
* @param pipeline name of the pipeline
* @param runId id of the run
*/
waitForRunVisible: function(pipeline, runId) {
this.waitForElementVisible(activityRowSelector(pipeline, runId));
},
/**
* Wait for a specific run to appear in the activity table as a success
* @param runName name of the job
* @param pipeline name of the pipeline
* @param runId id of the run
*/
waitForRunSuccessVisible: function(runName) {
this.waitForElementVisible('.activity-table tr#' + runName);
this.waitForElementVisible('.activity-table tr#' + runName + ' svg.svgResultStatus');
this.waitForElementPresent('.activity-table tr#' + runName + ' svg circle.success');
waitForRunSuccessVisible: function(pipeline, runId) {
this.waitForRunVisible(pipeline, runId);
const resultRowSelector = activityRowSelector(pipeline, runId);
this.waitForElementVisible(`${resultRowSelector} .success`);
},
/**
* Wait for a specific run to appear in the activity table as a failure
* @param runName name of the job
*/
waitForRunFailureVisible: function(runName) {
this.waitForElementVisible('.activity-table tr#' + runName);
this.waitForElementVisible('.activity-table tr#' + runName + ' svg.svgResultStatus');
this.waitForElementPresent('.activity-table tr#' + runName + ' svg circle.failure');
waitForRunFailureVisible: function(pipeline, runId) {
this.waitForRunVisible(pipeline, runId);
const resultRowSelector = activityRowSelector(pipeline, runId);
this.waitForElementVisible(`${resultRowSelector} .failure`);
},

/**
* Wait for a specific run to appear in the activity table as unstable
* @param runName name of the job
*/
waitForRunUnstableVisible: function(runName) {
this.waitForElementVisible('.activity-table tr#' + runName);
this.waitForElementVisible('.activity-table tr#' + runName + ' svg.svgResultStatus');
this.waitForElementPresent('.activity-table tr#' + runName + ' svg circle.unstable');
},
waitForRunUnstableVisible: function(pipeline, runId) {
this.waitForRunVisible(pipeline, runId);
const resultRowSelector = activityRowSelector(pipeline, runId);
this.waitForElementVisible(`${resultRowSelector} .unstable`);
},
/**
* Wait for a specific run to appear in the activity table as running
* @param runName name of the job
* @param [callback] {Function} - callback to be invoke when finished, will pass the sse event to the callback
*/
waitForRunRunningVisible: function(runName, callback) {
this.waitForElementVisible('.activity-table tr#' + runName);
this.waitForElementVisible('.activity-table tr#' + runName + ' svg.svgResultStatus');
if (callback === undefined) {
this.waitForElementPresent('.activity-table tr#' + runName + ' svg path.running');
} else {
this.waitForElementPresent('.activity-table tr#' + runName + ' svg path.running', callback);
}
waitForRunRunningVisible: function(pipeline, runId) {
this.waitForRunVisible(pipeline, runId);
const resultRowSelector = activityRowSelector(pipeline, runId);
this.waitForElementVisible(`${resultRowSelector} .running`);
},
/**
* Wait for a specific run to appear in the activity table as paused
* @param runName name of the job
* @param [callback] {Function} - callback to be invoke when finished, will pass the sse event to the callback
*/
waitForRunPausedVisible: function(runName, callback) {
this.waitForElementVisible('.activity-table tr#' + runName);
this.waitForElementVisible('.activity-table tr#' + runName + ' svg.svgResultStatus');
if (callback === undefined) {
this.waitForElementPresent('.activity-table tr#' + runName + ' svg .paused');
} else {
this.waitForElementPresent('.activity-table tr#' + runName + ' svg .paused', callback);
}
waitForRunPausedVisible: function(pipeline, runId) {
this.waitForRunVisible(pipeline, runId);
const resultRowSelector = activityRowSelector(pipeline, runId);
this.waitForElementVisible(`${resultRowSelector} .paused`);
},

/**
Expand All @@ -127,7 +135,7 @@ module.exports.commands = [{
assertStageGraphShows: function() {
//check results look kosher:
this.waitForElementVisible('.progress-spinner.running');
this.waitForElementVisible('.BasicHeader--running')
this.waitForElementVisible('.BasicHeader--running');

this.waitForElementVisible('.pipeline-node-selected');
this.waitForElementVisible('.download-log-button');
Expand Down Expand Up @@ -155,7 +163,7 @@ module.exports.commands = [{
var self = this;
const browser = this.api;
self.waitForElementVisible('@activityTableEntries');
browser.elements('css selector', 'table.activity-table tbody tr', function (codeCollection) {
browser.elements('css selector', activityTableEntries, function (codeCollection) {
this.assert.equal(codeCollection.value.length, expected);
});
},
Expand Down
Expand Up @@ -9,7 +9,7 @@ var url = require('../../util/url');
* */
module.exports = {
elements: {
runButton: '.actions a.run-button',
runButton: 'a.run-button',
toasts: 'div.toaster div.toast span.text'
}
};
Expand Down Expand Up @@ -39,4 +39,4 @@ module.exports.commands = [{
});
return self;
}
}];
}];
Expand Up @@ -8,6 +8,10 @@
const url = require('../../util/url');
const pipelinesUrl = url.viewAllPipelines();

function pipelineRowSelector(pipeline) {
return `.pipelines-table .JTable-row[data-pipeline='${pipeline}']`;
}

module.exports = {

url: function () {
Expand Down Expand Up @@ -35,10 +39,10 @@ module.exports.commands = [{
this.waitForElementVisible('.Site-footer');
},
assertJob: function(jobName) {
this.waitForElementVisible('.pipelines-table tr[data-name="' + jobName + '"]');
this.waitForElementVisible(pipelineRowSelector(jobName));
},
countJobToBeEqual: function(browser, jobName, count) {
browser.elements('css selector', '.pipelines-table tr[data-name="' + jobName + '"]', function (codeCollection) {
browser.elements('css selector', pipelineRowSelector(jobName), function (codeCollection) {
this.assert.equal(codeCollection.value.length, count);
});
},
Expand Down
2 changes: 1 addition & 1 deletion acceptance-tests/src/test/js/artifacts/artifacts.js
Expand Up @@ -20,7 +20,7 @@ module.exports = {
// run the job
blueActivityPage.click('@runButton');
blueActivityPage.waitForElementVisible('@toastOpenButton');
blueActivityPage.waitForRunSuccessVisible(`${jobName}-1`);
blueActivityPage.waitForRunSuccessVisible(jobName, '1');

},

Expand Down
2 changes: 1 addition & 1 deletion acceptance-tests/src/test/js/creation/git/localRepo.js
Expand Up @@ -37,6 +37,6 @@ module.exports = {
'Step 02 - Check Activity Tab': !function (browser) {
const activity = browser.page.bluePipelineActivity().forJob(jobName, 'jenkins');
activity.assertBasicLayoutOkay();
activity.waitForRunSuccessVisible(jobName + '-1');
activity.waitForRunSuccessVisible(jobName, '1');
}
};
2 changes: 1 addition & 1 deletion acceptance-tests/src/test/js/edgeCases/initialStage.js
Expand Up @@ -32,7 +32,7 @@ module.exports = {
'Step 03': function (browser) {
const blueActivityPage = browser.page.bluePipelineActivity().forJob(jobName, 'jenkins');
// Check the run itself
blueActivityPage.waitForRunRunningVisible(jobName + '-1');
blueActivityPage.waitForRunRunningVisible(jobName, '1');
const blueRunDetailPage = browser.page.bluePipelineRunDetail().forRun(jobName, 'jenkins', 1);

blueRunDetailPage.assertBasicLayoutOkay();
Expand Down
2 changes: 1 addition & 1 deletion acceptance-tests/src/test/js/failing.js
Expand Up @@ -69,7 +69,7 @@ module.exports = {
*/
'Step 04' : function(browser) {
var blueActivityPage = browser.page.bluePipelineActivity().forJob(JOB, 'jenkins');
blueActivityPage.waitForRunFailureVisible(JOB + '-1');
blueActivityPage.waitForRunFailureVisible(JOB, '1');
blueActivityPage.waitForElementVisible('.replay-button');
},

Expand Down
2 changes: 1 addition & 1 deletion acceptance-tests/src/test/js/failingStages.js
Expand Up @@ -65,7 +65,7 @@ module.exports = {
*/
'Step 04' : function(browser) {
var blueActivityPage = browser.page.bluePipelineActivity().forJob(JOB, 'jenkins');
blueActivityPage.waitForRunFailureVisible(JOB + '-1');
blueActivityPage.waitForRunFailureVisible(JOB, '1');
blueActivityPage.waitForElementVisible('.replay-button');
},

Expand Down
2 changes: 1 addition & 1 deletion acceptance-tests/src/test/js/log-karaoke/freestyle.js
Expand Up @@ -23,7 +23,7 @@ module.exports = {
'Step 03': function (browser) {
const blueActivityPage = browser.page.bluePipelineActivity().forJob('hijo', 'jenkins');
// Check the run itself
blueActivityPage.waitForRunRunningVisible('hijo-1');
blueActivityPage.waitForRunRunningVisible('hijo', '1');
const blueRunDetailPage = browser.page.bluePipelineRunDetail().forRun('hijo', 'jenkins', 1);
// assert basic page style
blueRunDetailPage.assertBasicLayoutOkay();
Expand Down
2 changes: 1 addition & 1 deletion acceptance-tests/src/test/js/log-karaoke/input.js
Expand Up @@ -25,7 +25,7 @@ module.exports = {
const blueActivityPage = browser.page.bluePipelineActivity().forJob(jobName, 'jenkins');
// Check the run is turning to pause
blueActivityPage.waitForJobRunPaused(jobName, function () {
blueActivityPage.waitForRunPausedVisible(jobName + '-1');
blueActivityPage.waitForRunPausedVisible(jobName, '1');
});
},
/** Check Job Blue Ocean Pipeline Activity Page has run - then go to the detail page and validate the input form
Expand Down
2 changes: 1 addition & 1 deletion acceptance-tests/src/test/js/log-karaoke/noStages.js
Expand Up @@ -25,7 +25,7 @@ module.exports = {
'Step 03': function (browser) {
const blueActivityPage = browser.page.bluePipelineActivity().forJob(jobName, 'jenkins');
// Check the run itself
blueActivityPage.waitForRunRunningVisible('noStages-1');
blueActivityPage.waitForRunRunningVisible('noStages', '1');
const blueRunDetailPage = browser.page.bluePipelineRunDetail().forRun(jobName, 'jenkins', 1);

// Wait for the table of pipeline steps to start rendering with
Expand Down
Expand Up @@ -30,7 +30,7 @@ module.exports = {
'Step 03': function (browser) {
const blueActivityPage = browser.page.bluePipelineActivity().forJob(jobName, 'jenkins');
// Check the run itself
blueActivityPage.waitForRunRunningVisible('parallelStages-1');
blueActivityPage.waitForRunRunningVisible('parallelStages', '1');
const blueRunDetailPage = browser.page.bluePipelineRunDetail().forRun(jobName, 'jenkins', 1);
blueRunDetailPage.validateGraph();
// if we have the first stage finished we can go on
Expand Down
Expand Up @@ -34,7 +34,7 @@ module.exports = {

const blueActivityPage = browser.page.bluePipelineActivity().forJob(jobName, 'jenkins');
blueActivityPage.click('.branches');
blueActivityPage.waitForElementVisible('tr[id^="master"]');
blueActivityPage.waitForElementVisible('.JTable-row[data-branch="master"]');
blueActivityPage.waitForElementVisible('a.run-button');
blueActivityPage.click('a.run-button');
blueActivityPage.waitForElementVisible('button.inputStepSubmit');
Expand Down Expand Up @@ -94,4 +94,4 @@ module.exports = {
})
});
}
};
};
2 changes: 1 addition & 1 deletion acceptance-tests/src/test/js/log-karaoke/stages-block.js
Expand Up @@ -39,7 +39,7 @@ module.exports = {
'Step 03': function (browser) {
const blueActivityPage = browser.page.bluePipelineActivity().forJob(useCase.name, 'jenkins');
// Check the run itself
blueActivityPage.waitForRunRunningVisible(useCase.name + '-1');
blueActivityPage.waitForRunRunningVisible(useCase.name, '1');
},
/** Check Job Blue Ocean Pipeline run detail page - karaoke*/
'Step 04': function (browser) {
Expand Down
2 changes: 1 addition & 1 deletion acceptance-tests/src/test/js/log-karaoke/stages-new.js
Expand Up @@ -39,7 +39,7 @@ module.exports = {
'Step 03': function (browser) {
const blueActivityPage = browser.page.bluePipelineActivity().forJob(useCase.name, 'jenkins');
// Check the run itself
blueActivityPage.waitForRunRunningVisible(useCase.name + '-1');
blueActivityPage.waitForRunRunningVisible(useCase.name, '1');
},
/** Check Job Blue Ocean Pipeline run detail page - karaoke*/
'Step 04': function (browser) {
Expand Down
2 changes: 1 addition & 1 deletion acceptance-tests/src/test/js/log-karaoke/stages-old.js
Expand Up @@ -44,7 +44,7 @@ module.exports = {
'Step 03': function (browser) {
const blueActivityPage = browser.page.bluePipelineActivity().forJob(useCase.name, 'jenkins');
// Check the run itself
blueActivityPage.waitForRunRunningVisible(useCase.name + '-1');
blueActivityPage.waitForRunRunningVisible(useCase.name, '1');
},
/** Check Job Blue Ocean Pipeline run detail page - karaoke*/
'Step 04': function (browser) {
Expand Down
4 changes: 2 additions & 2 deletions acceptance-tests/src/test/js/matrix.js
Expand Up @@ -15,6 +15,6 @@ module.exports = {

pipelinePage.waitForElementVisible('.pipelineRedirectLink');

browser.useXpath().waitForElementVisible(`//*/a[@class="pipelineRedirectLink" and contains(@href, "/job/${jobName}/")]`)
browser.useXpath().waitForElementVisible(`//*/a[contains(@class, "pipelineRedirectLink") and contains(@href, "/job/${jobName}/")]`)
}
}
}
4 changes: 2 additions & 2 deletions acceptance-tests/src/test/js/multibranch/filtering.js
Expand Up @@ -27,7 +27,7 @@ module.exports = {
'Step 2 - view all runs on Activity tab': function (browser) {
activity = browser.page.bluePipelineActivity().forJob(jobName, 'jenkins');
activity.waitForElementVisible('@activityTable');
browser.elements('css selector', 'tbody tr', function(res) {
browser.elements('css selector', '.activity-table .JTable-row[data-pipeline]', function(res) {
browser.assert.equal(res.value.length, 2, 'Correct number of runs shown initially');
});
},
Expand All @@ -37,7 +37,7 @@ module.exports = {
activity.waitForElementVisible('.item[title=master]');
activity.click('.item[title=master]');
activity.waitForElementVisible('input.autocomplete[value=master');
browser.elements('css selector', 'tbody tr', function(res) {
browser.elements('css selector', '.activity-table .JTable-row[data-pipeline]', function(res) {
browser.assert.equal(res.value.length, 1, 'Correct number of runs filtered down');
});
}
Expand Down