-
Notifications
You must be signed in to change notification settings - Fork 47
/
Copy pathpercy-test.js
48 lines (34 loc) · 1.27 KB
/
percy-test.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import { module, test } from 'qunit';
import { visit } from '@ember/test-helpers';
import { setupApplicationTest } from 'ember-qunit';
import percySnapshot from '@percy/ember';
module('Acceptance | Percy test', function (hooks) {
setupApplicationTest(hooks);
test('Take percy snapshots', async function (assert) {
await visit('/foundations/elevation');
await percySnapshot('Elevation');
await visit('/foundations/colors');
await percySnapshot('Colors');
await visit('/foundations/typography');
await percySnapshot('Typography');
await visit('/foundations/focus-ring');
await percySnapshot('FocusRing');
await visit('/components/alert');
await percySnapshot('Alert');
await visit('/components/badge');
await percySnapshot('Badge');
await visit('/components/button');
await percySnapshot('Button');
await visit('/components/breadcrumb');
await percySnapshot('Breadcrumb');
await visit('/components/card');
await percySnapshot('Card');
await visit('/components/icon-tile');
await percySnapshot('IconTile');
await visit('/components/link');
await percySnapshot('Link Standalone');
await visit('/components/link-to');
await percySnapshot('LinkTo Standalone');
assert.ok(true);
});
});