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(