Skip to content

Commit 1705ec9

Browse files
feat(console): the list page's top reads object row, view bar, condition row; Import / Export and New {object} end the view bar (#36113) (#36177)
<!-- claude-projects-attribution: {"github_login":"os-sales"} --> _Requested by **Sales** · [project thread](https://claude.ai/code/project/chan_01D5bWFY3rFzgJcytD5gD4Uu?thread=cmsg_01D5bWFY3rFzgJcytD5gD4Uu3C2c1xGXXZsMkWWNgTn713)_ repo:objectstack#1 · os-sales · session_01L6bhgViUwAnnUKNBhbk8wi Fixes #36113 Clause-②: yes (widening): `@object-ui/plugin-list` exports two new types, `ListExportDoor` and `ListToolbarTrailingState`, and `ListView`'s `toolbarTrailing` host prop is called with a second argument; `@object-ui/i18n` adds two keys, `console.objectView.newObject` and `console.objectView.importExport`, in every locale. A host that reads only the first argument is unchanged. Nothing is removed or re-typed. Metadata-protocol: none Seat claim: [#36113 claim](#36113 (comment)) (premise and forks F2 to F6 as proposed; F1 = B). ## 维护者速读 - 列表页顶部恢复成三行:**第一行是对象行**(对象图标和复数名,比如「客户」,右边是 #36111 的右上角按钮组,按钮组开着的时候才画);**第二行是视图栏**(左边视图切换和「视图设置」,右边搜索、「导入 / 导出」、作者配的列表按钮、「新建客户」、⋮);**第三行是条件行**(排序、筛选,有草稿时右边是「放弃 / 保存」),和以前一样。 - 视图栏不再在最前面写对象名,对象名回到第一行。 - 「导入」从 ⋮ 里搬出来,和导出合成一个「导入 / 导出」按钮。只有一个入口时按钮直接叫「导入」或「导出」。⋮ 里还留着对象描述和「加入收藏」,所以 ⋮ 保留。 - 「新建」按钮写出要新建什么:「新建客户」「新建任务」(新文案 `console.objectView.newObject`,11 种语言都有)。 - 窄屏:列表宽度小于 896px 时「导入 / 导出」收进 ⋮;小于 768px 时搜索只剩图标(不显示正在搜的关键词)。 - 「视图设置」里的导出入口**保持不变**(席位裁定 F1 = B)。所以现在导出有两个入口:新按钮和视图设置。如果只想留一个,去掉视图设置里那段是一个小的后续卡。 - 手机列表不变。 - 代价:第一行在 #36112 去掉顶栏之前会让表格往下多 44px。 ## What changes **The list page's top** (`@object-ui/app-shell`) - **The object row.** `ObjectView` always draws `ObjectViewPageHeader` again. While the list hosts the view bar (`listBarHosted`), the header draws in its list posture with no acts of its own (`hosted`): the object's icon and plural name, ended by the shell's top-right button group where the shell turns it on (`os:shell:page-actions`). Before, `listBarHosted` hid this header and the view bar led with the object's name (`ObjectViewBarObjectName`, now removed). - **The view bar's end** (`ObjectViewBarTrailing`): the list's search tools, then 「Import / Export」 (`ObjectViewImportExportMenu`, test id `object-view-import-export`), then the authored list toolbar actions, then 「New {object}」, then ⋮ More. The shell group no longer draws here, because it moved to the object row. - **「Import / Export」** holds Import, a separator, and one entry per export format the reader may use (`object-view-export-<format>`; an export error shows under them). Its label names the single entry when only one exists (「Import」 or 「Export」). - **⋮ More** keeps the object's description and 「Add to favorites」; Import is no longer in it. More draws only when it has something to hold. - **The fold.** While the list container (`@container/list`) is narrower than `VIEW_BAR_IO_FOLD_WIDTH` (896px), measured with a `ResizeObserver`, 「Import / Export」's entries fold into ⋮ More. Below 768px the search button keeps its icon alone, without the active keyword (container query `@max-[48rem]/list`). - **The create button** reads `console.objectView.newObject` (「New {{object}}」, every locale), with the object's served label; `useObjectViewHeaderChrome` takes it as `createLabel`. **The list hands its export to the host** (`@object-ui/plugin-list`) - `toolbarTrailing(tools, state)`: `state.export` is the list's export door (`ListExportDoor`: `formats`, `run`, `busy`, `error`), absent where the list offers no export (no `exportOptions`, export not permitted, or no format left). `run` refuses a format outside `formats`. The phone list passes `{}` (no export door). - The view settings popover is unchanged: its export footer stays (F1 = B). **i18n**: `console.objectView.newObject` and `console.objectView.importExport` in all 11 locales. ## Merged #35547 changes this adjusts - **#35878 一.1** (the view bar leads with the object's name, no object row): flipped. The object row is back and the view bar drops the name, per the card's mockup (maintainer note 9). - **#35878 一.2** (the view bar's right end): reordered. Search → 「Import / Export」 → authored actions → 「New {object}」 → ⋮. - **#35878 三** (narrow bar): extended. Below 896px 「Import / Export」 folds into ⋮; below 768px the search keeps its icon alone. - **#35548** (list frame geometry): the 44px page bar is back above the view bar; the frame e2e pins the new tops (page bar 48, view bar 92, table head 172). - **objectui#12427** (Import in ⋮ More): Import moves out of ⋮ into 「Import / Export」. - **#35663** (view bar alignment): unchanged on the left; the right end gains the new button at the same 28px height. - **#36111** (the shell group at the view bar's end, after ⋮): moved to the object row's end, where `PageHeader` draws it for every other page. - **#35446** (the header's own fold of its acts): no longer used on lists, because the hosted header carries no acts. ## Why Card #36113, in epic #36107 (remove the top bar). Once the top bar goes (#36112), the object row is where the page's name and the shell's button group live, as on dashboards, reports and custom pages. The view bar then holds only the view and the list's acts. ## Side effects reviewers should know - Until #36112 removes the top bar, the list's table starts 44px lower (the object row), and the object's name shows in the row while the top bar's breadcrumb also names the app. - Export now has two doors on desktop: 「Import / Export」 and the view settings footer. Removing the footer is a small follow-up if one door is wanted. - Tests that opened ⋮ More to find Import now open 「Import / Export」 (`importPredicates`, `managedEnvironmentUsers-13330`, e2e `import-console-undo`); `headerFold-12705` expects 「New Opportunity」. ## Verification - New pins: `ObjectView.shellPageActions-36111` gains a #36113 block: row order (object row, view bar, condition row); the view bar end's order (search → import-export → 「New Lead」 → ⋮); the 「Import / Export」 menu's contents, with ⋮ holding neither; the fold below 896px; the view settings footer still offers `display-export-csv`. `ListView.harness` gains `toolbarTrailingExportDoor-36113` (the host is handed the formats the footer offers and the footer keeps them; the door runs the list's export; it refuses a format it does not offer; no door where the footer draws no entry). `ObjectView.objectListTitle-27950` expects the one list-posture header. - Scoped runs: app-shell `ObjectView.*` (98 files) pass; `@object-ui/plugin-list` and `@object-ui/i18n`: 287 files, 3,947 tests pass. - `type-check` clean for `@object-ui/app-shell` and `@object-ui/plugin-list`; eslint 0 errors on changed files. - e2e `list-frame-geometry-35548`, `list-left-edge-35663`, `list-header-narrow-35446`, `list-no-actions-column-35554` and `import-console-undo` updated to the new face. `list-left-edge-35663` now draws the object row with `PageHeader`'s own list classes, and the view switcher's icon joins the one left edge (16 px, measured). Locally, the five list geometry specs plus `list-toolbar-view-name-phone`: 44 passed. - Derived local gates (`scripts/pm/dispatch-gates.mjs`): 48 derived, 48 run, every one exit 0; `--ran` reconciliation reports 0 not measured. ## Evidence (running showcase, Accounts list, 1440 × 900 unless named) Shot before (main at 269fb67) and after (this branch) against the same server and data. | | before | after | |---|---|---| | Object row | none (`page-header` absent) | `page-header` at top 48, 44 px | | View bar | top 54, leads with 「Accounts /」 | top 98, leads with the switcher | | Table head | top 128 | top 172 (+44, the object row) | | View bar end | search · 「New」 · ⋮ (Import inside ⋮) | search · 「Import」 · 「New Account (Success Overlay)」 · ⋮ | | ⋮ More | description · Import · Add to favorites | description · Add to favorites | | 1280 / 1024 | same as 1440 | same as 1440; 「Import」 stays on the bar | | 880 | Import inside ⋮ | 「Import」 folds into ⋮ (⋮ holds description · Import · Add to favorites) | | Draft sort | Discard / Save at the condition row's right | unchanged | | Shell group on (`os:shell:page-actions`) | after ⋮ at the view bar's end | at the object row's right end | | Phone 375 | — | pixel-identical to before, light and dark | Showcase serves no export door on any list (the one view that authors `exportOptions`, Tasks · In Progress, shows export in neither the new button nor the view settings footer, before or after), so the button reads 「Import」 there. The combined 「Import / Export」 face, its export entries and the fold of both are pinned in `ObjectView.shellPageActions-36111`. ## Human Minimum - [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic. (untouched) - [x] 2. Every name I added uses the casing for its kind. - [x] 3. No formatter ran; eslint passes on every changed file (0 errors). - [x] 4. One issue, one branch off an up-to-date `main`, one pull request. - [x] 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset. - [x] 6. `packages/spec` touched: n/a. - [x] 7. No hand edits to `content/docs/references/`, `packages/*/CHANGELOG.md` or `content/docs/releases/`. - [x] 8. Title, body and comments are in English (the 维护者速读 summary is for the maintainer). - [x] The *Before Submitting* list in CONTRIBUTING.md is done. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01L6bhgViUwAnnUKNBhbk8wi <!-- signed: repo:objectstack#1 · os-sales · session_01L6bhgViUwAnnUKNBhbk8wi --> --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent a2dc858 commit 1705ec9

30 files changed

Lines changed: 606 additions & 165 deletions
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
'@object-ui/app-shell': patch
3+
'@object-ui/plugin-list': patch
4+
'@object-ui/i18n': patch
5+
---
6+
7+
feat(console): the list page's top reads the object's row, the view bar, then the condition row; 「Import / Export」 and 「New Account」 end the view bar
8+
9+
Clause-②: yes (widening): `@object-ui/plugin-list` exports `ListExportDoor` and `ListToolbarTrailingState` and calls `toolbarTrailing` with a second argument; `@object-ui/i18n` adds `console.objectView.newObject` and `console.objectView.importExport`
10+
Metadata-protocol: none
11+
12+
An object's list page draws three rows above its table again:
13+
14+
- **The object's row** — the console `PageHeader` in its list posture: the object's icon and plural name, ended by the shell's top-right button group where the shell turns it on. It carries none of the page's acts.
15+
- **The view bar** — the view switcher and 视图设置 on the left; the search, 「Import / Export」, the authored list toolbar actions, 「New Account」 and ⋮ More on the right. The view bar no longer leads with the object's name.
16+
- **The condition row** — the sort and filter chips, and Discard / Save while the list holds a draft, as before.
17+
18+
「Import / Export」 holds Import and one entry per export format the reader may use. ⋮ More keeps the object's description and the favorites entry; Import is no longer in it. While the list is narrower than 896px, 「Import / Export」 folds into ⋮ More; below 768px the search keeps its icon alone, without the active keyword. The 视图设置 panel keeps its export entries. The create button names what it creates (`console.objectView.newObject`, 「New {{object}}」, in every locale). A phone's list header is unchanged.
19+
20+
`@object-ui/plugin-list`: `ListView`'s `toolbarTrailing` host prop is now called with a second argument, `ListToolbarTrailingState`, whose `export` is the list's export door (`ListExportDoor`: the formats, `run`, `busy`, `error`), absent where the list offers no export. Both types are exported. A host that reads only the first argument is unchanged.

‎docs/qa/platform-checklist/areas/records-forms.json‎

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@
621621
"title": "List-view capability matrix: filter, search, sort, pagination, saved views, inline edit, export, visualization switcher, bulk/row actions, conditional formatting",
622622
"since": "v15",
623623
"status": "active",
624-
"revision": 14,
624+
"revision": 15,
625625
"priority": "P1",
626626
"surface": "browser",
627627
"personas": [
@@ -657,12 +657,12 @@
657657
"open the tabular saved view (sort [{field: 'estimate_hours', order: 'desc'}] — the array form: #17053 retired the bare string clause 'estimate_hours desc' platform-wide, so the objectui#2601 string-crash fixture no longer exists on stock); confirm it renders and the request carries the sort as sort=-estimate_hours",
658658
"load a list past its first window. No stock list holds more rows than the 50-row window (the largest seeded task and contact lists are under it), so stage one first: POST /api/v1/data/showcase_inquiry/createMany with a bare JSON array of 55 rows (name + email + message each — showcase_inquiry requires `message` too, and a name + email body answers 400 \"Message is required\", QA run #24616). A list view that declares no `pagination` (the stock Inquiries list) draws NO pager since #35554: it loads as it scrolls, so scroll the Inquiries list to its end and capture `top`/`skip` on every data request (top=50, then top=50&skip=50); the count beside the view name reads the server total. Then page a view that DECLARES `pagination` (stage one: PUT a view with pagination: {pageSize: 50} on showcase_inquiry) past page 1 and capture the same; confirm no unpaged full fetch on either",
659659
"in the grid saved view (inlineEdit: true), edit one cell in place; save; capture the PATCH; re-read the row via API",
660-
"on in_progress, with the export grant from fixtures.requires[3] bound, open the 视图设置 (View settings) popover beside the view name — the Display popover, named 选项 (Options) until objectstack#35878 moved it there — Export sits in its footer ('Export as CSV / XLSX / JSON'), not as a separate toolbar button — and export each declared format (csv, xlsx, json); capture the requests and files. Without the grant the Export entries are absent and the route answers 403 EXPORT_NOT_PERMITTED — the opt-in working as designed, not a fail of the export variant",
660+
"on in_progress, with the export grant from fixtures.requires[3] bound, open the 视图设置 (View settings) popover beside the view name — the Display popover, named 选项 (Options) until objectstack#35878 moved it there — Export sits in its footer ('Export as CSV / XLSX / JSON') and, since objectstack#36113, also in the 「导入 / 导出」 button at the view bar's end (the same formats, two doors) — and export each declared format (csv, xlsx, json) from either; capture the requests and files. Without the grant the Export entries are absent from both and the route answers 403 EXPORT_NOT_PERMITTED — the opt-in working as designed, not a fail of the export variant",
661661
"open the visualization switcher on All Tasks; enumerate the offered types; switch through each",
662662
"on bulk_actions, select rows that are NOT done and run showcase_mark_done (per-record) — its visible gate, has(record.done) && record.done != true, judges each selected row, so a done row in the selection drops Mark Done from the selection actions the floating selection bar shows (since #35678 one bar floats at the bottom centre of the list and the view bar does not change on selection; over three actions the rest are under 「更多」), or, over a mixed selection, the confirm reports the done rows not eligible and skipped (QA run #27438); either way the dispatch count stops matching the selection — and showcase_recalc_selection (aggregate — ONE dispatch: an api-type action, which the console sends through the action door, POST /api/v1/actions/showcase_task/showcase_recalc_selection with body {params:{_selectedIds:[…]}}; the server forwards those params flat to the action's own target /api/v1/apps/showcase/recalc in-process, buildApiActionRequest in packages/runtime/src/action-execution.ts, so the browser's network log shows the door request and no /recalc request); on legacy_row_actions confirm both named row actions resolve to live menu entries",
663663
"on Field Zoo, confirm the conditionalFormatting row highlight applies to Specimen — Full (f_lookup set) and not Specimen — Minimal",
664-
"at 1280×800 on a zh-CN session, read the list frame on All Tasks, then on its kanban view: no page bar (objectstack#35878): a 40px view bar with the object's icon and name, 「/」, ONE switcher trigger reading type icon → view name → record count → caret, and 「视图设置」 on the left, and the search icon, 「+ 新建」 and ⋮ (description, import, favorite) last on the right; under it a 40px condition row that is always drawn — dashed 「排序」 and 「筛选」 while no condition is set, one 「按 X 排序」 chip (with +N) and the filter chips once set — so the table's header does not move when a condition is set or reset; on the grid a 32px header and 33px rows at 13px; and, on a view whose columns declare a `summary`, each total under its own column with 「计数 N」 leftmost and no doubled colon. The kanban view draws the same two rows (objectstack#35548; the count beside the view name returns, after objectstack#34603 removed it)",
665-
"at 1280×800 with the sidebar open, read the left edges of the list page on All Tasks (a list whose columns fit) and on a list that scrolls sideways (stage one by showing every field of showcase_task through 视图设置 → 添加列): the view bar's object icon, the header's select-all box, each row's checkbox and the footer's record count each start 16px from the main area's left; the selection column is 40px on both lists and stays 40px, pinned at the left, after scrolling to the far right and back; no row shows a number and each row's checkbox shows without a hover; the view bar's last control, ⋮, ends its icon 16px from the right; at 375 wide no leading item sits closer than 12px to the left (objectstack#35663)"
664+
"at 1280×800 on a zh-CN session, read the list frame on All Tasks, then on its kanban view: a 44px page bar with the object's icon and name (objectstack#36113), ended by the shell's button group where it is on; under it a 40px view bar with ONE switcher trigger reading type icon → view name → record count → caret, and 「视图设置」 on the left, and the search icon, 「导入 / 导出」 (import and each export format), 「+ 新建任务」 and ⋮ (description, favorite) last on the right; under it a 40px condition row that is always drawn — dashed 「排序」 and 「筛选」 while no condition is set, one 「按 X 排序」 chip (with +N) and the filter chips once set — so the table's header does not move when a condition is set or reset; on the grid a 36px header and 36px rows at 13px (objectstack#36048); and, on a view whose columns declare a `summary`, each total under its own column with 「计数 N」 leftmost and no doubled colon. The kanban view draws the same three rows (objectstack#35548, objectstack#36113; the count beside the view name returns, after objectstack#34603 removed it)",
665+
"at 1280×800 with the sidebar open, read the left edges of the list page on All Tasks (a list whose columns fit) and on a list that scrolls sideways (stage one by showing every field of showcase_task through 视图设置 → 添加列): the page bar's object icon, the view switcher's icon, the header's select-all box, each row's checkbox and the footer's record count each start 16px from the main area's left; the selection column is 40px on both lists and stays 40px, pinned at the left, after scrolling to the far right and back; no row shows a number and each row's checkbox shows without a hover; the view bar's last control, ⋮, ends its icon 16px from the right; at 375 wide no leading item sits closer than 12px to the left (objectstack#35663)"
666666
],
667667
"acceptance": [
668668
{
@@ -726,15 +726,15 @@
726726
"evidence": "menu screenshot + dispatch traces"
727727
},
728728
{
729-
"clause": "the list frame holds its geometry: no page bar, view bar 40, condition row 40 and always drawn (the header's top does not move when a condition is set or reset), header 32, rows 33, 13px on the header, the cells and the bar buttons, the first data row top at or above 168px under the 48px shell bar, the switcher read type icon → name → count → caret, every column total's right edge on its column's (±1px), no doubled colon in the summary row, and the kanban view under the same two rows",
729+
"clause": "the list frame holds its geometry: page bar 44 (the object's icon and name), view bar 40, condition row 40 and always drawn (the header's top does not move when a condition is set or reset), header 36, rows 36, 13px on the header, the cells and the bar buttons, the table header's top at 172px and the first data row top at or above 212px under the 48px shell bar, the switcher read type icon → name → count → caret, every column total's right edge on its column's (±1px), no doubled colon in the summary row, and the kanban view under the same three rows",
730730
"oracle": "dom",
731731
"verify": "read getBoundingClientRect and the computed font size of each part at 1280×800 zh-CN (the geometry and order halves are pinned by ui/e2e/list-frame-geometry-35548.spec.ts over the real class strings; the kanban half by ui/packages/plugin-list/src/__tests__/ListView.viewBarLeading-35548.test.tsx); the summary half needs a view whose columns declare `summary`, which task.view.ts does not, so stage one in the showcase's customization pair as negative[0] does",
732732
"evidence": "light and dark screenshots of the grid and the kanban, plus the measured heights"
733733
},
734734
{
735-
"clause": "the list page has one left edge: the view bar's object icon, select-all box, row checkboxes and footer count each at 16px (±1) from the main area on a list that fits and on one that scrolls sideways; the selection column is 40px on both and keeps its width and its left pin after a sideways scroll and back, with no gap between frozen cells; no row numbers; every row checkbox visible at rest; at 375 no leading item closer than 12px",
735+
"clause": "the list page has one left edge: the page bar's object icon, the view switcher's icon, select-all box, row checkboxes and footer count each at 16px (±1) from the main area on a list that fits and on one that scrolls sideways; the selection column is 40px on both and keeps its width and its left pin after a sideways scroll and back, with no gap between frozen cells; no row numbers; every row checkbox visible at rest; at 375 no leading item closer than 12px",
736736
"oracle": "dom",
737-
"verify": "read getBoundingClientRect of each item from the main area's left at 1280×800 on both lists, and the computed opacity of the row checkboxes with the pointer off the table (pinned by ui/e2e/list-left-edge-35663.spec.ts over the real ObjectGrid and view-bar classes, the view bar's object name read off VIEW_BAR_OBJECT_NAME in objectViewPageHeader.tsx)",
737+
"verify": "read getBoundingClientRect of each item from the main area's left at 1280×800 on both lists, and the computed opacity of the row checkboxes with the pointer off the table (pinned by ui/e2e/list-left-edge-35663.spec.ts over the real ObjectGrid and view-bar classes, the page bar's row read off PageHeader.tsx's list posture)",
738738
"evidence": "screenshots of both lists at rest and scrolled, plus the measured edges"
739739
}
740740
],
@@ -833,7 +833,8 @@
833833
"ref": "#35663"
834834
},
835835
{ "revision": 13, "date": "2026-11-20", "change": "steps[6], [8], [10], [11] and the clauses acceptance[10] and acceptance[11] follow #35878: the list page draws two rows, not three. There is no page bar; the view bar leads with the object's icon and name, then the switcher and 「视图设置」 (was 「选项」), and ends with search, 「+ 新建」 and ⋮ last (#35678). The condition row is always drawn at 40px, so the frame clause reads condition row 40 where it read 'no condition row height', and the left-edge clause's first item is the view bar's object icon where it was the page bar's (the view icon no longer leads the bar). Filter N and Sort N left the bar for the condition row", "ref": "#35878" },
836-
{ "revision": 14, "date": "2026-11-21", "change": "steps[8] follows #35678: the selection actions are in one bar floating at the bottom centre of the list, and the view bar no longer changes on selection; what Mark Done's visible gate does is unchanged", "ref": "#35678" }
836+
{ "revision": 14, "date": "2026-11-21", "change": "steps[8] follows #35678: the selection actions are in one bar floating at the bottom centre of the list, and the view bar no longer changes on selection; what Mark Done's visible gate does is unchanged", "ref": "#35678" },
837+
{ "revision": 15, "date": "2026-11-21", "change": "steps[6], [10], [11] and the clauses acceptance[10] and acceptance[11] follow #36113: the list page draws three rows again. A 44px page bar holds the object's icon and name (ended by the shell's button group where it is on); the view bar leads with the switcher and ends with search, 「导入 / 导出」, 「+ 新建{对象}」 and ⋮. Export is offered in 「导入 / 导出」 as well as the 视图设置 footer, so steps[6] reads two doors. The frame clause reads page bar 44, the table header at 172 and the first row at or above 212 where it read 'no page bar' and 168, and header 36 / rows 36 where it read 32 / 33 (#36048, which the clause had not caught up with); the kanban view sits under the same three rows. The left-edge clause's first items are the page bar's object icon and the view switcher's icon, where it read the view bar's object icon", "ref": "#36113" }
837838
]
838839
},
839840
{

‎ui/e2e/import-console/import-console-undo.spec.ts‎

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,17 @@ test.describe('Import Wizard — real console: background import + undo', () =>
4949
return (body.records ?? []).length;
5050
};
5151

52-
// 1) Land on the REAL object list view and find the REAL toolbar button.
52+
// 1) Land on the REAL object list view and find the REAL toolbar menu:
53+
// Import is an entry of the view bar's 「Import / Export」.
5354
await page.goto(`/apps/${APP_NAME}/${OBJECT}`);
54-
const importBtn = page.getByTestId('object-view-import-button');
55-
await expect(importBtn).toBeVisible({ timeout: 20_000 });
55+
const ioMenu = page.getByTestId('object-view-import-export');
56+
await expect(ioMenu).toBeVisible({ timeout: 20_000 });
5657

5758
const baseline = await countRecords();
5859

5960
// 2) Open the wizard and upload a 3-row CSV (well under the async threshold).
60-
await importBtn.click();
61+
await ioMenu.click();
62+
await page.getByTestId('object-view-import-button').click();
6163
const stamp = Date.now();
6264
const csv = [
6365
'name,email,status',
@@ -105,6 +107,7 @@ test.describe('Import Wizard — real console: background import + undo', () =>
105107
// settles, making the click flaky).
106108
page.on('dialog', (d) => d.accept()); // accept the confirm() prompt
107109
await page.reload();
110+
await page.getByTestId('object-view-import-export').click();
108111
await page.getByTestId('object-view-import-button').click();
109112
await page.getByTestId('import-history-toggle').click();
110113
await page.getByTestId(`import-history-undo-${mine.jobId}`).click();

0 commit comments

Comments
 (0)