October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PCOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk5 min

How to Update Loki Reference Screenshots Without Hiding Real UI Changes

Update Loki references only after inspecting the visual differences: approve intended UI changes, but fix regressions and rerun the test instead of refreshing the baseline.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Update Loki reference screenshots only after you have run the visual comparison and confirmed that the changed appearance is intentional. Run yarn loki test, inspect the captured screenshots and difference images, then use yarn loki approve for changes you mean to accept. If a difference is a regression or test-environment problem, fix it and rerun instead of refreshing the baseline.

Why reviewing comes before approving

A reference screenshot is the expected appearance Loki compares against. Replacing it without reviewing the latest capture can make an unintended UI change look accepted. Treat approval as a code-review decision: confirm what changed, why it changed, and whether the new appearance is correct before updating the reference.

As an Amazon Associate I earn from qualifying purchases.

Loki’s documented cycle is to start Storybook and any required simulator or emulator, create initial references with yarn loki update, make UI changes, run yarn loki test, inspect the output, and approve intended changes with yarn loki approve. See the Loki Getting Started guide and the Loki README. Confirm commands and options against the Loki version pinned in your project.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Update references safely

  1. Start the capture environment. Start Storybook before running Loki. Start the iOS simulator or Android emulator too if your configured target requires one; Loki does not start these for you. Loki’s README lists Docker Chrome, Chrome in AWS Lambda, local Chrome, iOS simulator, and Android emulator among its targets. Choose the one your project is configured to test.
  2. Create references only when bootstrapping. For an initial baseline, run yarn loki update. The command captures screenshots and updates references; it is not the routine way to handle every test failure.
  3. Run the comparison after a UI change. Run yarn loki test. This compares the current captures with the stored references and reports differences.
  4. Inspect both sides of the comparison. Open the current screenshots and the difference images. The Getting Started guide describes output in loki/current and loki/difference; actual paths can vary with version or configuration. Check the changed component in context, including text, spacing, colors, clipping, missing elements, and any story state that could affect the capture. Loki’s guide says to make sure the changes are correct before continuing.
  5. Choose the appropriate action. If the change is intended and looks right, run yarn loki approve. If it is unintended, leave the references alone, fix the implementation or test setup, and rerun yarn loki test.
  6. Review and commit the result. Include approved reference changes with the code change so reviewers can assess them together. Loki’s guide recommends checking reference files into Git; Git LFS is an optional way to store them.

Choose full approval or diff-only approval

The CLI’s approve command updates reference files from images generated in the last run and can prune outdated references. Use the default full approval only when you have reviewed the complete generated set and intend to replace the references it affects. The CLI option --diffOnly limits approval to files that failed the previous test run, which can narrow the scope when only failed captures should change. It does not decide whether a visual change is acceptable: inspect those failures first.

#1 Best Overall
Sale
Philips 24 Inch Computer Monitor FHD 100Hz VA VESA Flicker-Free, 241V8LB
  • CRISP CLARITY: This 23.8″ Philips V line monitor delivers crisp Full HD 1920x1080 visuals. Enjoy movies, shows and videos with remarkable detail
  • INCREDIBLE CONTRAST: The VA panel produces brighter whites and deeper blacks. You get true-to-life images and more gradients with 16.7 million colors
  • THE PERFECT VIEW: The 178/178 degree extra wide viewing angle prevents the shifting of colors when viewed from an offset angle, so you always get consistent colors
  • WORK SEAMLESSLY: This sleek monitor is virtually bezel-free on three sides, so the screen looks even bigger for the viewer. This minimalistic design also allows for seamless multi-monitor setups that enhance your workflow and boost productivity
  • A BETTER READING EXPERIENCE: For busy office workers, EasyRead mode provides a more paper-like experience for when viewing lengthy documents

The CLI documentation lists --reference with a default of ./.loki/reference, --output with a default of ./.loki/current, and --diffOnly defaulting to false. These are documented CLI defaults, not guarantees for every version or project configuration. Check the Loki CLI reference before relying on a path or flag.

Make baseline updates reviewable in CI

Keep the UI code change and its accepted screenshots in the same review where possible. That makes it easier to verify that a baseline change corresponds to the intended implementation rather than silently masking a regression.

Rank #2
Philips 22 Inch Computer Monitor FHD 100Hz VA VESA Flicker-Free, 221V8LB
  • CRISP CLARITY: This 22 inch class (21.5″ viewable) Philips V line monitor delivers crisp Full HD 1920x1080 visuals. Enjoy movies, shows and videos with remarkable detail
  • 100HZ FAST REFRESH RATE: 100Hz brings your favorite movies and video games to life. Stream, binge, and play effortlessly
  • SMOOTH ACTION WITH ADAPTIVE-SYNC: Adaptive-Sync technology ensures fluid action sequences and rapid response time. Every frame will be rendered smoothly with crystal clarity and without stutter
  • INCREDIBLE CONTRAST: The VA panel produces brighter whites and deeper blacks. You get true-to-life images and more gradients with 16.7 million colors
  • THE PERFECT VIEW: The 178/178 degree extra wide viewing angle prevents the shifting of colors when viewed from an offset angle, so you always get consistent colors

For CI, Loki documents --requireReference, which fails a test when references are missing, alongside a static Storybook build-and-test pattern. Requiring existing references helps prevent a missing baseline from being silently treated as a normal update. Consult the Loki CI documentation and adapt its pattern to your pinned version and CI environment.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Pick a capture target that fits the stories

Use the capture target your project actually needs. Web stories may run with Docker Chrome, local Chrome, or Chrome in AWS Lambda; native stories may require the iOS simulator or Android emulator. Repeatability depends on running comparisons under a consistent, correctly configured environment, so investigate environment differences before approving a visual shift.

Rank #3
Dell 24 Monitor - SE2426H - 23.8-inch FHD (1920x1080) 144Hz 1ms Display, in-Plane Switching (IPS) Technology, AMD FreeSync™, TÜV 3-Star 2X HDMI, Tilt
  • Clear visuals. Fluid motion: A 144Hz refresh rate and 1ms MPRT deliver smooth, tear‑free motion across work, gaming, and streaming for clearer, more fluid viewing.
  • Eye comfort: TÜV Rheinland 3‑star* certification reduces harmful blue light while preserving stunning color quality without compromise. *TÜV Rheinland 3-star eye comfort certification.
  • Wide viewing angle: Get consistent views across a wide 178° /178° viewing angle.
  • In-Plane Switching (IPS): See excellent color accuracy and consistency across wide viewing angles with In-plane Switching (IPS) technology.
  • Ultra-thin bezels: Maximize your viewing experience with thin bezels.

The Loki README lists Node 16 or later as a prerequisite. This is version-sensitive: verify the prerequisites for the Loki release your project uses rather than applying that README statement to every release.

Troubleshoot unexpected differences

  • Many screenshots changed at once: Do not bulk-approve on that evidence alone. Check whether Storybook, browser, simulator, emulator, or other capture setup differs from the environment used for the references. Correct the environment or investigate the UI change, then rerun the test.
  • A current screenshot is blank, incomplete, or missing content: Confirm Storybook and the required target are running and that the relevant story renders as expected. Fix the underlying setup or story issue; do not accept a faulty capture as a new reference.
  • The difference image shows an intended redesign: Verify the new appearance against the change being reviewed, then approve the generated images and commit the updated references with the code.
  • Only some captures should be replaced: Review failed captures individually and consider --diffOnly to limit approval to files that failed the prior test run. Confirm the option’s behavior for your Loki version in the CLI reference.
  • CI fails because references are missing: With --requireReference, a missing baseline is an error to address explicitly. Generate and review the appropriate reference in the intended workflow, commit it, and rerun CI rather than weakening the check to conceal the omission.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Or skip the browser setup

If the task is to capture a website rather than maintain Loki’s story-based reference workflow, ScreenshotNeo offers a screenshot API and MCP server. Its API takes a URL in one GET request and can return an image or PDF. For example, this cURL request saves a WebP screenshot; see the ScreenshotNeo API documentation for setup and options.

Rank #4
Sale
Samsung 27" Essential S3 (S36GD) Series FHD 1800R Curved Computer Monitor
  • CURVED FOR ENHANCED ENGAGEMENT: An immersive viewing experience with a curved monitor that wraps more closely around your field of vision; It creates a wider view, enhancing depth perception and minimizing peripheral distraction
  • SMOOTH PERFORMANCE FOR SEAMLESS CONTENT: Stay in the action when playing games, watching videos, or working on creative projects; The 100Hz refresh rate reduces lag and motion blur so you don't miss a thing in fast-paced moments¹
  • MORE GAMING POWER: Gain the edge with optimizable game settings; Color and image contrast can be adjusted to see scenes more vividly and spot enemies hiding in the dark; Game Mode adjusts any game to fill the screen so you can view every detail²
  • KEEP IT EASY ON THE EYES: Care for your eyes and stay comfortable, even during long sessions; Advanced eye comfort technology certified by TÜV reduces eye strain by minimizing blue light and reducing irritating screen flicker²
  • INCREASED VERSATILITY: Connect to more; Plug devices straight into your monitor for increased flexibility, making your computing environment even more convenient

curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

ScreenshotNeo accepts cookie or consent banners like a visitor and removes more than 60 known consent platforms, newsletter popups, and chat widgets before capture; each step can be turned off. Bot checks or CAPTCHAs, blank pages, timeouts, failed loads, and cache hits are not billed, and responses identify the page verdict and billing status in headers. Its MCP server provides take_screenshot, get_page_info, and capture_pdf for AI agents. The free plan includes 1,000 screenshots per month with no card; paid plans start at $5 for 3,000 shots.

Sign up for ScreenshotNeo’s free plan to try 1,000 screenshots a month with no card.

Best Value
Sale
Sceptre New 22-Inch Gaming Monitor, FHD 1080p, Up to 144Hz, HDMI, DisplayPort, Built-in Speakers, Machine Black (E225W-FW144 Series, 2026)
  • 【INTEGRATED SPEAKERS】Whether you're at work or in the midst of an intense gaming session, our built-in speakers provide rich and seamless audio, all while keeping your desk clutter-free.
  • 【EASY ON THE EYES】 Protect your eyes and enhance your comfort with Blue-Light Shift technology. This feature reduces harmful blue light emissions from your screen, helping to alleviate eye strain during long hours of use and promoting healthier viewing habits.
  • 【WIDEN YOUR PERSPECTIVE】Our sleek minimal bezel design ensures undivided attention. The nearly bezel-free display seamlessly connects in a dual monitor arrangement, delivering an unobstructed view that lets you focus on more at once, completely distraction-free.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
Windows Errors? Fix Them Before They SpreadFree repair scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.