Skip to content

Commit e962d1e

Browse files
committed
Try await-ing percySnapshot
The docs for ember-percy have this, but we don't? https://docs.percy.io/docs/ember
1 parent 9c271e6 commit e962d1e

File tree

8 files changed

+11
-11
lines changed

8 files changed

+11
-11
lines changed

tests/acceptance/categories-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ module('Acceptance | categories', function(hooks) {
1818
this.server.create('category', { category: 'Asynchronous', crates_cnt: 3910 });
1919

2020
await visit('/categories');
21-
percySnapshot(assert);
21+
await percySnapshot(assert);
2222

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

3131
await visit('/categories/algorithms');
32-
percySnapshot(assert);
32+
await percySnapshot(assert);
3333

3434
await a11yAudit(axeConfig);
3535
});

tests/acceptance/crate-test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ module('Acceptance | crate page', function(hooks) {
2020
this.server.create('version', { crate: 'nanomsg', num: '0.6.1' });
2121

2222
await visit('/crates/nanomsg');
23-
percySnapshot(assert);
23+
await percySnapshot(assert);
2424

2525
await a11yAudit(axeConfig);
2626
});
@@ -33,7 +33,7 @@ module('Acceptance | crate page', function(hooks) {
3333
this.server.create('version', { crate: 'nanomsg', num: '0.6.1' });
3434

3535
await visit('/crates/nanomsg/0.6.0');
36-
percySnapshot(assert);
36+
await percySnapshot(assert);
3737

3838
await a11yAudit(axeConfig);
3939
});
@@ -44,7 +44,7 @@ module('Acceptance | crate page', function(hooks) {
4444
this.server.loadFixtures();
4545

4646
await visit('/crates/nanomsg/owners');
47-
percySnapshot(assert);
47+
await percySnapshot(assert);
4848

4949
await a11yAudit(axeConfig);
5050
});

tests/acceptance/crates-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ module('Acceptance | crates page', function(hooks) {
2020
this.server.loadFixtures();
2121

2222
await visit('/crates');
23-
percySnapshot(assert);
23+
await percySnapshot(assert);
2424

2525
await a11yAudit(axeConfig);
2626
});

tests/acceptance/front-page-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,6 @@ module('Acceptance | front page', function(hooks) {
4444
assert.dom('[data-test-just-updated] [data-test-crate-link="0"]').hasText('nanomsg (0.7.0-alpha)');
4545
assert.dom('[data-test-just-updated] [data-test-crate-link="0"]').hasAttribute('href', '/crates/nanomsg');
4646

47-
percySnapshot(assert);
47+
await percySnapshot(assert);
4848
});
4949
});

tests/acceptance/keyword-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module('Acceptance | keywords', function(hooks) {
1616
this.server.create('keyword', { id: 'network', keyword: 'network', crates_cnt: 38 });
1717

1818
await visit('keywords/network');
19-
percySnapshot(assert);
19+
await percySnapshot(assert);
2020

2121
await a11yAudit(axeConfig);
2222
});

tests/acceptance/search-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ module('Acceptance | search', function(hooks) {
1818
this.server.loadFixtures();
1919

2020
await visit('/search?q=rust');
21-
percySnapshot(assert);
21+
await percySnapshot(assert);
2222

2323
await a11yAudit(axeConfig);
2424
});

tests/acceptance/team-page-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module('Acceptance | team page', function(hooks) {
1616
this.server.loadFixtures();
1717

1818
await visit('/teams/github:org:thehydroimpulse');
19-
percySnapshot(assert);
19+
await percySnapshot(assert);
2020

2121
await a11yAudit(axeConfig);
2222
});

tests/acceptance/user-page-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module('Acceptance | user page', function(hooks) {
1616
this.server.loadFixtures();
1717

1818
await visit('/users/thehydroimpulse');
19-
percySnapshot(assert);
19+
await percySnapshot(assert);
2020

2121
await a11yAudit(axeConfig);
2222
});

0 commit comments

Comments
 (0)