percy / percy-ember

Ember addon for visual regression testing with Percy
https://docs.percy.io/docs/ember
MIT License
73 stars 44 forks source link

ember-responsive #18

Closed topaxi closed 7 years ago

topaxi commented 7 years ago

Having responsive diffs is quite awesome!

With ember-responsive or flexi one might render different DOM for each device.

Do you have any solution for this scenario in mind?

With ember-response it might be quite easy to overwrite the service and do multiple tests/snapshots

fotinakis commented 7 years ago

Thanks!

Is there any way to grab the current test breakpoint from ember-responsive after using setBreakpoint('mobile');? Because you could potentially just customize the name of the percy snapshot to include the breakpoint, like:

percySnapshot(`${this.test.fullTitle()} [breakpoint:${breakpoint}]`)

or something.