Home / Companies / Cypress / Blog / Post Details
Content Deep Dive

Make Cypress Videos Look Old School

Blog post from Cypress

Post Details
Company
Date Published
Author
Gleb Bahmutov
Word Count
1,072
Language
English
Hacker News Points
-
Summary

In a blog post by Gleb Bahmutov, a new trial feature called experimentalRunEvents is introduced for Cypress, allowing developers to run Node code before or after executing a spec file using event hooks that require operating system access. This feature is demonstrated through a tutorial that showcases a playful application of the after:spec hook, which re-encodes test spec videos to appear like old vintage movie reels as an April Fools' joke. The process involves utilizing the ffmpeg utility to adjust the video colors to a yellowish hue and overlaying scaled scratches, aided by additional tools like ffprobe for video resolution adjustments. The tutorial provides a detailed guide on configuring and enabling these experimental hooks, with a focus on how to create and combine vintage video effects, ultimately producing a nostalgic effect using Cypress's capabilities.