chromaui / chromatic-e2e

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

Enable manual snapshots for cypress - test non fork #139

Closed ethriel3695 closed 1 month ago

ethriel3695 commented 1 month ago

Issue: #

What Changed

Added logic to manually snapshot in Cypress

How to test

Use the canary version of @chromatic-com/cypress against your project and verify that manual snapshots work. "@chromatic-com/cypress": "0.6.7-3f138a5-20240522184241",

  1. Update the package version in your repository
  2. Add the script "archive-storybook": "archive-storybook", to your package.json
  3. Run the command: ELECTRON_EXTRA_LAUNCH_ARGS=--remote-debugging-port=9222 yarn cypress run
  4. Run the command {packageManager} archive-storybook
  5. Verify the archived Storybook renders correctly

The downloads folder now works when taking manual snapshots

Screenshot 2024-05-23 at 3 41 50 PM
codacy-production[bot] commented 1 month ago

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
:white_check_mark: +0.00% (target: -1.00%) :white_check_mark: (target: 80.00%)
Coverage variation details | | Coverable lines | Covered lines | Coverage | | ------------- | ------------- | ------------- | ------------- | | Common ancestor commit (1fc405b6569a076ad2acd4ff3e3fa0f4907c8ae2) | 225 | 215 | 95.56% | | | Head commit (95c9141646af9b77c31c62762c8f003124403e99) | 225 (+0) | 215 (+0) | 95.56% (**+0.00%**) | **Coverage variation** is the difference between the coverage for the head and common ancestor commits of the pull request branch: ` - `
Diff coverage details | | Coverable lines | Covered lines | Diff coverage | | ------------- | ------------- | ------------- | ------------- | | Pull request (#139) | 0 | 0 | **∅ (not applicable)** | **Diff coverage** is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: `/ * 100%`

See your quality gate settings    Change summary preferences

Codacy will stop sending the deprecated coverage status from June 5th, 2024. Learn more

ethriel3695 commented 1 month ago

Closed this because we want to merge https://github.com/chromaui/chromatic-e2e/pull/134 We only opened this PR to test some things internally before approving and merging.