Codex/optimize data relationship graph followup #20
Annotations
6 errors
|
Frontend test
Process completed with exit code 1.
|
|
Frontend test:
apps/frontend/tests/unit/settings-modeling-workspace.spec.tsx#L444
Error: expect(element).toHaveAttribute("data-open", "true") // element.getAttribute("data-open") === "true"
Expected the element to have attribute:
data-open="true"
Received:
data-open="false"
❯ tests/unit/settings-modeling-workspace.spec.tsx:444:59
|
|
Frontend test:
apps/frontend/tests/unit/settings-modeling-view-sync.spec.tsx#L201
TestingLibraryElementError: Unable to find an element by: [data-testid="selected-modeling-node"]
Ignored nodes: comments, script, style
<body
style=""
>
<div>
<div
class="space-y-4 px-4 py-4 sm:px-6"
>
<div
class="sr-only"
>
<div
class="flex flex-wrap items-center justify-between gap-3"
>
<div
class="space-y-1"
>
<a
class="inline-flex items-center gap-1 text-sm text-[var(--action-primary)]"
href="/settings"
>
<svg
class="lucide lucide-arrow-left h-4 w-4"
fill="none"
height="24"
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
viewBox="0 0 24 24"
width="24"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="m12 19-7-7 7-7"
/>
<path
d="M19 12H5"
/>
</svg>
返回设置
</a>
<h1
class="text-xl font-semibold text-[var(--text-primary)]"
>
Modeling Workbench
</h1>
<p
class="text-sm text-[var(--text-secondary)]"
>
Flowchart-first 工作台:左侧资产树 + 中央 ERD 画布 + 右侧上下文,统一管理 Models / Views / Relationships。
</p>
</div>
</div>
<div
class="grid grid-cols-1 gap-3 rounded-lg border border-[var(--border-default)] bg-white/90 p-4 sm:grid-cols-2"
>
<div
class="group/native-select relative w-fit has-[select:disabled]:opacity-50"
data-size="default"
data-slot="native-select-wrapper"
>
<select
aria-label="选择工作空间"
class="h-8 w-full min-w-0 appearance-none rounded-lg border border-input bg-transparent py-1 pr-8 pl-2.5 text-sm transition-colors outline-none select-none selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] data-[size=sm]:py-0.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40"
data-size="default"
data-slot="native-select"
disabled=""
>
<option
class="bg-[Canvas] text-[CanvasText]"
data-slot="native-select-option"
value="ws-sync"
>
Workspace Sync
</option>
</select>
<svg
aria-hidden="true"
class="lucide lucide-chevron-down pointer-events-none absolute top-1/2 right-2.5 size-4 -translate-y-1/2 text-muted-foreground select-none"
data-slot="native-select-icon"
fill="none"
height="24"
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
viewBox="0 0 24 24"
width="24"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="m6 9 6 6 6-6"
/>
</svg>
</div>
<div
class="group/native-select relative w-fit has-[select:disabled]:opacity-50"
data-size="default"
data-slot="native-select-wrapper"
>
<select
aria-label="选择数据源"
class="h-8 w-full min-w-0 appearance-none rounded-lg border border-input bg-tr
|
|
Frontend test:
apps/frontend/tests/unit/settings-modeling-view-sync.spec.tsx#L184
TestingLibraryElementError: Unable to find an element by: [data-testid="selected-modeling-node"]
Ignored nodes: comments, script, style
<body
style=""
>
<div>
<div
class="space-y-4 px-4 py-4 sm:px-6"
>
<div
class="sr-only"
>
<div
class="flex flex-wrap items-center justify-between gap-3"
>
<div
class="space-y-1"
>
<a
class="inline-flex items-center gap-1 text-sm text-[var(--action-primary)]"
href="/settings"
>
<svg
class="lucide lucide-arrow-left h-4 w-4"
fill="none"
height="24"
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
viewBox="0 0 24 24"
width="24"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="m12 19-7-7 7-7"
/>
<path
d="M19 12H5"
/>
</svg>
返回设置
</a>
<h1
class="text-xl font-semibold text-[var(--text-primary)]"
>
Modeling Workbench
</h1>
<p
class="text-sm text-[var(--text-secondary)]"
>
Flowchart-first 工作台:左侧资产树 + 中央 ERD 画布 + 右侧上下文,统一管理 Models / Views / Relationships。
</p>
</div>
</div>
<div
class="grid grid-cols-1 gap-3 rounded-lg border border-[var(--border-default)] bg-white/90 p-4 sm:grid-cols-2"
>
<div
class="group/native-select relative w-fit has-[select:disabled]:opacity-50"
data-size="default"
data-slot="native-select-wrapper"
>
<select
aria-label="选择工作空间"
class="h-8 w-full min-w-0 appearance-none rounded-lg border border-input bg-transparent py-1 pr-8 pl-2.5 text-sm transition-colors outline-none select-none selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] data-[size=sm]:py-0.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40"
data-size="default"
data-slot="native-select"
disabled=""
>
<option
class="bg-[Canvas] text-[CanvasText]"
data-slot="native-select-option"
value="ws-sync"
>
Workspace Sync
</option>
</select>
<svg
aria-hidden="true"
class="lucide lucide-chevron-down pointer-events-none absolute top-1/2 right-2.5 size-4 -translate-y-1/2 text-muted-foreground select-none"
data-slot="native-select-icon"
fill="none"
height="24"
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
viewBox="0 0 24 24"
width="24"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="m6 9 6 6 6-6"
/>
</svg>
</div>
<div
class="group/native-select relative w-fit has-[select:disabled]:opacity-50"
data-size="default"
data-slot="native-select-wrapper"
>
<select
aria-label="选择数据源"
class="h-8 w-full min-w-0 appearance-none rounded-lg border border-input bg-tr
|
|
Frontend test:
apps/frontend/tests/unit/settings-modeling-layout-parity.spec.tsx#L264
TestingLibraryElementError: Unable to find an element by: [data-testid="layout-mock-details-panel"]
Ignored nodes: comments, script, style
<div
class="absolute -left-[9999px] top-0 w-[320px] space-y-4 2xl:w-[340px]"
data-testid="modeling-layout-context-pane"
id="modeling-context-pane"
>
<header
class="px-1"
data-testid="modeling-layout-context-header"
>
<p
class="text-xs font-semibold uppercase tracking-wide text-[var(--text-secondary)]"
>
Context
</p>
</header>
<div
class="space-y-4 relative"
data-open="false"
data-testid="modeling-context-drawer"
>
<div
class="space-y-4"
>
<div
data-testid="layout-mock-schema-panel"
>
schema-panel
</div>
<div
data-testid="layout-mock-deploy-panel"
>
deploy-panel
</div>
</div>
</div>
</div>
❯ Object.getElementError ../../node_modules/.pnpm/@testing-library+dom@10.4.1/node_modules/@testing-library/dom/dist/config.js:37:19
❯ ../../node_modules/.pnpm/@testing-library+dom@10.4.1/node_modules/@testing-library/dom/dist/query-helpers.js:76:38
❯ ../../node_modules/.pnpm/@testing-library+dom@10.4.1/node_modules/@testing-library/dom/dist/query-helpers.js:52:17
❯ ../../node_modules/.pnpm/@testing-library+dom@10.4.1/node_modules/@testing-library/dom/dist/query-helpers.js:95:19
❯ tests/unit/settings-modeling-layout-parity.spec.tsx:264:32
|
|
Frontend test:
apps/frontend/tests/unit/settings-modeling-deploy.spec.tsx#L309
TestingLibraryElementError: Unable to find an accessible element with the role "textbox" and name "显示名称"
Here are the accessible roles:
link:
Name "返回设置":
<a
class="inline-flex items-center gap-1 text-sm text-[var(--action-primary)]"
href="/settings"
/>
--------------------------------------------------
heading:
Name "Modeling Workbench":
<h1
class="text-xl font-semibold text-[var(--text-primary)]"
/>
--------------------------------------------------
paragraph:
Name "":
<p
class="text-sm text-[var(--text-secondary)]"
/>
Name "":
<p />
Name "":
<p />
Name "":
<p />
Name "":
<p />
Name "":
<p />
Name "":
<p />
Name "":
<p />
Name "":
<p />
Name "":
<p
class="text-xs font-semibold uppercase tracking-wide text-[var(--text-secondary)]"
/>
Name "":
<p
class="text-sm font-semibold text-[var(--text-primary)]"
/>
Name "":
<p
class="text-xs text-[var(--text-secondary)]"
/>
Name "":
<p
class="rounded-md border px-3 py-2 text-sm border-border bg-secondary/60 text-muted-foreground"
/>
Name "":
<p
class="text-xs font-semibold uppercase tracking-wide text-[var(--text-secondary)]"
/>
Name "":
<p
class="text-xs font-semibold uppercase tracking-wide text-[var(--text-secondary)]"
/>
Name "":
<p
class="text-sm font-semibold text-[var(--text-primary)]"
/>
Name "":
<p
class="text-xs text-[var(--text-secondary)]"
/>
Name "":
<p
class="font-medium text-[var(--text-primary)]"
/>
Name "":
<p
class="mt-1"
/>
Name "":
<p
class="mt-1"
/>
Name "":
<p
class="font-medium"
/>
Name "":
<p
class="mt-1"
/>
Name "":
<p
class="rounded-md border px-3 py-2 text-sm border-border bg-secondary/60 text-muted-foreground"
/>
Name "":
<p
class="text-sm font-semibold text-[var(--text-primary)]"
/>
Name "":
<p
class="text-xs text-[var(--text-secondary)]"
/>
Name "":
<p
class="rounded-md border px-3 py-2 text-sm border-border bg-secondary/60 text-muted-foreground"
/>
Name "":
<p
class="text-lg font-semibold text-[var(--text-primary)]"
/>
Name "":
<p
class="text-xs text-[var(--text-secondary)]"
/>
Name "":
<p
class="text-xs font-medium uppercase tracking-wide text-[var(--text-secondary)]"
/>
Name "":
<p
class="text-sm text-[var(--text-primary)]"
/>
Name "":
<p
class="text-xs font-medium uppercase tracking-wide text-[var(--text-secondary)]"
/>
Name "":
<p
class="text-sm text-[var(--text-primary)]"
/>
Name "":
<p
class="text-xs font-medium uppercase tracking-wide text-[var(--text-secondary)]"
/>
Name "":
<p
class="text-sm leading-6 text-[var(--text-primary)]"
/>
Name "":
<p
class="text-sm font-semibold text-[var(--text-primary)]"
/>
Name "":
<p
class="text-xs text-[var(--text-secondary)]"
/>
Name "":
<p
class="text-sm font-semibold text-[var(--text-primary)]"
/>
Name "":
<p
class="text-sm font-semibold text-[var(--text-primary)]"
/>
--------------------------------------------------
combobox:
Name "选择工作空间":
<select
aria-label="选择工作空间"
class="h-8 w-full min-w-0 appearance-none rounded-lg border border-input bg-transparent py-1 pr-8 pl-2.5 text-sm transition-colors outline-none select-none selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] data-[size=sm]:py-0.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40"
data-size="default"
data-slot="native-select"
disabled=""
/>
Name "选择数据源":
<select
aria
|
background
wait
wait-all
cancel
Loading