Skip to content

Commit d857a37

Browse files
committed
tests/api-token: Add Percy snapshot
1 parent 31cb61b commit d857a37

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/acceptance/api-token-test.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { setupApplicationTest } from 'ember-qunit';
33
import { currentURL, findAll, click, fillIn } from '@ember/test-helpers';
44
import window, { setupWindowMock } from 'ember-window-mock';
55
import { Response } from 'ember-cli-mirage';
6+
import { percySnapshot } from 'ember-percy';
67

78
import setupMirage from '../helpers/setup-mirage';
89
import { visit } from '../helpers/visit-ignoring-abort';
@@ -139,6 +140,8 @@ module('Acceptance | api-tokens', function(hooks) {
139140
assert.dom('[data-test-save-token-button]').exists();
140141

141142
await fillIn('[data-test-focused-input]', 'the new token');
143+
percySnapshot(assert);
144+
142145
await click('[data-test-save-token-button]');
143146
assert.verifySteps(['put']);
144147
assert.dom('[data-test-focused-input]').doesNotExist();

0 commit comments

Comments
 (0)