Skip to content

✅ Replace E2E DB dumps with Playwright storage states#1115

Draft
gwennlbh wants to merge 4 commits intomainfrom
playwright-storagestate
Draft

✅ Replace E2E DB dumps with Playwright storage states#1115
gwennlbh wants to merge 4 commits intomainfrom
playwright-storagestate

Conversation

@gwennlbh
Copy link
Member

Closes #1114

@gwennlbh
Copy link
Member Author

Blocked on microsoft/playwright#38915

@github-actions
Copy link
Contributor

github-actions bot commented Jan 23, 2026

Bundle Stats

Hey there, this message comes from a GitHub action that helps you and reviewers to understand how these changes affect the size of this project's bundle.

As this PR is updated, I'll keep you updated on how the bundle size is impacted.

Total

Files count Total bundle size % Changed
228 46.45 MB
12.11 MB
0%

Changeset

No files were changed

View detailed bundle breakdown

Added

Asset File Size % Changed
_app/immutable/chunks/nmQqgWG6.js 0 B → 61.06 kB (+61.06 kB)
0 B → 26.99 kB (gzip)
-
_app/immutable/nodes/12.BFeK21Ou.js 0 B → 43.23 kB (+43.23 kB)
0 B → 19.1 kB (gzip)
-
_app/immutable/nodes/14.hoKHVbZL.js 0 B → 34.29 kB (+34.29 kB)
0 B → 12.29 kB (gzip)
-
_app/immutable/nodes/2.CASYn-td.js 0 B → 25.16 kB (+25.16 kB)
0 B → 11.16 kB (gzip)
-
_app/immutable/nodes/5.BRD5SAGW.js 0 B → 10.46 kB (+10.46 kB)
0 B → 4.37 kB (gzip)
-
app/immutable/entry/app.GP_RDJf.js 0 B → 8.67 kB (+8.67 kB)
0 B → 2.69 kB (gzip)
-

Removed

Asset File Size % Changed
_app/immutable/chunks/ZfclCQa5.js 61.06 kB → 0 B (-61.06 kB)
26.99 kB → 0 B (gzip)
-100%
_app/immutable/nodes/12.Dl0wSuy0.js 43.23 kB → 0 B (-43.23 kB)
19.1 kB → 0 B (gzip)
-100%
_app/immutable/nodes/14.f6A6_FWR.js 34.29 kB → 0 B (-34.29 kB)
12.29 kB → 0 B (gzip)
-100%
_app/immutable/nodes/2.BzYjFcql.js 25.16 kB → 0 B (-25.16 kB)
11.16 kB → 0 B (gzip)
-100%
_app/immutable/nodes/5.BtUd_lyn.js 10.46 kB → 0 B (-10.46 kB)
4.37 kB → 0 B (gzip)
-100%
_app/immutable/entry/app.C_rRLpBd.js 8.67 kB → 0 B (-8.67 kB)
2.68 kB → 0 B (gzip)
-100%

Bigger

No assets were bigger

Smaller

No assets were smaller

@gwennlbh
Copy link
Member Author

will try this patch tmrw

diff --git a/node_modules/playwright-core/lib/utils/isomorphic/utilityScriptSerializer.js b/node_modules/playwright-core/lib/utils/isomorphic/utilityScriptSerializer.js
index 8252f2d..577b709 100644
--- a/node_modules/playwright-core/lib/utils/isomorphic/utilityScriptSerializer.js
+++ b/node_modules/playwright-core/lib/utils/isomorphic/utilityScriptSerializer.js
@@ -141,6 +141,11 @@ function parseEvaluationResultValue(value, handles = [], refs = /* @__PURE__ */
       return handles[value.h];
     if ("ta" in value)
       return base64ToTypedArray(value.ta.b, typedArrayConstructors[value.ta.k]);
+       if ("ab" in value)
+       {
+               const array = base64ToTypedArray(value.ab.b, Uint8Array);
+               return array.buffer;
+       }
   }
   return value;
 }
@@ -206,6 +211,9 @@ ${value.stack}`;
     if (isTypedArray(value, ctor))
       return { ta: { b: typedArrayToBase64(value), k } };
   }
+  if (isTypedArray(value, ArrayBuffer)) {
+       return { ab: {b: typedArrayToBase64(value) } };
+  }
   const id = visitorInfo.visited.get(value);
   if (id)
     return { ref: id };

@gwennlbh gwennlbh force-pushed the playwright-storagestate branch from a555bc3 to 334544c Compare February 1, 2026 15:37
@gwennlbh gwennlbh temporarily deployed to #1115: App preview February 1, 2026 15:40 — with GitHub Actions Inactive
@gwennlbh gwennlbh temporarily deployed to #1115: Unit tests February 1, 2026 15:41 — with GitHub Actions Inactive
@gwennlbh gwennlbh temporarily deployed to #1115: E2E tests February 1, 2026 15:43 — with GitHub Actions Inactive
@gwennlbh gwennlbh force-pushed the playwright-storagestate branch 2 times, most recently from 953cfee to e669cfa Compare February 6, 2026 16:37
@gwennlbh gwennlbh temporarily deployed to #1115: Unit tests February 6, 2026 16:44 — with GitHub Actions Inactive
@gwennlbh gwennlbh changed the title Replace E2E DB dumps with Playwright storage states ✅ Replace E2E DB dumps with Playwright storage states Feb 9, 2026
@github-actions github-actions bot force-pushed the playwright-storagestate branch from e669cfa to c4c8041 Compare February 10, 2026 08:03
@github-actions
Copy link
Contributor

✅ Coverage is up by 0.02% (from 49.95% to 49.97%)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

use Playwright storageState instead of loading database dumps

1 participant