fix(e2e): use correct V2 draft storage key prefix

Amp-Thread-ID: https://ampcode.com/threads/T-019c17aa-1890-762e-ab68-28cc797456b4
This commit is contained in:
bymyself
2026-01-31 21:56:00 -08:00
parent 41e43bf237
commit 734cdc47c8

View File

@@ -708,7 +708,7 @@ test.describe('Load workflow', { tag: '@screenshot' }, () => {
() => {
for (let i = 0; i < window.localStorage.length; i++) {
const key = window.localStorage.key(i)
if (key?.startsWith('Comfy.Draft:')) {
if (key?.startsWith('Comfy.Workflow.Draft.v2:')) {
const value = window.localStorage.getItem(key)
// Check that the draft contains collapsed node flags
if (value && value.includes('"flags":')) {