Skip to content

📸 Multiple device snapshots + Kaleidoscope support

Latest
Compare
Choose a tag to compare
@skyweb07 skyweb07 released this 09 Jan 18:01
8adf558

New year, new challenges! 🔥

This version brings a really cool feature so we can test multiple device screens in one assertion, it's as simple as:

expect(viewController).toMatchSnapshot(for devices: [.iphone4, .iphone5s])

// or 

expect(viewController).toMatchSnapshot(for: .allDevices)

Also thanks to @PhilippeRiegert we have added support for Kaleidoscope ksdiff #29 tool so it logs in the console the command needed to do diffing using the tool. To finish up we have fixed a small issue with auto layout constraints that needed to finish to update the layout before rendering the image on #28