From 5a23d2e733f070ddaf76fec318f56515c1834eaa Mon Sep 17 00:00:00 2001 From: rebuildup Date: Sun, 29 Nov 2026 21:06:06 +0900 Subject: [PATCH] test(e2e): read can-go-up attribute from directory-browser component root The data-directory-browser-can-go-up attribute is set on the component root div inside the widget tile shell ([data-widget-instance-id]); getAttribute on the shell itself always returns null (UC-D09 canGoUp=null). Query the attribute inside the tile instead. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- scripts/verify/e2e/cases/widgets.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/verify/e2e/cases/widgets.ts b/scripts/verify/e2e/cases/widgets.ts index 9170092d..ebebdb7d 100644 --- a/scripts/verify/e2e/cases/widgets.ts +++ b/scripts/verify/e2e/cases/widgets.ts @@ -1115,11 +1115,14 @@ export const widgetCases: E2ECase[] = [ `subEntries=${String(subEntries)}`, ), ); + // The attribute lives on the directory-browser component + // root inside the tile shell, not on the shell itself. const canGoUp = await ctx.evalJs( panel, `(() => { const host = document.querySelector(${JSON.stringify(tileSel)}); - return host ? host.getAttribute("data-directory-browser-can-go-up") : "missing"; + const el = host && host.querySelector("[data-directory-browser-can-go-up]"); + return el ? el.getAttribute("data-directory-browser-can-go-up") : "missing"; })()`, ); checks.push(