Skip to content

Releases: percy/percy-ember

v2.1.0

25 Mar 16:35
6c5fedc
Compare
Choose a tag to compare

What's new?

You can now pass your own domTransformation option to percySnapshot. This will allow you to add elements to the clone of the DOM that Percy captures (#188). For example:

test('passing a custom DOM transform', async function(assert) {
  await visit('/');
  assert.equal(currentURL(), '/');

  await percySnapshot(assert, {
    domTransformation: function(clonedDom) {
      let $scopedRoot = clonedDom.querySelector('#ember-testing');
      let $h1 = document.createElement('h1');
      $h1.innerText = 'Hello modified DOM!';
      $scopedRoot.appendChild($h1);

      return clonedDom;
    }
});

This could be useful if you have an Ember addon which adds DOM elements outside of the Ember application root (which is ember-testing in tests). You could then collect those elements and add them back into the DOM clone Percy captures.

v2.0.0-beta.3

15 Jan 17:30
Compare
Choose a tag to compare

What is this?

This release awaits for the POST to percy-agent to resolve before releasing the test suite to move forward. (#172)

v2.0.0-beta.2

18 Dec 21:35
Compare
Choose a tag to compare

What changed?

  • Removed ember-cli-htmlbars from dependencies (#164)

v2.0.0-beta.1

18 Dec 17:20
Compare
Choose a tag to compare

What changed?

v2.0.0 of the Percy Ember SDK is a complete rewrite to bring it inline with how all other Percy SDKs function now (by utilizing @percy/agent for the heavy lifting)

Breaking changes:

  • Import API changes: percySnapshot is now the packages default export (import { percySnapshot } 'ember-percy' becomes import percySnapshot from '@percy/ember';).
  • Related to the above, the package name is changing to @percy/ember.
  • You need to prepend the ember test command with percy exec -- now (percy exec -- ember test)
  • You must use await with percySnapshot (or ensure the promise resolves, to make sure your snapshots are as stable as possible)
  • breakpointsConfig is no longer going to work -- we're not hooking into the Ember build pipeline to gather config objects. Use a Percy config file instead.
  • PERCY_PARALLEL_TOTAL might need to be adjusted if you're using Ember Exam. Now most exam builds will only create one Percy build (since we wrap the test command with percy exec now)

v1.6.0

12 Sep 15:29
Compare
Choose a tag to compare

What changed?

This version of ember-percy includes more from input serialization when taking the DOM snapshot. You should now see all form inputs properly capture their state (#146)

v1.5.0

14 Sep 16:41
b30ef51
Compare
Choose a tag to compare

Bower was removed - #73 🎉 🌮 🎉 🗡
Node 4 was removed from testing - #75 & #74
PERCY_PROJECT environment variable is no longer required - #72 🚀
Some defensive programming was added - #71 (thanks @Gaurav0!) 🛡

v1.4.4

20 Jul 06:45
Compare
Choose a tag to compare

Important bugfix, please upgrade:

  • Fix duplicate asset clobbering resource paths. (#70)

v1.4.3

09 Jul 20:13
Compare
Choose a tag to compare

Do not release yarn.lock to npm. Thanks @Turbo87!

v1.4.2

14 Jun 23:42
Compare
Choose a tag to compare

Fix jQuery version conflict bug. (#65)

v1.4.1

09 Apr 23:06
Compare
Choose a tag to compare

🐛 Reintroduce support for older ember apps that don't know about @ember/test yet.