Skip to content

Commit

Permalink
Merge pull request #912 from ember-learn/add-new-percy
Browse files Browse the repository at this point in the history
add new percy snapshots
  • Loading branch information
mansona authored Jun 21, 2024
2 parents e0bf0f6 + ef7a9e7 commit 7424827
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions tests/acceptance/percy-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,27 @@ import percySnapshot from '@percy/ember';
import { setupApplicationTest } from 'ember-qunit';
import { module, test } from 'qunit';

let snapshots = [
['/', 'Landing Page'],
['/ember-data/', 'Ember Data Landing Page'],
['/ember/release/modules/@ember%2Fcomponent', 'Package Page'],
['/ember/release/classes/Component', 'Class Index'],
['/ember/release/classes/Component/methods', 'Class Methods'],
['/ember/release/classes/Component/properties', 'Class Properties'],
['/ember/release/classes/Component/events', 'Class Events'],
['/ember/release/functions/@ember%2Fcomponent/capabilities', 'Function Page'],
['/ember/release/namespaces/Instrumentation', 'Namespace Page'],
['/ember/release/namespaces/FEATURES/methods', 'Namespace methods page'],
];

module('Acceptance | percy', function (hooks) {
setupApplicationTest(hooks);

test('Percy snapshot', async function (assert) {
await visit('/');
await percySnapshot('Landing page');
test('Percy snapshots', async function (assert) {
for (let [page, title] of snapshots) {
await visit(page);
await percySnapshot(title);
}

assert.ok(true);
});
Expand Down

0 comments on commit 7424827

Please sign in to comment.