Skip to content
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

add new percy snapshots #912

Merged
merged 1 commit into from
Jun 21, 2024
Merged
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
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