chromaui / chromatic-e2e

Archive end-to-end tests to be replayed in Storybook and Chromatic
MIT License
13 stars 4 forks source link

Cypress doesn't wait for idle timeout #54

Closed skitterm closed 6 months ago

skitterm commented 6 months ago

What Changed

Cypress doesn't wait 10 seconds (the global timeout amount) to finish tests anymore.

Instead of using the Watcher.idle() to know when Cypress archives can be complete, I'm not waiting at all. This is because cy.visit() (the command to visit a page) already waits for all resources to be loaded before it completes.

This also means users' Cypress tests aren't any slower when they add Chromatic since we're not waiting a minimum of 500ms after each test.

Also changed

How to test

Change Type

📦 Published PR as canary version: 0.0.55--canary.54.b107684.0
:sparkles: Test out this PR locally via: ```bash npm install @chromaui/test-archiver@0.0.55--canary.54.b107684.0 # or yarn add @chromaui/test-archiver@0.0.55--canary.54.b107684.0 ```
thafryer commented 6 months ago

:rocket: PR was released in v0.0.55 :rocket: