Skip to content

Configure percy to hide the downloads graph (upgrade to percy 2.0.0 beta) #2000

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

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .percy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: 1
snapshot:
percy-css: |
#crate-downloads .graph {
display: none;
}

1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ env:
- DATABASE_URL=postgres://postgres:@localhost/cargo_registry_test
- TEST_DATABASE_URL=postgres://postgres:@localhost/cargo_registry_test
- CARGO_INCREMENTAL=0
- PERCY_PARALLEL_TOTAL=2
# Percy secrets are included here to enable Percy's GitHub integration
# on community-submitted PRs
- PERCY_TOKEN=0d8707a02b19aebbec79bb0bf302b8d2fa95edb33169cfe41b084289596670b1
Expand Down
4,218 changes: 2,278 additions & 1,940 deletions package-lock.json

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,12 @@
"start:live": "./script/ember.sh serve --proxy https://crates.io",
"start:local": "./script/ember.sh serve --proxy http://127.0.0.1:8888",
"start:staging": "./script/ember.sh serve --proxy https://staging-crates-io.herokuapp.com",
"test": "ember exam --split=2 --parallel",
"test": "percy exec -- ember exam --split=2 --parallel",
"test-coverage": "COVERAGE=true npm run test && ember coverage-merge && rm -rf coverage_* coverage/coverage-summary.json && nyc report"
},
"devDependencies": {
"@ember/jquery": "^1.1.0",
"@percy/ember": "github:percy/ember-percy",
"babel-plugin-transform-object-rest-spread": "^6.23.0",
"broccoli-asset-rev": "^3.0.0",
"ember-a11y-testing": "^2.0.0",
Expand All @@ -38,12 +39,12 @@
"ember-cli-app-version": "^3.1.3",
"ember-cli-babel": "^7.13.2",
"ember-cli-clipboard": "^0.9.0",
"ember-cli-code-coverage": "^1.0.0-beta.8",
"ember-cli-code-coverage": "^1.0.0-beta.4",
"ember-cli-dependency-checker": "^2.0.1",
"ember-cli-dependency-lint": "^1.1.3",
"ember-cli-fastboot": "^2.2.1",
"ember-cli-htmlbars": "^4.2.0",
"ember-cli-inject-live-reload": "2.0.2",
"ember-cli-inject-live-reload": "1.6.1",
"ember-cli-meta-tags": "^5.3.0",
"ember-cli-mirage": "^1.1.6",
"ember-cli-moment-shim": "^3.7.1",
Expand All @@ -61,18 +62,17 @@
"ember-load-initializers": "^2.1.1",
"ember-maybe-import-regenerator": "^0.1.6",
"ember-moment": "^8.0.0",
"ember-qunit": "^4.6.0",
"ember-page-title": "^5.1.0",
"ember-percy": "^1.6.0",
"ember-prism": "^0.5.0",
"ember-promise-helpers": "^1.0.9",
"ember-qunit": "^4.6.0",
"ember-resolver": "^7.0.0",
"ember-router-scroll": "^1.3.3",
"ember-template-lint": "^1.12.1",
"ember-source": "~3.15.0",
"ember-svg-jar": "^2.2.3",
"ember-test-selectors": "^3.0.0",
"ember-web-app": "^3.0.1",
"ember-web-app": "^2.2.0",
"emberx-select": "^3.1.1",
"eslint": "^6.3.0",
"eslint-config-prettier": "^6.7.0",
Expand Down
6 changes: 3 additions & 3 deletions tests/acceptance/categories-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { visit } from '@ember/test-helpers';
import a11yAudit from 'ember-a11y-testing/test-support/audit';
import axeConfig from '../axe-config';
import setupMirage from '../helpers/setup-mirage';
import { percySnapshot } from 'ember-percy';
import percySnapshot from '@percy/ember';

module('Acceptance | categories', function(hooks) {
setupApplicationTest(hooks);
Expand All @@ -18,7 +18,7 @@ module('Acceptance | categories', function(hooks) {
this.server.create('category', { category: 'Asynchronous', crates_cnt: 3910 });

await visit('/categories');
percySnapshot(assert);
await percySnapshot(assert);

await a11yAudit(axeConfig);
});
Expand All @@ -29,7 +29,7 @@ module('Acceptance | categories', function(hooks) {
this.server.create('category', { category: 'Algorithms', crates_cnt: 1 });

await visit('/categories/algorithms');
percySnapshot(assert);
await percySnapshot(assert);

await a11yAudit(axeConfig);
});
Expand Down
10 changes: 5 additions & 5 deletions tests/acceptance/crate-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import a11yAudit from 'ember-a11y-testing/test-support/audit';
import axeConfig from '../axe-config';
import { title } from '../helpers/dom';
import setupMirage from '../helpers/setup-mirage';
import { percySnapshot } from 'ember-percy';
import percySnapshot from '@percy/ember';

module('Acceptance | crate page', function(hooks) {
setupApplicationTest(hooks);
Expand All @@ -18,7 +18,7 @@ module('Acceptance | crate page', function(hooks) {
this.server.create('crate', 'withVersion', { id: 'nanomsg' });

await visit('/');
percySnapshot(assert);
await percySnapshot(assert);

await a11yAudit(axeConfig);
});
Expand All @@ -31,7 +31,7 @@ module('Acceptance | crate page', function(hooks) {
this.server.create('version', { crate: 'nanomsg', num: '0.6.1' });

await visit('/crates/nanomsg');
percySnapshot(assert);
await percySnapshot(assert);

await a11yAudit(axeConfig);
});
Expand All @@ -44,7 +44,7 @@ module('Acceptance | crate page', function(hooks) {
this.server.create('version', { crate: 'nanomsg', num: '0.6.1' });

await visit('/crates/nanomsg/0.6.0');
percySnapshot(assert);
await percySnapshot(assert);

await a11yAudit(axeConfig);
});
Expand All @@ -55,7 +55,7 @@ module('Acceptance | crate page', function(hooks) {
this.server.loadFixtures();

await visit('/crates/nanomsg/owners');
percySnapshot(assert);
await percySnapshot(assert);

await a11yAudit(axeConfig);
});
Expand Down
6 changes: 3 additions & 3 deletions tests/acceptance/crates-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import a11yAudit from 'ember-a11y-testing/test-support/audit';
import axeConfig from '../axe-config';
import { title } from '../helpers/dom';
import setupMirage from '../helpers/setup-mirage';
import { percySnapshot } from 'ember-percy';
import percySnapshot from '@percy/ember';

module('Acceptance | crates page', function(hooks) {
setupApplicationTest(hooks);
Expand All @@ -20,7 +20,7 @@ module('Acceptance | crates page', function(hooks) {
this.server.loadFixtures();

await visit('/');
percySnapshot(assert);
await percySnapshot(assert);

await a11yAudit(axeConfig);
});
Expand All @@ -31,7 +31,7 @@ module('Acceptance | crates page', function(hooks) {
this.server.loadFixtures();

await visit('/crates');
percySnapshot(assert);
await percySnapshot(assert);

await a11yAudit(axeConfig);
});
Expand Down
4 changes: 2 additions & 2 deletions tests/acceptance/front-page-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import a11yAudit from 'ember-a11y-testing/test-support/audit';
import axeConfig from '../axe-config';
import { title } from '../helpers/dom';
import setupMirage from '../helpers/setup-mirage';
import { percySnapshot } from 'ember-percy';
import percySnapshot from '@percy/ember';

module('Acceptance | front page', function(hooks) {
setupApplicationTest(hooks);
Expand Down Expand Up @@ -44,6 +44,6 @@ module('Acceptance | front page', function(hooks) {
assert.dom('[data-test-just-updated] [data-test-crate-link="0"]').hasText('nanomsg (0.7.0-alpha)');
assert.dom('[data-test-just-updated] [data-test-crate-link="0"]').hasAttribute('href', '/crates/nanomsg');

percySnapshot(assert);
await percySnapshot(assert);
});
});
4 changes: 2 additions & 2 deletions tests/acceptance/keyword-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { visit } from '@ember/test-helpers';
import a11yAudit from 'ember-a11y-testing/test-support/audit';
import axeConfig from '../axe-config';
import setupMirage from '../helpers/setup-mirage';
import { percySnapshot } from 'ember-percy';
import percySnapshot from '@percy/ember';

module('Acceptance | keywords', function(hooks) {
setupApplicationTest(hooks);
Expand All @@ -16,7 +16,7 @@ module('Acceptance | keywords', function(hooks) {
this.server.create('keyword', { id: 'network', keyword: 'network', crates_cnt: 38 });

await visit('keywords/network');
percySnapshot(assert);
await percySnapshot(assert);

await a11yAudit(axeConfig);
});
Expand Down
4 changes: 2 additions & 2 deletions tests/acceptance/search-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { triggerKeyDown, triggerKeyPress } from 'ember-keyboard';
import axeConfig from '../axe-config';
import { title } from '../helpers/dom';
import setupMirage from '../helpers/setup-mirage';
import { percySnapshot } from 'ember-percy';
import percySnapshot from '@percy/ember';

module('Acceptance | search', function(hooks) {
setupApplicationTest(hooks);
Expand All @@ -18,7 +18,7 @@ module('Acceptance | search', function(hooks) {
this.server.loadFixtures();

await visit('/');
percySnapshot(assert);
await percySnapshot(assert);

await a11yAudit(axeConfig);
});
Expand Down
4 changes: 2 additions & 2 deletions tests/acceptance/team-page-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { visit } from '@ember/test-helpers';
import a11yAudit from 'ember-a11y-testing/test-support/audit';
import axeConfig from '../axe-config';
import setupMirage from '../helpers/setup-mirage';
import { percySnapshot } from 'ember-percy';
import percySnapshot from '@percy/ember';

module('Acceptance | team page', function(hooks) {
setupApplicationTest(hooks);
Expand All @@ -16,7 +16,7 @@ module('Acceptance | team page', function(hooks) {
this.server.loadFixtures();

await visit('/teams/github:org:thehydroimpulse');
percySnapshot(assert);
await percySnapshot(assert);

await a11yAudit(axeConfig);
});
Expand Down
4 changes: 2 additions & 2 deletions tests/acceptance/user-page-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { visit } from '@ember/test-helpers';
import a11yAudit from 'ember-a11y-testing/test-support/audit';
import axeConfig from '../axe-config';
import setupMirage from '../helpers/setup-mirage';
import { percySnapshot } from 'ember-percy';
import percySnapshot from '@percy/ember';

module('Acceptance | user page', function(hooks) {
setupApplicationTest(hooks);
Expand All @@ -16,7 +16,7 @@ module('Acceptance | user page', function(hooks) {
this.server.loadFixtures();

await visit('/users/thehydroimpulse');
percySnapshot(assert);
await percySnapshot(assert);

await a11yAudit(axeConfig);
});
Expand Down