Update screenshot generation
This commit is contained in:
parent
af5fc42f27
commit
2172cc73e3
2 changed files with 48 additions and 66 deletions
|
@ -48,12 +48,12 @@ casper.then(function () {
|
||||||
});
|
});
|
||||||
|
|
||||||
casper.thenClick('.form-signin button[type=submit]', function() {
|
casper.thenClick('.form-signin button[type=submit]', function() {
|
||||||
this.waitForText('Top Repositories');
|
this.waitForText('Repositories');
|
||||||
});
|
});
|
||||||
|
|
||||||
casper.then(function() {
|
casper.then(function() {
|
||||||
this.waitForSelector('.fa-lock');
|
this.waitForSelector('.repo-list');
|
||||||
this.log('Generating user home screenshot.');
|
this.log('Generating repositories screenshot.');
|
||||||
});
|
});
|
||||||
|
|
||||||
casper.then(function() {
|
casper.then(function() {
|
||||||
|
@ -65,84 +65,74 @@ casper.then(function() {
|
||||||
});
|
});
|
||||||
|
|
||||||
casper.thenOpen(rootUrl + 'repository/devtable/' + repo + '?tag=v2.0', function() {
|
casper.thenOpen(rootUrl + 'repository/devtable/' + repo + '?tag=v2.0', function() {
|
||||||
// Wait for the tree to initialize.
|
this.wait(1000);
|
||||||
this.waitForSelector('.image-tree', function() {
|
|
||||||
// Wait for the tree's animation to finish.
|
|
||||||
this.wait(4000);
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
casper.then(function() {
|
casper.then(function() {
|
||||||
this.capture(outputDir + 'repo-view.png');
|
this.capture(outputDir + 'repo-view.png');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
casper.then(function() {
|
||||||
casper.thenClick('a[data-image="c3d710edbd3b"]', function() {
|
this.log('Generating repository tags screenshot.');
|
||||||
this.waitForText('And 3048 more...', function() {
|
|
||||||
this.capture(outputDir + 'image-view.png');
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
casper.thenClick('.image-link', function() {
|
casper.thenOpen(rootUrl + 'repository/devtable/' + repo + '?tab=tags&tag=v2.0', function() {
|
||||||
this.waitForSelector('.result-count', function() {
|
this.wait(1000);
|
||||||
this.capture(outputDir + 'repo-changes.png', {
|
});
|
||||||
top: 0,
|
|
||||||
left: 0,
|
casper.then(function() {
|
||||||
width: width,
|
this.capture(outputDir + 'repo-tags.png');
|
||||||
height: height
|
});
|
||||||
});
|
|
||||||
});
|
casper.then(function() {
|
||||||
|
this.log('Generating repository tree screenshot.');
|
||||||
|
});
|
||||||
|
|
||||||
|
casper.thenOpen(rootUrl + 'repository/devtable/' + repo + '?tab=changes&tag=v2.0,prod,staging', function() {
|
||||||
|
this.wait(5000);
|
||||||
|
});
|
||||||
|
|
||||||
|
casper.then(function() {
|
||||||
|
this.capture(outputDir + 'repo-tree.png');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
casper.then(function() {
|
casper.then(function() {
|
||||||
this.log('Generating repository admin screenshot.');
|
this.log('Generating repository settings screenshot.');
|
||||||
});
|
});
|
||||||
|
|
||||||
casper.thenOpen(rootUrl + 'repository/devtable/' + repo + '/admin', function() {
|
casper.thenOpen(rootUrl + 'repository/devtable/' + repo + '?tab=settings', function() {
|
||||||
this.waitForSelector('.repo-access-state');
|
this.wait(1000);
|
||||||
});
|
});
|
||||||
|
|
||||||
casper.then(function() {
|
casper.then(function() {
|
||||||
this.capture(outputDir + 'repo-admin.png');
|
this.capture(outputDir + 'repo-settings.png');
|
||||||
});
|
});
|
||||||
|
|
||||||
casper.then(function() {
|
casper.then(function() {
|
||||||
this.log('Generating organization repo list screenshot.');
|
this.log('Generating organization view screenshot.');
|
||||||
});
|
|
||||||
|
|
||||||
casper.thenOpen(rootUrl + 'repository/?namespace=' + org, function() {
|
|
||||||
this.waitForText('Repositories');
|
|
||||||
});
|
|
||||||
|
|
||||||
casper.then(function() {
|
|
||||||
this.capture(outputDir + 'org-repo-list.png');
|
|
||||||
});
|
|
||||||
|
|
||||||
casper.then(function() {
|
|
||||||
this.log('Generating organization teams screenshot.');
|
|
||||||
});
|
});
|
||||||
|
|
||||||
casper.thenOpen(rootUrl + 'organization/' + org, function() {
|
casper.thenOpen(rootUrl + 'organization/' + org, function() {
|
||||||
this.waitForSelector('.organization-name');
|
this.waitForSelector('.organization-name');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
casper.then(function() {
|
||||||
|
this.capture(outputDir + 'org-view.png');
|
||||||
|
});
|
||||||
|
|
||||||
|
casper.then(function() {
|
||||||
|
this.log('Generating organization teams screenshot.');
|
||||||
|
});
|
||||||
|
|
||||||
|
casper.thenOpen(rootUrl + 'organization/' + org + '?tab=teams', function() {
|
||||||
|
this.waitForText('Owners');
|
||||||
|
});
|
||||||
|
|
||||||
casper.then(function() {
|
casper.then(function() {
|
||||||
this.capture(outputDir + 'org-teams.png');
|
this.capture(outputDir + 'org-teams.png');
|
||||||
});
|
});
|
||||||
|
|
||||||
casper.then(function() {
|
|
||||||
this.log('Generating organization admin screenshot.');
|
|
||||||
});
|
|
||||||
|
|
||||||
casper.thenOpen(rootUrl + 'organization/' + org + '/admin', function() {
|
|
||||||
this.waitForSelector('#repository-usage-chart');
|
|
||||||
});
|
|
||||||
|
|
||||||
casper.then(function() {
|
|
||||||
this.capture(outputDir + 'org-admin.png');
|
|
||||||
});
|
|
||||||
|
|
||||||
casper.then(function() {
|
casper.then(function() {
|
||||||
this.log('Generating organization logs screenshot.');
|
this.log('Generating organization logs screenshot.');
|
||||||
});
|
});
|
||||||
|
@ -160,25 +150,13 @@ casper.thenClick('a[data-target="#logs"]', function() {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
casper.then(function() {
|
|
||||||
this.log('Generating oganization repository admin screenshot.');
|
|
||||||
});
|
|
||||||
|
|
||||||
casper.thenOpen(rootUrl + 'repository/' + orgrepo + '/admin', function() {
|
|
||||||
this.waitForText('Robot Account')
|
|
||||||
});
|
|
||||||
|
|
||||||
casper.then(function() {
|
|
||||||
this.capture(outputDir + 'org-repo-admin.png');
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
casper.then(function() {
|
casper.then(function() {
|
||||||
this.log('Generating build history screenshot.');
|
this.log('Generating build history screenshot.');
|
||||||
});
|
});
|
||||||
|
|
||||||
casper.thenOpen(rootUrl + 'repository/' + buildrepo + '/build', function() {
|
casper.thenOpen(rootUrl + 'repository/' + buildrepo + '?tab=builds', function() {
|
||||||
this.waitForText('Starting');
|
this.wait(1000);
|
||||||
|
this.waitForText('Triggered By');
|
||||||
});
|
});
|
||||||
|
|
||||||
casper.then(function() {
|
casper.then(function() {
|
||||||
|
|
|
@ -10,3 +10,7 @@
|
||||||
margin-right: 6px;
|
margin-right: 6px;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.repo-panel-builds .heading-controls {
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
Reference in a new issue