[PR #6381] feat(e2e): add static asset caching for CI test runs #6478

Closed
opened 2026-02-28 21:28:56 -06:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/actualbudget/actual/pull/6381

State: closed
Merged: No


Summary

Integrates playwright-network-cache to cache static assets during E2E tests in CI environments, reducing network requests and improving test execution speed.

Changes

  • Added playwright-network-cache dependency
  • Created cacheRoute fixture in e2e/fixtures.ts for static asset caching
  • Caches .js, .css, .png, .jpg, .jpeg, .gif, .svg, .ico, .woff, .woff2, .ttf, .eot files
  • Only enabled when process.env.CI is set (not used locally)
  • Added e2e/.network-cache to .gitignore

Testing

The cache will automatically be used in CI E2E test runs. The first run will populate the cache, and subsequent runs will use cached assets.

**Original Pull Request:** https://github.com/actualbudget/actual/pull/6381 **State:** closed **Merged:** No --- ## Summary Integrates [playwright-network-cache](https://github.com/vitalets/playwright-network-cache) to cache static assets during E2E tests in CI environments, reducing network requests and improving test execution speed. ## Changes - Added `playwright-network-cache` dependency - Created `cacheRoute` fixture in `e2e/fixtures.ts` for static asset caching - Caches `.js`, `.css`, `.png`, `.jpg`, `.jpeg`, `.gif`, `.svg`, `.ico`, `.woff`, `.woff2`, `.ttf`, `.eot` files - Only enabled when `process.env.CI` is set (not used locally) - Added `e2e/.network-cache` to `.gitignore` ## Testing The cache will automatically be used in CI E2E test runs. The first run will populate the cache, and subsequent runs will use cached assets.
GiteaMirror added the pull-request label 2026-02-28 21:28:56 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#6478