All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
8.0.5 (2020-02-22)
- create fixtures dir if it doesn't exist (65c0549)
8.0.4 (2020-02-22)
- package: remove unused peerDep (ffbd503)
8.0.3 (2020-02-21)
- fix test failures not exiting with code 1 (2b7a9f8)
8.0.2 (2020-02-15)
- fix "update" failing when existing resolution was different (5aa94e6)
8.0.1 (2020-02-14)
8.0.0 (2020-02-14)
- remove all GSAP-specific code (f00e67a)
- The dependency on ava has been removed, and
nodecg-screenshot-tester
is now a standalone tool. Please consult the README for updated usage instructions. - All code specific to GSAP has been removed, in an effort to further generalize this tool.
What this means in practice is that if you are still running GSAP 2, then nodecg-screenshot-tester will no longer automatically detect when a Timeline or Tween is returned by your entranceMethod, and it will not wait for it to complete before taking the screenshot.
However, nodecg-screenshot-tester does still detect when entranceMethod returns a Promise, and waits for that. GSAP 3 now has a .then method on all animations, so if you upgrade your codebase to GSAP 3 then you will get this functionality back. Else, you may need to wrap your GSAP 2 timelines in promises in your own codebase.
7.0.0 (2020-02-13)
- ensure loads are done before taking screenshot (90ea8fc)
- migrate to eslint, add prettier (92a2b43)
- add optional "after" callback (e7e5432)
- allow generate-fixture-screenshots to run in parallel (1c86118)
- augment window type (4df22b6)
- By default, generate-fixture-screenshots now runs in parallel. The concurrency is automatically computed based on the number of physical CPU cores detected. This might expose flakiness in screenshots that previously seemed reliable when running under a less-strained system.
If you need to stick to running tests one-at-a-time, pass in the --concurrency=1 flag.
- some code has changed in subtle ways that could alter the behavior of the program. It shouldn't, but it could.
6.0.0 (2020-01-28)
- package: mock-nodecg is a prodDep (9518e3c)
- package: the last release should have been a breaking change, because it updates mock-nodecg in a way which substantially changes its behavior. Refer to the mock-nodecg changelog for details.
5.1.0 (2020-01-28)
- package: update mock-nodecg (d8e2667)
5.0.2 (2019-05-14)
- i guess we forgot how to read images off disk since 90 minutes ago??? (d0d9df0)
5.0.1 (2019-05-14)
- wait for both load and networkidle0 (fb503e5)
5.0.0 (2019-05-14)
- wait until all network connections have completed before taking screenshots (8735dde)
- nodecg-screenshot-tester now waits for 500ms of network idle time before taking a screenshot. This is done to try to ensure that all fonts, image, etc, have loaded on the page before the screenshot is taken.
4.1.0 (2019-05-10)
- add support for optional "metadata" object (1e9da96)
4.0.0 (2019-04-30)
- package: update puppeteer (5a973d8)
- package: Puppeteer has been updated, which means a new Chromium version is being used. This will likely change how certain pages render, and will change some screenshots as a result. You may need to generate new fixtures.
3.0.0 (2019-03-12)
- call
before
after populating replicants (1887e14)
before
is now called after replicant prefills have been populated.
2.2.2 (2019-02-16)
- replicants: fix string prefill values being unusable (3f88e35)
2.2.1 (2019-01-28)
- package: expose typings (9e3b4f8)
2.2.0 (2018-11-18)
2.1.2 (2018-10-14)
- package: update mock-nodecg dep to 1.7.0 (e24bb4e)
2.1.1 (2018-09-09)
- strip querystring from filenames (a8925f5)
2.1.0 (2018-07-07)
- fix screenshots failing when their entrance method returns a promise (7d0fd2c)
- cli: add support for --filter argument (b054039)
2.0.0 (2018-07-06)
- don't provide a default entranceMethodName (5ac21d7)
- add support for custom express routes via CUSTOM_ROUTES const (05d11aa)
entranceMethodName
no longer has a default value. Previously, it had a default ofenter
.
1.0.0 (2018-06-13)
- remove unused application-specific code (1d692ee)
- add support for test/fixtures/static folder (049aa94)
- Codename IF-specific routes have been removed, and should be added directly to IF.
0.1.1 (2018-05-28)
- ensure that SCREENSHOT_TESTING flag is set before any page scripts run (a1e4ddb)
0.1.0 (2018-05-20)
- set viewport to declared size of graphic from the bundle's package.json (e69a45d)