Learn How To Pull Baseline When Branching & Auto-Accept When Merging

When working with features branches, Screener can save you time and optimize your workflow by automating the following:

  1. Automatically Accept updates when merging to or from the base branch

    When merging an accepted base branch into a feature branch, Screener auto-accepts UI states that match the latest base branch test. And when merging into the base branch, Screener auto-accepts UI states that match the latest accepted feature branch test.

  2. Automatically pull initial baseline from the base branch

    This is useful for having a set of UI states to initially compare a new branch against. For example, if you create a new feature branch based off of master, and you have a set of UI states on master, you can then compare the new branch's visual changes to master's UI states.

What this means:

  • Accept Once: no need to accept again when merging accepted updates from your base branch into a feature branch.
  • Faster Workflow: no need to re-review UI states or re-run builds to pass again.

Follow the steps below to enable in your project:


Setup Steps

  1. Integrate Screener into your CI process so that visual tests are automatically run when branching or merging.

  2. Set the baseBranch option in your screener.config.js file to the name of your base branch:

    // screener.config.js
    module.exports = {
      ...
       
      baseBranch: 'master'
    }


Got Questions? Ask Us