create-pmos 0.610.0 → 0.612.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +135 -27
- package/payload/KIT-VERSION +2 -2
- package/payload/planning/evals/eval-calibration.md +1 -1
- package/payload/planning/okrs/health-budgets.md +1 -1
- package/payload/state/discoveries.md +1 -1
- package/payload/state/log.md +1 -1
- package/workspace/board-columns-test.js +2 -1
- package/workspace/board-deliveries-test.js +2 -1
- package/workspace/board-programs-test.js +7 -3
- package/workspace/board-publish-ui-test.js +2 -1
- package/workspace/board-shared-ui-test.js +2 -1
- package/workspace/board-workflows-test.js +2 -1
- package/workspace/briefing-premium-board-test.js +3 -2
- package/workspace/briefing-premium-calendar-2-test.js +3 -2
- package/workspace/briefing-premium-calendar-3-test.js +1 -1
- package/workspace/briefing-premium-calendar-test.js +1 -1
- package/workspace/briefing-premium-doc-edit-test.js +2 -1
- package/workspace/briefing-premium-insights-test.js +4 -3
- package/workspace/briefing-premium-test.js +3 -2
- package/workspace/calm-timeline-test.js +2 -1
- package/workspace/changelog.json +134 -0
- package/workspace/core-docs-workflow-test.js +2 -1
- package/workspace/ev-everywhere-test.js +3 -2
- package/workspace/guide/home.md +2 -2
- package/workspace/guide/index.md +4 -0
- package/workspace/guide/layout.md +97 -3
- package/workspace/guide/programs.md +16 -2
- package/workspace/guide/routine.md +65 -0
- package/workspace/guide/scheduled-tasks-and-cli.md +1 -1
- package/workspace/guide/settings-and-switches.md +2 -2
- package/workspace/impact-screens-test.js +3 -1
- package/workspace/ini-workflow-test.js +2 -1
- package/workspace/lib/board-premium.js +12 -4
- package/workspace/lib/classic-board.js +15 -0
- package/workspace/lib/cos-chat.js +1 -0
- package/workspace/lib/doc-library.js +43 -12
- package/workspace/lib/doc-path.js +30 -0
- package/workspace/lib/engine/boards.js +4 -2
- package/workspace/lib/events-place.js +368 -0
- package/workspace/lib/events-stated.js +129 -0
- package/workspace/lib/initiative-chat.js +1 -0
- package/workspace/lib/insights-premium.js +13 -1
- package/workspace/lib/library-find.js +162 -0
- package/workspace/lib/library-items.js +250 -0
- package/workspace/lib/notes.js +9 -1
- package/workspace/lib/plan-items.js +17 -3
- package/workspace/lib/route-modules.js +4 -0
- package/workspace/lib/routes-artefacts.js +5 -2
- package/workspace/lib/routes-boards.js +6 -2
- package/workspace/lib/routes-doc-sheet.js +1 -0
- package/workspace/lib/routes-events-place.js +203 -0
- package/workspace/lib/routes-library.js +155 -0
- package/workspace/lib/routes-pop-work.js +39 -0
- package/workspace/lib/routes-report-setups.js +32 -1
- package/workspace/lib/routes-today-log.js +48 -0
- package/workspace/lib/routine-reports.js +84 -0
- package/workspace/lib/status-when.js +36 -0
- package/workspace/lib/task-items.js +5 -3
- package/workspace/lib/today-log.js +131 -0
- package/workspace/live-pill-round-test.js +10 -7
- package/workspace/metric-drafts-ui-test.js +3 -1
- package/workspace/milestone-pins-test.js +2 -1
- package/workspace/milestone-suggest-test.js +3 -1
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/panels-test.js +2 -1
- package/workspace/premium-board-actions-test.js +3 -1
- package/workspace/premium-rec-tab-test.js +2 -1
- package/workspace/premium-vw-backlog-test.js +3 -1
- package/workspace/premium-vw-item-test.js +3 -1
- package/workspace/premium-vw-jira-test.js +3 -1
- package/workspace/premium-vw-meet-test.js +2 -1
- package/workspace/premium-vw-notes-test.js +3 -2
- package/workspace/product-lane-test.js +2 -1
- package/workspace/program-charter-test.js +3 -1
- package/workspace/program-leave-test.js +2 -1
- package/workspace/program-order-test.js +2 -1
- package/workspace/program-panel-test.js +3 -1
- package/workspace/public/pm/artefact-kind.js +87 -0
- package/workspace/public/pm/bd-ini-panel.js +77 -12
- package/workspace/public/pm/bd-prog-panel.js +55 -8
- package/workspace/public/pm/bd-span.js +5 -0
- package/workspace/public/pm/bd-work.css +192 -0
- package/workspace/public/pm/bd-work.js +483 -0
- package/workspace/public/pm/cozy-bar.css +11 -0
- package/workspace/public/pm/cozy-bar.js +99 -0
- package/workspace/public/pm/cozy-day-pick.css +27 -0
- package/workspace/public/pm/cozy-day-pick.js +97 -0
- package/workspace/public/pm/cozy-ev.css +2 -5
- package/workspace/public/pm/cozy-events-view.js +274 -0
- package/workspace/public/pm/cozy-events.css +179 -0
- package/workspace/public/pm/cozy-events.js +278 -0
- package/workspace/public/pm/cozy-evmodel.js +1 -1
- package/workspace/public/pm/cozy-goals.css +172 -0
- package/workspace/public/pm/cozy-library.css +125 -0
- package/workspace/public/pm/cozy-live-pill.js +1 -0
- package/workspace/public/pm/cozy-nav.js +6 -7
- package/workspace/public/pm/cozy-pick.css +3 -0
- package/workspace/public/pm/cozy-pop-work.css +224 -0
- package/workspace/public/pm/cozy-pop-work.js +668 -0
- package/workspace/public/pm/cozy-popup.css +11 -2
- package/workspace/public/pm/cozy-popup.js +67 -9
- package/workspace/public/pm/cozy-routine-job.js +203 -0
- package/workspace/public/pm/cozy-routine-model.js +219 -0
- package/workspace/public/pm/cozy-routine-pop.js +318 -0
- package/workspace/public/pm/cozy-routine.css +155 -0
- package/workspace/public/pm/cozy-routine.js +335 -0
- package/workspace/public/pm/cozy-schedwork.js +6 -5
- package/workspace/public/pm/cozy-settings.js +1 -5
- package/workspace/public/pm/cozy-status-when.js +48 -0
- package/workspace/public/pm/cozy-today-app.js +236 -0
- package/workspace/public/pm/cozy-today-model.js +176 -0
- package/workspace/public/pm/cozy-today-page.css +100 -0
- package/workspace/public/pm/cozy-today-view.js +76 -0
- package/workspace/public/pm/cozy-viewer.js +19 -8
- package/workspace/public/pm/cozy-vw-mtg.css +39 -0
- package/workspace/public/pm/goals-model.js +205 -0
- package/workspace/public/pm/goals-open.js +124 -0
- package/workspace/public/pm/home-app.js +18 -3
- package/workspace/public/pm/home-chat.js +4 -2
- package/workspace/public/pm/home-ini.js +43 -10
- package/workspace/public/pm/ini-edit.js +3 -1
- package/workspace/public/pm/ini-view-model.js +1 -1
- package/workspace/public/pm/library-model.js +197 -0
- package/workspace/public/pm/library-open.js +37 -0
- package/workspace/public/pm/page-chat.js +12 -2
- package/workspace/public/pm/pop-work-model.js +493 -0
- package/workspace/public/pm/premium-board.js +204 -17
- package/workspace/public/pm/premium-goals.js +213 -0
- package/workspace/public/pm/premium-library.js +436 -0
- package/workspace/public/pm/premium-shell.js +1 -1
- package/workspace/public/pm/premium-vw-mtg.js +79 -1
- package/workspace/public/pm/scope-chip.js +204 -0
- package/workspace/public/premium-board.html +1 -0
- package/workspace/public/premium-events.html +44 -0
- package/workspace/public/premium-goals.html +37 -0
- package/workspace/public/premium-library.html +39 -0
- package/workspace/public/premium-routine.html +33 -0
- package/workspace/public/today.html +50 -0
- package/workspace/ready-dash-ui-test.js +3 -1
- package/workspace/rename-test.js +2 -1
- package/workspace/run-tests.js +4 -1
- package/workspace/server.js +4 -2
- package/workspace/sort-order-test.js +2 -1
- package/workspace/split-merge-ui-test.js +3 -1
- package/workspace/stage-card-tasks-test.js +3 -1
- package/workspace/stage-card-test.js +2 -1
- package/workspace/task-delete-test.js +2 -1
- package/workspace/task-links-test.js +2 -1
- package/workspace/task-milestones-test.js +4 -2
- package/workspace/task-plans-test.js +3 -1
- package/workspace/task-press-test.js +3 -1
- package/workspace/task-views-test.js +3 -1
- package/workspace/test-lists/doc-path.json +9 -0
- package/workspace/test-lists/events-place.json +11 -0
- package/workspace/test-lists/goals-place.json +9 -0
- package/workspace/test-lists/library-place.json +9 -0
- package/workspace/test-lists/pop-work.json +9 -0
- package/workspace/test-lists/routine-place.json +9 -0
- package/workspace/test-lists/status-when.json +9 -0
- package/workspace/test-lists/today-log.json +9 -0
- package/workspace/test-lists/work-view.json +9 -0
- package/workspace/timeline-holds-test.js +3 -1
- package/workspace/tk-tasks-test.js +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-pmos",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.612.0",
|
|
4
4
|
"description": "Scaffold the PMOS portable kit — run the PMOS product-management workflow (initiative → lane-fit spec → contract → build → three gates, with work-type lanes for features, research, maintenance, incidents, and content) entirely inside your own repo, with all state as git-versioned files. Includes `workflow-sweep`, which audits the state every board derives from and separates real defects from work you simply have not done. `create-pmos workspace` also installs + launches the local Terminal Workspace GUI. No database, no network, no telemetry.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"bin": {
|
|
@@ -33,6 +33,140 @@
|
|
|
33
33
|
"audit"
|
|
34
34
|
],
|
|
35
35
|
"pmosChanges": [
|
|
36
|
+
{
|
|
37
|
+
"v": "0.612.0",
|
|
38
|
+
"at": "2026-11-19T02:20:50.625Z",
|
|
39
|
+
"f": 4,
|
|
40
|
+
"prs": [
|
|
41
|
+
{
|
|
42
|
+
"n": 1371,
|
|
43
|
+
"t": "Events matches its board: a suggestion on every late date, Late folds, a full calendar",
|
|
44
|
+
"s": "Events matches its board: a suggestion on every late date, Late folds, a full calendar",
|
|
45
|
+
"k": "fix"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"n": 1374,
|
|
49
|
+
"t": "Match the boards — plain When and Next, one row per report, clean report popup",
|
|
50
|
+
"s": "Match the boards — plain When and Next, one row per report, clean report popup",
|
|
51
|
+
"k": "fix"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"n": 1375,
|
|
55
|
+
"t": "Goals, am I on track from the North Star to the work (nav slice 9)",
|
|
56
|
+
"s": "Goals, am I on track from the North Star to the work (nav slice 9)",
|
|
57
|
+
"k": "new"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"n": 1377,
|
|
61
|
+
"t": "Make the popup for work match its boards (audit of nav slices 2 and 3)",
|
|
62
|
+
"s": "Make the popup for work match its boards (audit of nav slices 2 and 3)",
|
|
63
|
+
"k": "fix"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"n": 1380,
|
|
67
|
+
"t": "Every row repeats with one switch, a product chip, Type and set widths",
|
|
68
|
+
"s": "Every row repeats with one switch, a product chip, Type and set widths",
|
|
69
|
+
"k": "fix"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"n": 1379,
|
|
73
|
+
"t": "Events round 2: every dated source, a type on each row, a product, program and project filter",
|
|
74
|
+
"s": "Events round 2: every dated source, a type on each row, a product, program and project filter",
|
|
75
|
+
"k": "new"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"n": 1382,
|
|
79
|
+
"t": "Manage every routine in the popup, and + asks what should repeat",
|
|
80
|
+
"s": "Manage every routine in the popup, and + asks what should repeat",
|
|
81
|
+
"k": "new"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"n": 1384,
|
|
85
|
+
"t": "The shared scope chip filters Routine by product, program and project",
|
|
86
|
+
"s": "The shared scope chip filters Routine by product, program and project",
|
|
87
|
+
"k": "new"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"n": 1385,
|
|
91
|
+
"t": "Scope chip shows product names and the page's count word",
|
|
92
|
+
"s": "Scope chip shows product names and the page's count word",
|
|
93
|
+
"k": "fix"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"n": 1378,
|
|
97
|
+
"t": "Work draws the Board's own bar, stage card on press (round 2)",
|
|
98
|
+
"s": "Work draws the Board's own bar, stage card on press (round 2)",
|
|
99
|
+
"k": "fix"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"n": 1381,
|
|
103
|
+
"t": "Round 3 of the popup for work (Wawan's production review)",
|
|
104
|
+
"s": "Round 3 of the popup for work (Wawan's production review)",
|
|
105
|
+
"k": "new"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"n": 1376,
|
|
109
|
+
"t": "Library as a catalogue (design audit + round 2): specific Kind, filters, shelves, search by meaning",
|
|
110
|
+
"s": "Library as a catalogue (design audit + round 2): specific Kind, filters, shelves, search by meaning",
|
|
111
|
+
"k": "new"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"n": 1386,
|
|
115
|
+
"t": "Routine folds reads and jobs under a picked program; chip counts routines",
|
|
116
|
+
"s": "Routine folds reads and jobs under a picked program; chip counts routines",
|
|
117
|
+
"k": "new"
|
|
118
|
+
}
|
|
119
|
+
]
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"v": "0.611.0",
|
|
123
|
+
"at": "2026-11-18T23:52:14.177Z",
|
|
124
|
+
"f": 4,
|
|
125
|
+
"prs": [
|
|
126
|
+
{
|
|
127
|
+
"n": 1366,
|
|
128
|
+
"t": "The rail and the popup together keep main green",
|
|
129
|
+
"s": "The rail and the popup together keep main green",
|
|
130
|
+
"k": "fix"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"n": 1363,
|
|
134
|
+
"t": "Work, one list of initiatives with its timeline (nav slice 4)",
|
|
135
|
+
"s": "Work, one list of initiatives with its timeline (nav slice 4)",
|
|
136
|
+
"k": "new"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"n": 1364,
|
|
140
|
+
"t": "Today page, a daily log beside today's agenda (nav slice 5)",
|
|
141
|
+
"s": "Today page, a daily log beside today's agenda (nav slice 5)",
|
|
142
|
+
"k": "new"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"n": 1362,
|
|
146
|
+
"t": "Events, one place for everything with a date (nav slice 6)",
|
|
147
|
+
"s": "Events, one place for everything with a date (nav slice 6)",
|
|
148
|
+
"k": "new"
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"n": 1367,
|
|
152
|
+
"t": "Library, one table of everything that was made (slice 7)",
|
|
153
|
+
"s": "Library, one table of everything that was made (slice 7)",
|
|
154
|
+
"k": "new"
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"n": 1365,
|
|
158
|
+
"t": "What the popup shows for work (nav slice 3)",
|
|
159
|
+
"s": "What the popup shows for work (nav slice 3)",
|
|
160
|
+
"k": "new"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"n": 1361,
|
|
164
|
+
"t": "Routine, everything that repeats in one place, and a report in the popup (slice 8)",
|
|
165
|
+
"s": "Routine, everything that repeats in one place, and a report in the popup (slice 8)",
|
|
166
|
+
"k": "new"
|
|
167
|
+
}
|
|
168
|
+
]
|
|
169
|
+
},
|
|
36
170
|
{
|
|
37
171
|
"v": "0.610.0",
|
|
38
172
|
"at": "2026-11-18T19:46:47.442Z",
|
|
@@ -296,32 +430,6 @@
|
|
|
296
430
|
"k": "fix"
|
|
297
431
|
}
|
|
298
432
|
]
|
|
299
|
-
},
|
|
300
|
-
{
|
|
301
|
-
"v": "0.592.0",
|
|
302
|
-
"at": "2026-11-17T16:29:19.409Z",
|
|
303
|
-
"f": 4,
|
|
304
|
-
"prs": [
|
|
305
|
-
{
|
|
306
|
-
"n": 1329,
|
|
307
|
-
"t": "Prototype by chatting, one canvas with its flow, swimlane and copy",
|
|
308
|
-
"s": "Prototype by chatting, one canvas with its flow, swimlane and copy",
|
|
309
|
-
"k": "new"
|
|
310
|
-
}
|
|
311
|
-
]
|
|
312
|
-
},
|
|
313
|
-
{
|
|
314
|
-
"v": "0.591.0",
|
|
315
|
-
"at": "2026-11-17T14:18:25.456Z",
|
|
316
|
-
"f": 4,
|
|
317
|
-
"prs": [
|
|
318
|
-
{
|
|
319
|
-
"n": 1328,
|
|
320
|
-
"t": "Home's list shows only rows with a call; the rest fold to N more",
|
|
321
|
-
"s": "Home's list shows only rows with a call; the rest fold to N more",
|
|
322
|
-
"k": "new"
|
|
323
|
-
}
|
|
324
|
-
]
|
|
325
433
|
}
|
|
326
434
|
]
|
|
327
435
|
}
|
package/payload/KIT-VERSION
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
kernel-source: pmos@
|
|
2
|
-
assembled: 2026-11-
|
|
1
|
+
kernel-source: pmos@15be7fdf
|
|
2
|
+
assembled: 2026-11-19
|
|
3
3
|
mode: vendor
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
type: Reference
|
|
3
3
|
title: "Eval calibration log"
|
|
4
4
|
description: "Append-only record of every PM override of an evaluator verdict."
|
|
5
|
-
generated: {by: process:create-pmos, at: "2026-11-
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-19T02:20:47Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
type: Reference
|
|
3
3
|
title: "Health budgets"
|
|
4
4
|
description: "Closed registry of health-budget anchors (D59), edited only by the PM."
|
|
5
|
-
generated: {by: process:create-pmos, at: "2026-11-
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-19T02:20:47Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
type: Reference
|
|
3
3
|
title: "Discoveries and friction log"
|
|
4
4
|
description: "Append-only record of what runs discovered and where the process rubbed."
|
|
5
|
-
generated: {by: process:create-pmos, at: "2026-11-
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-19T02:20:47Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
package/payload/state/log.md
CHANGED
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* N a narrow Board drops columns from the right and brings them back when it widens; a phone has none
|
|
12
12
|
* SHOTS_COLS=<dir>: the timeline at 1440 light and dark, with the menu open, and at 1000, into <dir>. */
|
|
13
13
|
const path = require('path');
|
|
14
|
+
const { classicBoard } = require('./lib/classic-board'); // these checks are about the four Board views, not Work (work-one-view)
|
|
14
15
|
const { spawn } = require('child_process');
|
|
15
16
|
const { findBrowser } = require('./lib/find-browser');
|
|
16
17
|
const T = require('./test-run').configure({ name: 'board-columns' });
|
|
@@ -54,7 +55,7 @@ const ITEMS = [
|
|
|
54
55
|
try { ({ chromium } = require('playwright-core')); } catch { console.log('✗ playwright-core is not installed'); return finish(1); }
|
|
55
56
|
srv = spawn(process.execPath, [path.join(__dirname, 'server.js')], { cwd: __dirname, stdio: 'ignore', env: T.env({ PMOS_WS_PORT: String(T.PORT) }) });
|
|
56
57
|
await T.waitForServer(BASE);
|
|
57
|
-
browser = await chromium.launch({ executablePath: exe });
|
|
58
|
+
browser = classicBoard(await chromium.launch({ executablePath: exe }));
|
|
58
59
|
|
|
59
60
|
/** The Board on the timeline at Year. o: { w, h, dark, phone, cols } */
|
|
60
61
|
const open = async (o = {}) => {
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* F the fold: one line, remembered after a reload · N Filter None: no lane · Q the phone: the next 3 in a card, All opens the sheet
|
|
10
10
|
* SHOTS_DL=<dir>: the lane at 1440 (open, hover, folded) and 390, into <dir>. */
|
|
11
11
|
const path = require('path');
|
|
12
|
+
const { classicBoard } = require('./lib/classic-board'); // these checks are about the four Board views, not Work (work-one-view)
|
|
12
13
|
const { spawn } = require('child_process');
|
|
13
14
|
const { findBrowser } = require('./lib/find-browser');
|
|
14
15
|
const T = require('./test-run').configure({ name: 'board-deliveries' });
|
|
@@ -58,7 +59,7 @@ const model = () => {
|
|
|
58
59
|
try { ({ chromium } = require('playwright-core')); } catch { console.log('✗ playwright-core is not installed'); return finish(1); }
|
|
59
60
|
srv = spawn(process.execPath, [path.join(__dirname, 'server.js')], { cwd: __dirname, stdio: 'ignore', env: T.env({ PMOS_WS_PORT: String(T.PORT) }) });
|
|
60
61
|
await T.waitForServer(BASE);
|
|
61
|
-
browser = await chromium.launch({ executablePath: exe });
|
|
62
|
+
browser = classicBoard(await chromium.launch({ executablePath: exe }));
|
|
62
63
|
|
|
63
64
|
/** The Board on the timeline. o: { w, h, span, phone, store, dark } */
|
|
64
65
|
const open = async (o = {}) => {
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* L List: Product and Program columns, sortable
|
|
12
12
|
* Z with no program on the board, no group head and no grouping control (zero is silence) · phone: no sideways scroll */
|
|
13
13
|
const path = require('path');
|
|
14
|
+
const { classicBoard } = require('./lib/classic-board'); // these checks are about the four Board views, not Work (work-one-view)
|
|
14
15
|
const { spawn } = require('child_process');
|
|
15
16
|
const { findBrowser } = require('./lib/find-browser');
|
|
16
17
|
const T = require('./test-run').configure({ name: 'board-programs' });
|
|
@@ -38,7 +39,7 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
|
|
|
38
39
|
try { ({ chromium } = require('playwright-core')); } catch { console.log('✗ playwright-core is not installed'); return finish(1); }
|
|
39
40
|
srv = spawn(process.execPath, [path.join(__dirname, 'server.js')], { cwd: __dirname, stdio: 'ignore', env: T.env({ PMOS_WS_PORT: String(T.PORT) }) });
|
|
40
41
|
await T.waitForServer(BASE);
|
|
41
|
-
browser = await chromium.launch({ executablePath: exe });
|
|
42
|
+
browser = classicBoard(await chromium.launch({ executablePath: exe }));
|
|
42
43
|
|
|
43
44
|
/** A Board page of one Ascent product. o: { w, h, view, grouping, programs, qs, store } — store: localStorage to set before the page loads. */
|
|
44
45
|
const open = async (o = {}) => {
|
|
@@ -330,8 +331,11 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
|
|
|
330
331
|
// Find scrolls an off-screen bar into view and tints its row (TsCEdges 4)
|
|
331
332
|
await p.evaluate(() => { document.querySelector('#ibBody .tg-sc').scrollLeft = 0; }); await p.waitForTimeout(150);
|
|
332
333
|
await p.click('#bdFind'); await p.waitForSelector('#evSearch:not([hidden])'); await p.fill('#evQ', 'Legacy'); await p.waitForTimeout(400); await p.keyboard.press('Enter'); await p.waitForTimeout(700);
|
|
333
|
-
|
|
334
|
-
|
|
334
|
+
// the Board may redraw its rows after Find (a slow runner): wait for the row before reading it
|
|
335
|
+
await p.waitForFunction(() => [...document.querySelectorAll('#ibBody .tg-r[data-row]')].some((r) => /Legacy IdP sunset/.test(r.textContent) && r.querySelector('.tg-bar')), null, { timeout: 5000 }).catch(() => {});
|
|
336
|
+
const f = await p.evaluate(() => { const row = [...document.querySelectorAll('#ibBody .tg-r[data-row]')].find((r) => /Legacy IdP sunset/.test(r.textContent)); if (!row) return { row: false }; const sc = document.querySelector('#ibBody .tg-sc'), b = row.querySelector('.tg-bar').getBoundingClientRect(), s = sc.getBoundingClientRect(); const pop = document.querySelector('.cz-pop:not([hidden]) #czViewer'); return { tint: row.classList.contains('tint'), inView: b.right > s.left + 250 && b.left < s.right, pop: !!pop && /Legacy IdP sunset/.test(pop.textContent) }; });
|
|
337
|
+
// on a desk Find opens the initiative in the popup with the chat (cozy-popup.js), which covers the Board: the tint is for work beside the page
|
|
338
|
+
ok('S Find scrolls the bar into view, and tints its row for a moment or opens the initiative in the popup', f.inView && (f.tint || f.pop), JSON.stringify(f));
|
|
335
339
|
ok('S the scroll threw nothing', !errors.length, errors.join('\n'));
|
|
336
340
|
await ctx.close();
|
|
337
341
|
}
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
* C the form: chips, the initiative picker, password, ends · D publish: what is sent, working, the link ready, Done · E problems · F open links ·
|
|
8
8
|
* G a phone: a sheet, no sideways scroll · H Escape and a press outside close it */
|
|
9
9
|
const path = require('path');
|
|
10
|
+
const { classicBoard } = require('./lib/classic-board'); // these checks are about the four Board views, not Work (work-one-view)
|
|
10
11
|
const { spawn } = require('child_process');
|
|
11
12
|
const { findBrowser } = require('./lib/find-browser');
|
|
12
13
|
const T = require('./test-run').configure({ name: 'board-publish-ui' });
|
|
@@ -23,7 +24,7 @@ const ok = (name, cond, extra = '') => { n++; if (!cond) bad++; console.log(`${c
|
|
|
23
24
|
const finish = async (browser, code) => { try { if (browser) await browser.close(); } catch { /* gone */ } try { srv.kill('SIGKILL'); } catch { /* gone */ } T.killTmux(); console.log(`\n${n - bad}/${n} board-publish-ui assertions passed`); process.exit(code !== undefined ? code : (bad ? 1 : 0)); };
|
|
24
25
|
process.on('unhandledRejection', (e) => { console.error(e); finish(null, 1); });
|
|
25
26
|
await T.waitForServer(T.BASE);
|
|
26
|
-
const browser = await chromium.launch({ executablePath: findBrowser() });
|
|
27
|
+
const browser = classicBoard(await chromium.launch({ executablePath: findBrowser() }));
|
|
27
28
|
|
|
28
29
|
const model = BP.build(F.programFacts('idpf'));
|
|
29
30
|
const BOARD = '/api/board-premium?ws=idpf&board=idpf';
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* the test (the server side is tested in board-publish-teams.test.js against the real host), so each press is checked on what the page SENDS and draws.
|
|
6
6
|
* A the tab and its number · B join · C the list · D a team that cannot be read · E leave · F reads happen on open and on Refresh only · G a phone */
|
|
7
7
|
const path = require('path');
|
|
8
|
+
const { classicBoard } = require('./lib/classic-board'); // these checks are about the four Board views, not Work (work-one-view)
|
|
8
9
|
const { spawn } = require('child_process');
|
|
9
10
|
const { findBrowser } = require('./lib/find-browser');
|
|
10
11
|
const T = require('./test-run').configure({ name: 'board-shared-ui' });
|
|
@@ -22,7 +23,7 @@ const iso = (ms) => new Date(Date.now() + ms).toISOString();
|
|
|
22
23
|
const finish = async (browser, code) => { try { if (browser) await browser.close(); } catch { /* gone */ } try { srv.kill('SIGKILL'); } catch { /* gone */ } T.killTmux(); console.log(`\n${n - bad}/${n} board-shared-ui assertions passed`); process.exit(code !== undefined ? code : (bad ? 1 : 0)); };
|
|
23
24
|
process.on('unhandledRejection', (e) => { console.error(e); finish(null, 1); });
|
|
24
25
|
await T.waitForServer(T.BASE);
|
|
25
|
-
const browser = await chromium.launch({ executablePath: findBrowser() });
|
|
26
|
+
const browser = classicBoard(await chromium.launch({ executablePath: findBrowser() }));
|
|
26
27
|
const model = BP.build(F.programFacts('idpf'));
|
|
27
28
|
const BOARD = '/api/board-premium?ws=idpf&board=idpf';
|
|
28
29
|
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
* W8 the phone · W9 a board with only Product feature · W10 dark, and no page error.
|
|
9
9
|
* The screenshots of the same views come from board-wf-shot.js (not a suite). */
|
|
10
10
|
const path = require('path');
|
|
11
|
+
const { classicBoard } = require('./lib/classic-board'); // these checks are about the four Board views, not Work (work-one-view)
|
|
11
12
|
const { spawn } = require('child_process');
|
|
12
13
|
const { findBrowser } = require('./lib/find-browser');
|
|
13
14
|
const T = require('./test-run').configure({ name: 'board-workflows' });
|
|
@@ -37,7 +38,7 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
|
|
|
37
38
|
try { ({ chromium } = require('playwright-core')); } catch { console.log('✗ playwright-core is not installed'); return finish(1); }
|
|
38
39
|
srv = spawn(process.execPath, [path.join(__dirname, 'server.js')], { cwd: __dirname, stdio: 'ignore', env: T.env({ PMOS_WS_PORT: String(T.PORT), PMOS_SELF_ROOT: path.resolve(__dirname, '..') }) });
|
|
39
40
|
await T.waitForServer(BASE);
|
|
40
|
-
browser = await chromium.launch({ executablePath: exe });
|
|
41
|
+
browser = classicBoard(await chromium.launch({ executablePath: exe }));
|
|
41
42
|
const errors = [];
|
|
42
43
|
|
|
43
44
|
/** The Board in a fresh context: `view` and `pick` go into the page's store before it loads. */
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* GET /api/board-trail (lib/board-trail.js) is answered with fixtures/board-premium-trail.js in the T block, and fails everywhere else, so the
|
|
14
14
|
* other blocks check what the page draws when the trail is not there: nothing invented. */
|
|
15
15
|
const fs = require('fs');
|
|
16
|
+
const { classicBoard } = require('./lib/classic-board'); // these checks are about the four Board views, not Work (work-one-view)
|
|
16
17
|
const path = require('path');
|
|
17
18
|
const { spawn } = require('child_process');
|
|
18
19
|
const { findBrowser } = require('./lib/find-browser');
|
|
@@ -80,7 +81,7 @@ const IVREAD = () => {
|
|
|
80
81
|
try { ({ chromium } = require('playwright-core')); } catch { console.log('✗ playwright-core is not installed'); return finish(1); }
|
|
81
82
|
srv = spawn(process.execPath, [path.join(__dirname, 'server.js')], { cwd: __dirname, stdio: 'ignore', env: T.env({ PMOS_WS_PORT: String(T.PORT), PMOS_SELF_ROOT: path.resolve(__dirname, '..') }) });
|
|
82
83
|
await T.waitForServer(BASE);
|
|
83
|
-
browser = besidePage(await chromium.launch({ executablePath: exe }));
|
|
84
|
+
browser = classicBoard(besidePage(await chromium.launch({ executablePath: exe })));
|
|
84
85
|
|
|
85
86
|
const open = async ({ w = 1440, h = 900, theme = 'light', model = mk(), answers = null, trail = null, qs = '', slowSheet = 0 } = {}) => {
|
|
86
87
|
const ctx = await openMission(await browser.newContext({ viewport: { width: w, height: h } }));
|
|
@@ -131,7 +132,7 @@ const IVREAD = () => {
|
|
|
131
132
|
ok('N1 the rail is the one way between places on a desktop (slice 1): 72 px, no floating button, and the old rail is gone from the page', place.rail && place.w === 72 && place.fab === 'none' && place.old === 'gone', JSON.stringify(place));
|
|
132
133
|
ok('N2 no page header on desktop: the heading is for screen readers only and the toolbar starts at the top', place.h1 === '1x1' && place.top < 60 && place.name === 'Products: pmos' && place.chip === 'pmos' && place.sw, JSON.stringify(place));
|
|
133
134
|
const menu = await p.evaluate(() => [...document.querySelectorAll('#czMenu a')].map((a) => a.querySelector('span').textContent + (a.getAttribute('aria-current') ? '*' : '') + '>' + a.getAttribute('href')).join('|'));
|
|
134
|
-
ok('N1 the rail holds Today, Work and Goals, and marks Work',
|
|
135
|
+
ok('N1 the rail holds Today, Work and Goals, and marks Work', /^Today>\/today\.html\|Work\*>\/premium-board\.html\|Goals>\/premium-goals\.html(\|(Events|Library|Routine)>\/premium-[a-z]+\.html)*$/.test(menu), menu);
|
|
135
136
|
await p.keyboard.press('Escape');
|
|
136
137
|
// premium-agreed-design (shared foundation): the ⋯ menu leads nowhere in the console; its undesigned items open the Viewer on a placeholder.
|
|
137
138
|
// re-pointed for the Agreed Board: the Board adds none of its old items to the menu (steps, sprint and release, metrics, cancelled and archived).
|
|
@@ -142,7 +142,8 @@ const json = (r, b, status = 200) => r.fulfill({ status, contentType: 'applicati
|
|
|
142
142
|
const B = await F.open(browser, BASE, '/premium-viewer.html?open=meeting¬e=n1', { noLive: true });
|
|
143
143
|
ALL.push(B);
|
|
144
144
|
const q = B.page;
|
|
145
|
-
|
|
145
|
+
// a held meeting opens in its notes view (board 34, Library audit item 6); "Transcript and more" shows the full card with Make task
|
|
146
|
+
await until(() => q.evaluate(() => { const f = document.querySelector('#czViewer [data-a="h-full"]'); if (f) f.click(); return !!document.querySelector('#czViewer [data-a="maketask"]'); }), 15000);
|
|
146
147
|
// shell A (XvAReplay): Next steps is a fold; open it so what the press says can be read
|
|
147
148
|
// batch 25 item 11 (MvC): Next steps is a part of the one strip under the kept points; open it so what the press says can be read
|
|
148
149
|
await q.evaluate(() => { const f = document.querySelector('#czViewer .vzr-fold [data-a="strip"][data-k="steps"]'); if (f && f.getAttribute('aria-expanded') !== 'true') f.click(); });
|
|
@@ -172,7 +173,7 @@ const json = (r, b, status = 200) => r.fulfill({ status, contentType: 'applicati
|
|
|
172
173
|
ALL.push(C);
|
|
173
174
|
await C.page.route('**/api/notes/one*', (r) => json(r, { ok: true, note: { ...W.NOTE, initiative: null, series: null }, place: null }));
|
|
174
175
|
await C.page.reload();
|
|
175
|
-
await until(() => C.page.evaluate(() => !!document.querySelector('#czViewer [data-a="maketask"]')), 15000);
|
|
176
|
+
await until(() => C.page.evaluate(() => { const f = document.querySelector('#czViewer [data-a="h-full"]'); if (f) f.click(); return !!document.querySelector('#czViewer [data-a="maketask"][data-i="0"]'); }), 15000);
|
|
176
177
|
await tap(C.page, '[data-a="maketask"][data-i="0"]');
|
|
177
178
|
ok('M4 with no initiative the press says to link one and writes nothing', await until(async () => /link the meeting to an initiative first/i.test(await text(C.page))) && posted(C.S, '/api/plan-items').length === 0);
|
|
178
179
|
await C.ctx.close();
|
|
@@ -150,7 +150,7 @@ const json = (r, b, status = 200) => r.fulfill({ status, contentType: 'applicati
|
|
|
150
150
|
const r = C.page;
|
|
151
151
|
// batch 25 item 11 (MvC): no tabs; the kept points sit left, the timeline is docked, the lines are the Transcript part of the one strip
|
|
152
152
|
const unfold = async (id) => { if (await r.evaluate((k) => document.querySelector(`#czViewer .vzr-fold [data-a="strip"][data-k="${k}"]`).getAttribute('aria-expanded') !== 'true', id)) await tap(r, `.vzr-fold [data-a="strip"][data-k="${id}"]`); };
|
|
153
|
-
ok('R7 a kept recording has the replay card under the summary', await until(() => r.evaluate(() => !!document.querySelector('#czViewer .vzp-card .vzr-np') && !document.querySelector('#czViewer [role="tablist"]')), 15000));
|
|
153
|
+
ok('R7 a kept recording has the replay card under the summary', await until(() => r.evaluate(() => { const f = document.querySelector('#czViewer [data-a="h-full"]'); if (f) f.click(); return !!document.querySelector('#czViewer .vzp-card .vzr-np') && !document.querySelector('#czViewer [role="tablist"]'); }), 15000));
|
|
154
154
|
const playing = () => r.evaluate(() => /^Pause/.test((document.querySelector('#czViewer .vzr-np:not(.vzr-ph1) [data-a="play"]') || { getAttribute: () => '' }).getAttribute('aria-label') || ''));
|
|
155
155
|
ok('R7 Replay shows the player, the strip and the kept points (MtReplay)', await until(() => r.evaluate(() => !!document.querySelector('#czViewer .vzr-np:not(.vzr-ph1) .vzp-strip') && document.querySelectorAll('#czViewer .vzp-kr').length > 0)));
|
|
156
156
|
await tap(r, '.vzr-np:not(.vzr-ph1) [data-a="play"]');
|
|
@@ -102,7 +102,7 @@ const json = (r, b, status = 200) => r.fulfill({ status, contentType: 'applicati
|
|
|
102
102
|
|
|
103
103
|
/* C8 a kept recording offers Replay */
|
|
104
104
|
const R = await open('/premium-viewer.html?open=meeting¬e=n1');
|
|
105
|
-
ok('C8 a kept recording offers Replay, and the card reads its replay', await until(() => R.page.evaluate(() => !!document.querySelector('#czViewer .vzp-card .vzr-np')), 15000) && R.S.gets.some((g) => /meeting-replay\?note=n1/.test(g)));
|
|
105
|
+
ok('C8 a kept recording offers Replay, and the card reads its replay', await until(() => R.page.evaluate(() => { const f = document.querySelector('#czViewer [data-a="h-full"]'); if (f) f.click(); return !!document.querySelector('#czViewer .vzp-card .vzr-np'); }), 15000) && R.S.gets.some((g) => /meeting-replay\?note=n1/.test(g)));
|
|
106
106
|
await R.ctx.close();
|
|
107
107
|
|
|
108
108
|
/* C3 honest states */
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
* read off the request the page sent. The routes' own behaviour (the file, the log, stale, 403) is in briefing-premium-doc-edit.test.js, on a scratch repository.
|
|
9
9
|
* E1 tabs · E2 edit · E3 ask · E4 proposals · E5 after a write · E6 held · E7 honesty · E8 fidelity and floors */
|
|
10
10
|
const fs = require('fs');
|
|
11
|
+
const { besidePage } = require('./lib/beside-page'); // these checks read the full page beside the page; in the popup work shows its three parts (nav slice 3)
|
|
11
12
|
const path = require('path');
|
|
12
13
|
const { spawn } = require('child_process');
|
|
13
14
|
const { findBrowser } = require('./lib/find-browser');
|
|
@@ -45,7 +46,7 @@ const prop = (o) => Object.assign({ id: 'prop-a', state: 'proposed', prompt: 'ad
|
|
|
45
46
|
try { ({ chromium } = require('playwright-core')); } catch { console.log('✗ playwright-core is not installed'); return finish(1); }
|
|
46
47
|
srv = spawn(process.execPath, [path.join(__dirname, 'server.js')], { cwd: __dirname, stdio: 'ignore', env: T.env({ PMOS_WS_PORT: String(T.PORT), PMOS_SELF_ROOT: path.resolve(__dirname, '..') }) });
|
|
47
48
|
await T.waitForServer(BASE);
|
|
48
|
-
browser = await chromium.launch({ executablePath: exe });
|
|
49
|
+
browser = besidePage(await chromium.launch({ executablePath: exe }));
|
|
49
50
|
|
|
50
51
|
const open = async ({ w = 1280, h = 900, theme = 'light', props = [prop()], post = null } = {}) => {
|
|
51
52
|
const ctx = await browser.newContext({ viewport: { width: w, height: h } });
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
* L Library and the reader · W New goal · I empty, failed, floors, fidelity · E the real routes
|
|
13
13
|
* Every wait polls the page; no fixed sleep stands in for a state, except the short settles after a press. */
|
|
14
14
|
const fs = require('fs');
|
|
15
|
+
const { classicBoard } = require('./lib/classic-board'); // these checks are about the four Board views, not Work (work-one-view)
|
|
15
16
|
const os = require('os');
|
|
16
17
|
const path = require('path');
|
|
17
18
|
const { spawn } = require('child_process');
|
|
@@ -60,7 +61,7 @@ const BMR = { ok: true, state: 'ready', model: { tiles: [
|
|
|
60
61
|
try { ({ chromium } = require('playwright-core')); } catch { console.log('✗ playwright-core is not installed'); return finish(1); }
|
|
61
62
|
srv = spawn(process.execPath, [path.join(__dirname, 'server.js')], { cwd: __dirname, stdio: 'ignore', env: T.env({ PMOS_WS_PORT: String(T.PORT), PMOS_SELF_ROOT: path.resolve(__dirname, '..') }) });
|
|
62
63
|
await T.waitForServer(BASE);
|
|
63
|
-
browser = await chromium.launch({ executablePath: exe });
|
|
64
|
+
browser = classicBoard(await chromium.launch({ executablePath: exe }));
|
|
64
65
|
|
|
65
66
|
const open = async ({ w = 1440, h = 900, theme = 'light', model = mk(), answers = null, bm = BMR, q = '', pick = null } = {}) => {
|
|
66
67
|
const ctx = await browser.newContext({ viewport: { width: w, height: h } });
|
|
@@ -98,13 +99,13 @@ const BMR = { ok: true, state: 'ready', model: { tiles: [
|
|
|
98
99
|
const nav = await p.evaluate(() => ({ rails: document.querySelectorAll('#czMenu.ev-rail:not([hidden])').length, fab: getComputedStyle(document.querySelector('#czFab')).display, rail: document.querySelector('nav.rail') ? getComputedStyle(document.querySelector('nav.rail')).display : 'gone', name: document.querySelector('#prodPick').getAttribute('aria-label'), chip: document.querySelector('#prodPick .ppk-nmc') ? document.querySelector('#prodPick .ppk-nmc').textContent.trim() : '', left: Math.round(document.querySelector('main.ins').getBoundingClientRect().left) }));
|
|
99
100
|
ok('N1 the rail of places replaces the floating menu on a desktop (slice 1), the page starts after it, and the product chip names the product in full', nav.rails === 1 && nav.fab === 'none' && nav.rail === 'gone' && nav.name === 'Products: pmos' && nav.chip === 'pmos' && nav.left >= 96, JSON.stringify(nav));
|
|
100
101
|
{ const mn = await p.evaluate(() => ({ links: [...document.querySelectorAll('#czMenu a')].map((a) => a.querySelector('span').textContent + '=' + a.getAttribute('href')), cur: (document.querySelector('#czMenu [aria-current="page"] span') || {}).textContent })); await p.keyboard.press('Escape');
|
|
101
|
-
ok('N1 the rail holds Today, Work and Goals, marks Goals, and stays after Escape',
|
|
102
|
+
ok('N1 the rail holds Today, Work and Goals, marks Goals, and stays after Escape', /^Today=\/today\.html,Work=\/premium-board\.html,Goals=\/premium-goals\.html(,(Events|Library|Routine)=\/premium-[a-z]+\.html)*$/.test(mn.links.join()) && mn.cur === 'Goals' && await p.evaluate(() => !document.querySelector('#czMenu').hidden), JSON.stringify(mn)); }
|
|
102
103
|
{ const hd = await p.evaluate(() => { const b = document.querySelector('#insBar').getBoundingClientRect(), m = document.querySelector('main.ins').getBoundingClientRect(); return { bar: Math.round(b.top), main: Math.round(m.top), tabs: [...document.querySelectorAll('.ins-tabs [role="tab"]')].map((t) => t.textContent.replace(/\s+\d+$/, '').trim() + ':' + t.getAttribute('aria-selected')).join(), h1: [...document.querySelectorAll('h1')].filter((h) => h.getBoundingClientRect().height > 2).length }; });
|
|
103
104
|
ok('N2 no page header: the panel starts at the top with one bar, and Intelligence is one page with no tabs (batch 15 item 1)', hd.main <= 20 && hd.bar - hd.main <= 24 && hd.h1 === 0 && hd.tabs === '' && await p.evaluate(() => document.title === 'PMOS · Intelligence'), JSON.stringify(hd)); }
|
|
104
105
|
ok('N1 nothing on the page links to the console or the Chat page (premium-agreed-design)', await p.evaluate(() => !document.querySelector('#toConsole, a[href*="console.html"], a[href*="premium-chat"]')));
|
|
105
106
|
ok('N2 the old parts are gone: no charts card, no About footer, no help button, no bell, no Library composer', await p.evaluate(() => !document.querySelector('#dashBody, #cDash, #foot, #helpB, #helpPop, .tb-bell, [data-tb="bell"], #repAsk, #repAskIn, #repFold, #listNew, #snap')));
|
|
106
107
|
ok('I1 the page is served at /premium-intelligence and .html, and the old /premium-insights and .html still serve it', (await Promise.all(['/premium-intelligence', '/premium-intelligence.html', '/premium-insights', '/premium-insights.html'].map(async (u) => { const r = await fetch(BASE + u); return r.status === 200 && /PMOS · Intelligence/.test(await r.text()); }))).every(Boolean));
|
|
107
|
-
for (const [go, re] of [['Today', /\/
|
|
108
|
+
for (const [go, re] of [['Today', /\/today\.html$/], ['Work', /\/premium-board\.html$/]]) {
|
|
108
109
|
const r2 = await open(); await r2.page.locator('#czMenu a', { hasText: go }).click();
|
|
109
110
|
ok(`N1 the rail's ${go} opens its page`, await until(() => re.test(r2.page.url()), 5000), r2.page.url());
|
|
110
111
|
await r2.ctx.close();
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
* H4 the program panel's links into Home (initiative program-hierarchy): ?item=pt:<program>:<key> and ?ask=program:<id>
|
|
19
19
|
* Every wait polls the page. */
|
|
20
20
|
const fs = require('fs');
|
|
21
|
+
const { classicBoard } = require('./lib/classic-board'); // these checks are about the four Board views, not Work (work-one-view)
|
|
21
22
|
const path = require('path');
|
|
22
23
|
const { spawn } = require('child_process');
|
|
23
24
|
const { findBrowser } = require('./lib/find-browser');
|
|
@@ -51,7 +52,7 @@ const vw = () => { const v = document.querySelector('#czViewer:not([hidden])');
|
|
|
51
52
|
try { ({ chromium } = require('playwright-core')); } catch { console.log('✗ playwright-core is not installed — the briefing-premium suite cannot run'); return finish(1); }
|
|
52
53
|
srv = spawn(process.execPath, [path.join(__dirname, 'server.js')], { cwd: __dirname, stdio: 'ignore', env: T.env({ PMOS_WS_PORT: String(T.PORT) }) });
|
|
53
54
|
await T.waitForServer(BASE);
|
|
54
|
-
browser = await chromium.launch({ executablePath: exe });
|
|
55
|
+
browser = classicBoard(await chromium.launch({ executablePath: exe }));
|
|
55
56
|
|
|
56
57
|
const open = async ({ w = 1440, h = 900, theme = 'light', model = MODEL, fail = false, mock = true, touch = false, programs = null, qs = '' } = {}) => {
|
|
57
58
|
const ctx = await browser.newContext({ viewport: { width: w, height: h }, colorScheme: theme, hasTouch: touch });
|
|
@@ -85,7 +86,7 @@ const vw = () => { const v = document.querySelector('#czViewer:not([hidden])');
|
|
|
85
86
|
ok('R1 /console.html and /classic.html go to Home: the console and the classic page are deleted', gone.every((r) => r.status === 302 && /\/premium\.html$/.test(r.headers.get('location') || '')), gone.map((r) => r.status).join());
|
|
86
87
|
const old = await fetch(BASE + '/c3.html', { redirect: 'manual' }); ok('R1 /c3.html with no query goes to Home', old.status === 302 && /\/premium\.html$/.test(old.headers.get('location') || ''));
|
|
87
88
|
const rail = await p.evaluate(() => ({ gone: !document.querySelector('nav.rail, .rail [data-go], #dlg'), places: [...document.querySelectorAll('#czMenu a')].map((a) => (a.querySelector('span, b') || a).textContent.trim() + '>' + a.getAttribute('href')), cur: (document.querySelector('#czMenu [aria-current="page"]') || {}).textContent || '' }));
|
|
88
|
-
ok('R1 no old rail and no old dialog; the places are Today, Work and Goals (slice 1) and Today is current', rail.gone &&
|
|
89
|
+
ok('R1 no old rail and no old dialog; the places are Today, Work and Goals (slice 1) and Today is current', rail.gone && /^Today>\/today\.html,Work>\/premium-board\.html,Goals>\/premium-goals\.html(,(Events|Library|Routine)>\/premium-[a-z]+\.html)*$/.test(rail.places.join()) && /Today/.test(rail.cur), JSON.stringify(rail));
|
|
89
90
|
ok('R1 nothing on Home links to the console', await p.evaluate(() => !document.querySelector('a[href*="console"], a[href*="c3.html"], [data-href*="console"]')));
|
|
90
91
|
// premium-uncovered-features (EvSettings): Settings is its own dialog, opened from the place menu
|
|
91
92
|
if (await p.isVisible('#czFab')) await p.click('#czFab'); await p.click('[data-cz-settings]');
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* N names wrap to two lines and are never cut · B one tint, quarter lines only · M the phone keeps the labels and the quiet dots
|
|
12
12
|
* SHOTS_4=<dir>: the timeline at 1440 and 390, light and dark, folded, into <dir>. */
|
|
13
13
|
const path = require('path');
|
|
14
|
+
const { classicBoard } = require('./lib/classic-board'); // these checks are about the four Board views, not Work (work-one-view)
|
|
14
15
|
const { spawn } = require('child_process');
|
|
15
16
|
const { findBrowser } = require('./lib/find-browser');
|
|
16
17
|
const T = require('./test-run').configure({ name: 'calm-timeline' });
|
|
@@ -54,7 +55,7 @@ const ITEMS = [
|
|
|
54
55
|
try { ({ chromium } = require('playwright-core')); } catch { console.log('✗ playwright-core is not installed'); return finish(1); }
|
|
55
56
|
srv = spawn(process.execPath, [path.join(__dirname, 'server.js')], { cwd: __dirname, stdio: 'ignore', env: T.env({ PMOS_WS_PORT: String(T.PORT) }) });
|
|
56
57
|
await T.waitForServer(BASE);
|
|
57
|
-
browser = await chromium.launch({ executablePath: exe });
|
|
58
|
+
browser = classicBoard(await chromium.launch({ executablePath: exe }));
|
|
58
59
|
|
|
59
60
|
/** The Board on the timeline. o: { w, h, span, dark, mode, fold, phone } */
|
|
60
61
|
const open = async (o = {}) => {
|