Skip to main content

Stabilize Date & Time

Mitigate UI flakiness with stable date & time in visual testing: Hide dynamic dates or freeze them for consistency using Argos's practical solutions.

Hiding the Date

Using Argos helpers, you can choose to hide a date or a time by adding data-visual-test="transparent".

<time data-visual-test="transparent">10 oct, 2012</time>

Freezing the Date

If you are using dates (not precise time), you can stabilize them in your seeds by running a script that updates dates just before running your E2E tests.