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

Closed
opened 2026-06-05 19:40:27 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/actualbudget/actual/pull/6381
Author: @MatissJanis
Created: 12/12/2025
Status: Closed

Base: masterHead: matiss/e2e-static-asset-caching


📝 Commits (3)

  • 3d56fd2 feat(e2e): add static asset caching for CI test runs
  • 9000156 chore: update playwright-network-cache dependency to version 0.2.2
  • 0e2a5d8 refactor(e2e): enhance cacheRoute fixture type definition

📊 Changes

5 files changed (+54 additions, -3 deletions)

View changed files

📝 packages/desktop-client/.gitignore (+1 -0)
📝 packages/desktop-client/e2e/fixtures.ts (+34 -2)
📝 packages/desktop-client/package.json (+1 -0)
upcoming-release-notes/6381.md (+6 -0)
📝 yarn.lock (+12 -1)

📄 Description

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.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/actualbudget/actual/pull/6381 **Author:** [@MatissJanis](https://github.com/MatissJanis) **Created:** 12/12/2025 **Status:** ❌ Closed **Base:** `master` ← **Head:** `matiss/e2e-static-asset-caching` --- ### 📝 Commits (3) - [`3d56fd2`](https://github.com/actualbudget/actual/commit/3d56fd28b8bb723cf9341f688bd6633dcab40216) feat(e2e): add static asset caching for CI test runs - [`9000156`](https://github.com/actualbudget/actual/commit/9000156452ef6bdc659631f327a5e2471cfb3afa) chore: update playwright-network-cache dependency to version 0.2.2 - [`0e2a5d8`](https://github.com/actualbudget/actual/commit/0e2a5d8b23d057be6da3bc36bfa2a94c327c632b) refactor(e2e): enhance cacheRoute fixture type definition ### 📊 Changes **5 files changed** (+54 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `packages/desktop-client/.gitignore` (+1 -0) 📝 `packages/desktop-client/e2e/fixtures.ts` (+34 -2) 📝 `packages/desktop-client/package.json` (+1 -0) ➕ `upcoming-release-notes/6381.md` (+6 -0) 📝 `yarn.lock` (+12 -1) </details> ### 📄 Description ## 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-06-05 19:40:27 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#113295