Halloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run ScanHalloween DealsAmazon USOctober picks are moving - compare before checkoutAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk5 min

How to Schedule Loki Screenshot Tests for Storybook in CI

Loki runs Storybook screenshot comparisons in CI; use your CI provider’s scheduler for recurrence, preserve references, and review visual diffs before approving changes.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To schedule Loki screenshot checks, create a workflow in your CI provider that builds or serves your Storybook, then run Loki’s test command on the recurrence configured in that provider. Loki handles screenshot capture and visual comparison; the reviewed Loki documentation does not describe a built-in time scheduler or prescribe schedule syntax for a particular CI service.

What Loki schedules—and what it does not

Loki is used for visual regression testing of Storybook: it captures component screenshots and compares them with reference images. Its CI guidance shows building a static Storybook and running Loki against it. Recurrence is a separate concern: configure the scheduler in your chosen CI provider to start that workflow. Loki’s CI documentation does not establish provider-specific cron syntax, recurrence limits, or a native Loki timer.

As an Amazon Associate I earn from qualifying purchases.

This is a Storybook testing workflow, not a general-purpose scheduler for arbitrary public websites. The CI job must make the Storybook build or server available to Loki; Loki does not start that server for you. The Loki project documentation lists Chrome in Docker, Chrome in AWS Lambda, local Chrome, and iOS and Android simulators among execution targets; check the current project documentation for compatibility with your setup.

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

Prepare Loki references before scheduling recurring checks

  1. Make Storybook available. Configure the CI job to build Storybook or start the server Loki will use. Loki does not provision or launch it automatically.
  2. Create initial reference screenshots. Use Loki’s update workflow to generate references, then review them. The CLI also provides an approve command for managing references; consult the CLI documentation for current command details.
  3. Keep references accessible to CI. Commit the approved reference images or otherwise make them available to the scheduled job so comparisons use the intended baseline.
  4. Run a test before enabling recurrence. Confirm the CI environment can build Storybook, launch the required browser target, find the references, and produce current screenshots and differences.

Configure the scheduled CI workflow

Set the recurrence in the scheduler for your CI provider, then have that scheduled workflow build Storybook and invoke Loki in test mode. Loki’s CI example uses a static build and the following command pattern:

#1 Best Overall
Philips 24 Inch Computer Monitor FHD 100Hz VA VESA Flicker-Free, 241V8LB | 1920×1080 LED Monitor, 4ms GtG, Adaptive Sync, HDMI 1.4, Tilt Adjust, Low Blue Light, 4yr Advance Replacement Warranty
  • 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
loki --requireReference --reactUri file:./storybook-static

Adapt the invocation to the installed Loki version and your project’s package scripts. The --reactUri file:./storybook-static argument points Loki at the static Storybook output in this example. --requireReference makes the run fail if a reference image is missing, rather than treating an absent baseline as an ordinary comparison. See the CI example and CLI reference before adopting exact command details.

The reviewed Loki documentation does not specify a CI provider’s schedule syntax. Use the selected provider’s current documentation for configuring timed runs and any manual-dispatch option. A useful schedule should also account for who will inspect failures and whether the workflow can run with the permissions and resources it needs.

Rank #2
Philips 22 Inch Computer Monitor FHD 100Hz VA VESA Flicker-Free, 221V8LB | 1920×1080 LED Monitor, 4ms GtG, Adaptive Sync, HDMI 1.4, Tilt Adjust, Low Blue Light, 4yr Advance Replacement Warranty
  • 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

Read test results without silently changing the baseline

Loki’s test command captures screenshots and compares them with references. By default, its CLI documentation names these output directories:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Output Default directory How to use it
Reference screenshots ./.loki/reference The baseline images used for comparison.
Current screenshots ./.loki/current The images produced by the current test run.
Differences ./.loki/difference Visual changes to inspect when a comparison fails.

These locations are documented in the Loki CLI guide. Preserve current screenshots and differences as CI artifacts if your provider supports it, and choose retention settings according to your review needs; Loki’s cited CLI documentation does not prescribe an artifact retention period.

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.

A scheduled test should report changes, not silently bless them. Inspect the differences, determine whether the visual change is expected, and only then use Loki’s reference-management workflow to update or approve the baseline. The getting-started guide covers the reference workflow.

Make recurring runs reproducible

Scheduled checks are useful only when the environment can reproduce the comparison. Keep the Storybook build, reference images, browser target, and relevant runtime configuration consistent between runs. Account for external dependencies that can change what Storybook renders, and avoid treating every difference as a product regression without reviewing the images.

Rank #4
Sale
Samsung 27" Essential S3 (S36GD) Series FHD 1800R Curved Computer Monitor | 100Hz, Game Mode, Advanced Eye Comfort, HDMI and D-sub Ports (LS27D366GANXZA)
  • 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

When choosing a CI setup, check whether it supports the recurrence and manual runs you need, whether it can reliably build or reach Storybook, how consistently it runs the browser environment, how it retains screenshots and diffs, and how reviewers approve intentional baseline changes. The Loki repository documents several execution targets, but compatibility can change, so verify the current documentation for your chosen target.

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

Troubleshoot common scheduled-run failures

  • Loki cannot reach Storybook: The build or server may not have completed, or the URI may not point to the output location. Ensure the workflow makes Storybook available before invoking Loki and verify the URI, including file:./storybook-static when using the documented static-build pattern.
  • The run fails because a reference is missing: With --requireReference, missing baselines cause failure. Generate and review the needed references using the update workflow, then make them accessible to CI.
  • Differences appear unexpectedly: Inspect the current and difference output directories. Check whether the Storybook content or test environment changed before approving a new baseline.
  • The scheduled workflow does not start: Loki does not provide the timer in the reviewed documentation. Check the CI provider’s schedule configuration, recurrence rules, and workflow triggers in that provider’s current documentation.
  • Browser execution fails in CI: Confirm that the selected Loki execution target is supported and correctly available in the job environment. Use the current Loki project documentation to validate target compatibility.
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 you need a website screenshot API rather than Loki’s Storybook visual-regression workflow, ScreenshotNeo takes a screenshot from one GET request. For example, using cURL:

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.
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp

See the ScreenshotNeo API documentation for request options. It accepts cookie and consent banners like a visitor and removes more than 60 known consent platforms, newsletter popups, and chat widgets before capture; each of those steps can be turned off. Bot checks or CAPTCHAs, blank pages, timeouts, failed loads, and cache hits are not billed, and responses indicate the page verdict and billing status in headers. Its MCP server provides take_screenshot, get_page_info, and capture_pdf tools for Claude, Cursor, and other MCP clients. The free plan includes 1,000 shots per month without a card; paid plans start at $5 for 3,000 shots.

Sign up for ScreenshotNeo’s free plan: 1,000 screenshots a month, no card required.

Frequently Asked Questions

Does Loki have a built-in schedule for screenshot tests?

The reviewed Loki documentation describes running in CI, but not a native time scheduler. Configure recurrence in your CI provider.

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

Can Loki schedule screenshots of any public website?

The documented use here is visual regression testing for Storybook. It does not establish a general-purpose scheduler for arbitrary public websites.

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
Outdated Drivers Are Slowing You DownFree scan - exact matches
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.