When using remote screenshots: in onPrepare, if the buildBranch is a PR (follows the pr-123 pattern), then download reference screenshots from a remote repo given by the name (the ref) of the PR's base branch. If the branch is not a PR (e.g main then download the reference screenshots from the remote repo given by the buildBranch itself.
A ton of refactoring of code and tests due to some logic bugs, some test bugs, and some other misc. needs.
Summary
pr-123
pattern), then download reference screenshots from a remote repo given by the name (the ref) of the PR's base branch. If the branch is not a PR (e.gmain
then download the reference screenshots from the remote repo given by the buildBranch itself.