create-pmos 0.536.0 → 0.538.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 +81 -33
- 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 +11 -10
- package/workspace/board-programs-test.js +27 -24
- package/workspace/board-publish-ui-test.js +19 -15
- package/workspace/board-shared-ui-test.js +16 -13
- package/workspace/board-workflows-test.js +26 -32
- package/workspace/briefing-premium-board-test.js +70 -50
- package/workspace/briefing-premium-insights-test.js +24 -31
- package/workspace/briefing-premium-metrics-test.js +2 -2
- package/workspace/calm-timeline-test.js +1 -1
- package/workspace/changelog.json +80 -0
- package/workspace/ev-everywhere-test.js +4 -5
- package/workspace/fixtures/board-premium-facts.js +1 -1
- package/workspace/fixtures/board-workflows-facts.js +7 -1
- package/workspace/fixtures/initiative-premium-facts.js +1 -1
- package/workspace/fixtures/insights-premium-facts.js +6 -6
- package/workspace/fixtures/program-ascent.js +1 -1
- package/workspace/guide/adler.md +2 -2
- package/workspace/guide/agent-capabilities.md +38 -6
- package/workspace/guide/board.md +20 -2
- package/workspace/guide/claude-proposes.md +1 -1
- package/workspace/guide/home.md +2 -2
- package/workspace/guide/index.md +3 -3
- package/workspace/guide/intelligence-okr-goals.md +18 -7
- package/workspace/guide/lifecycle.md +2 -2
- package/workspace/guide/programs.md +2 -2
- package/workspace/guide/reports-needs-you.md +5 -5
- package/workspace/guide/settings.md +14 -11
- package/workspace/guide/workflows.md +3 -3
- package/workspace/guide/your-impact.md +1 -1
- package/workspace/lib/agent-team.js +262 -0
- package/workspace/lib/ai-cli.js +36 -4
- package/workspace/lib/bg-queue.js +9 -4
- package/workspace/lib/board-premium.js +6 -3
- package/workspace/lib/goal-source.js +77 -0
- package/workspace/lib/grill-runs.js +6 -3
- package/workspace/lib/headless.js +36 -4
- package/workspace/lib/idle-lab-engine.js +7 -6
- package/workspace/lib/initiative-premium.js +6 -3
- package/workspace/lib/insights-premium.js +1 -1
- package/workspace/lib/job-graph.js +191 -0
- package/workspace/lib/okr-goals.js +3 -0
- package/workspace/lib/orchestrator-keeprate.js +108 -7
- package/workspace/lib/pmos-verbs.js +3 -0
- package/workspace/lib/proposal-runs.js +8 -5
- package/workspace/lib/proposals.js +32 -2
- package/workspace/lib/report-slots.js +14 -10
- package/workspace/lib/routes-boards.js +2 -2
- package/workspace/lib/routes-insights-premium.js +11 -4
- package/workspace/lib/routes-premium-dashboards.js +20 -6
- package/workspace/lib/routes-proposals.js +10 -5
- package/workspace/lib/routes-your-move.js +6 -7
- package/workspace/lib/status-proof.js +45 -0
- package/workspace/lib/status-signal.js +4 -2
- package/workspace/lib/task-links.js +3 -1
- package/workspace/lib/team-cli.js +164 -0
- package/workspace/lib/team-runs.js +244 -0
- package/workspace/lib/verify-runs.js +112 -0
- package/workspace/okr-goals-ui-test.js +10 -13
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/premium-vw-backlog-test.js +2 -2
- package/workspace/premium-vw-jira-test.js +2 -2
- package/workspace/public/pm/bd-acts.js +30 -45
- package/workspace/public/pm/bd-ini-panel.js +38 -27
- package/workspace/public/pm/bd-publish.js +1 -1
- package/workspace/public/pm/bd-span.js +2 -1
- package/workspace/public/pm/bd-views.js +7 -5
- package/workspace/public/pm/bd-wf.js +5 -28
- package/workspace/public/pm/c3-ini-ui.js +9 -7
- package/workspace/public/pm/cozy-board.css +75 -31
- package/workspace/public/pm/cozy-insights.css +18 -0
- package/workspace/public/pm/cozy-nav.js +2 -2
- package/workspace/public/pm/cozy-search.js +29 -7
- package/workspace/public/pm/cozy-settings.js +39 -20
- package/workspace/public/pm/home-data.js +3 -1
- package/workspace/public/pm/home-ini-model.js +15 -1
- package/workspace/public/pm/home-ini.js +9 -3
- package/workspace/public/pm/ini-tail.js +61 -0
- package/workspace/public/pm/ini-view-model.js +10 -7
- package/workspace/public/pm/premium-board.js +119 -119
- package/workspace/public/pm/premium-insights.js +95 -112
- package/workspace/public/pm/premium-report-intel.js +3 -2
- package/workspace/public/pm/readonly.js +4 -3
- package/workspace/public/pm/stage-chip.js +2 -1
- package/workspace/public/pm/status-proof.js +43 -0
- package/workspace/public/premium-board.html +14 -35
- package/workspace/public/premium-intelligence.html +7 -9
- package/workspace/server.js +35 -1
- package/workspace/sort-order-test.js +10 -8
- package/workspace/test-files.json +4 -2
- package/workspace/test-lists/agent-team.json +9 -0
- package/workspace/test-lists/job-graph.json +11 -0
- package/workspace/test-lists/status-proof.json +5 -0
- package/workspace/workflows-setup-test.js +3 -2
- package/workspace/public/premium-chat.html +0 -14
- package/workspace/public/premium-initiative.html +0 -15
- package/workspace/public/premium-work.html +0 -14
|
@@ -110,8 +110,13 @@ const IVREAD = () => {
|
|
|
110
110
|
const p = A.page, M = mk();
|
|
111
111
|
const txt = (s) => p.evaluate((q) => (document.querySelector(q) || {}).textContent || '', s);
|
|
112
112
|
|
|
113
|
-
|
|
114
|
-
const
|
|
113
|
+
// the View chip holds the four views and, on the timeline, the span (UI grill U2): its items are pressed from code, as the old tabs were
|
|
114
|
+
const view = async (pg, v) => { await pg.evaluate((x) => document.querySelector(`#bdViewMenu [data-pv="${x}"]`).click(), v); await sleep(150); };
|
|
115
|
+
// the Filter's "Sprint N only" (batch 28 item 3, BhA: the chip row is gone; the chip is Filter's first sprint chip)
|
|
116
|
+
const sprintOnly = async (pg) => { await pg.click('#bdFilter'); await pg.click('#bdPop [data-fsonly]'); await pg.keyboard.press('Escape'); await sleep(150); };
|
|
117
|
+
// a phone's view button (BhA): its menu holds the four views
|
|
118
|
+
const pview = async (pg, v) => { await pg.click('#bdView'); await pg.click(`#bdViewMenu [data-pv="${v}"]`); await sleep(150); };
|
|
119
|
+
const spanTo = async (pg, s) => { await pg.click('#bdView'); await pg.click(`#bdViewMenu [data-spick="${s}"]`); await pg.keyboard.press('Escape'); await sleep(150); }; // the span, in the View chip (UI grill U2)
|
|
115
120
|
/* the Viewer's shell A (initiative viewer-shell-a, XvABoard): what it shows now, and a press in its ⋯ menu by label */
|
|
116
121
|
const vwOn = (pg, kind) => pg.evaluate((k) => { const v = document.querySelector('#czViewer'), c = window.czViewer && window.czViewer.current(); return !!v && !v.hidden && !!c && (!k || c.kind === k); }, kind || null);
|
|
117
122
|
const vwTitle = (pg) => pg.evaluate(() => { const v = document.querySelector('#czViewer'); return v && !v.hidden ? (v.querySelector('.cz-vw-title') || {}).textContent || '' : ''; });
|
|
@@ -130,21 +135,26 @@ const IVREAD = () => {
|
|
|
130
135
|
await p.keyboard.press('Escape');
|
|
131
136
|
// premium-agreed-design (shared foundation): the ⋯ menu leads nowhere in the console; its undesigned items open the Viewer on a placeholder.
|
|
132
137
|
// 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).
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
138
|
+
// UI grill U2: the Board's ⋯ holds Publish a read-only copy (a board with a workspace) and Cancelled and archived; Sources, Theme and Settings
|
|
139
|
+
// left it for Settings, which the place menu opens
|
|
140
|
+
{ await p.click('#moreBtn'); const tc = await p.evaluate(() => { const b = document.querySelector('#moreBtn').getBoundingClientRect(); return { console: document.querySelectorAll('#moreMenu a[href*="console"], #toConsole').length, w: Math.round(b.width), h: Math.round(b.height), items: [...document.querySelectorAll('#moreMenu [role^="menuitem"]')].filter((x) => x.offsetParent !== null).map((x) => x.id), theme: !!document.querySelector('#moreMenu #tbTheme') }; });
|
|
141
|
+
ok('B1 the ⋯ menu has no console link and holds only Publish a read-only copy and Cancelled and archived (no Sources, Theme or Settings: UI grill U2)', tc.console === 0 && tc.w >= 40 && tc.h >= 40 && tc.items.join() === 'bdPublish,bdGone' && !tc.theme, JSON.stringify(tc));
|
|
142
|
+
await p.keyboard.press('Escape');
|
|
143
|
+
await p.click('#czFab'); await p.click('#czMenu [data-cz-settings]'); const vw = await until(() => p.evaluate(() => { const d = document.querySelector('#evSettings:not([hidden])'); return d ? d.getAttribute('aria-label') : null; }));
|
|
144
|
+
ok('B1 Settings opens its dialog from the place menu (premium-uncovered-features, EvSettings)', vw === 'Settings', JSON.stringify(vw)); await p.keyboard.press('Escape'); }
|
|
136
145
|
ok('B1 the page is served at /premium-board and /premium-board.html', (await fetch(BASE + '/premium-board')).status === 200 && (await fetch(BASE + '/premium-board.html')).status === 200);
|
|
137
146
|
|
|
138
147
|
/* the Agreed toolbar: the view toggle, Find, Filter, New initiative and ⋯; nothing of the older Board is attached (premium-agreed-design, audit section 2) */
|
|
139
|
-
const tools = await p.evaluate(() => ({ views: [...document.querySelectorAll('#
|
|
140
|
-
|
|
148
|
+
const tools = await p.evaluate(() => ({ views: [...document.querySelectorAll('#bdViewMenu [data-pv]')].map((b) => b.dataset.pv).join(), order: [...document.querySelectorAll('.bd-hd #bdView, .bd-hd #bdFind, .bd-hd #bdFilter, .bd-hd #newIni, .bd-hd #moreBtn')].map((e) => e.id).join(),
|
|
149
|
+
n: [...document.querySelectorAll('.bd-hd button, .bd-hd .crumb')].filter((b) => b.offsetParent !== null && !b.closest('[hidden], .bd-grpm, #bdChipset') && !b.matches('.crumb *')).length, old: ['#modeSeg', '#iniCap', '#iniBar', '#iniNote', '#popAsks', '#popSpr', '#popMet', '#popFilter', '#stHelp', '#more', '.bam2', '.bd-foot', '#dmQ', '#docBody .dmr'].filter((q) => !!document.querySelector(q)), console: document.querySelectorAll('a[href*="console"]').length }));
|
|
150
|
+
ok('B1 the toolbar is one row of seven (UI grill U2): the picker, the View chip (List, By stage, Track and Timeline), the pill, Find, the tune button, New and ⋯, in that order', tools.views === 'list,stages,track,time' && tools.order === 'bdView,bdFind,bdFilter,newIni,moreBtn' && tools.n === 6, JSON.stringify(tools));
|
|
141
151
|
ok('B1 none of the older Board is on the page: no Page/Popup switch, header bar, note, asks, sprint, metrics or filter popover, Show more, row menu, footer or documents manager, and no console link', tools.old.length === 0 && tools.console === 0, JSON.stringify(tools));
|
|
142
152
|
|
|
143
153
|
/* B1 the stage track (premium-agreed-design): eight columns, two of them milestones, the board's counts, rows by stage.
|
|
144
154
|
* The milestone mark is a drawn diamond (.msh header holding .cz-ms, cozy.css), not a ◆ glyph in the text; the heads read '◆ ' only where
|
|
145
155
|
* that shape is present, so the check pins which two columns are milestones. Evaluate 21 is the fixture's own count (+20 done). */
|
|
146
|
-
const tr = await p.evaluate(() => ({ heads: [...document.querySelectorAll('.bt-h .bt-cells > div')].map((d) => (d.classList.contains('msh') && d.querySelector('.cz-ms') ? '◆ ' : '') + d.textContent.replace(/\s+/g, ' ').trim()), rows: [...document.querySelectorAll('#ibBody .bt-l')].map((r) => ({ t: r.querySelector('.bt-nm b').textContent, cur: [...r.querySelectorAll('.bt-cells > div')].findIndex((c) => c.classList.contains('c')), nx: ((r.querySelector('.bt-dl .bd-nx .tx') || {}).textContent || ''), cnt: ((r.querySelector('.bt-dl .bd-nx .mu') || {}).textContent || ''), act: ((r.querySelector('.bt-dl .bd-nxa') || { getAttribute: () => '' }).getAttribute('aria-label') || ''), you: !!r.querySelector('.bt-dl .bd-nx .cz-dot.you'), st: r.querySelector('.cs').textContent, days: (r.querySelector('.sc.c small') || {}).textContent, dt: (r.querySelector('.sc.c') || {}).title })), pressed: document.querySelector('#
|
|
147
|
-
ok('B1 the default view is the stage track with six stages and two milestones, each with the board\'s count (old names count for the new ones)', tr.pressed === 'track' && tr.heads.join('|') === '
|
|
156
|
+
const tr = await p.evaluate(() => ({ heads: [...document.querySelectorAll('.bt-h .bt-cells > div')].map((d) => (d.classList.contains('msh') && d.querySelector('.cz-ms') ? '◆ ' : '') + d.textContent.replace(/\s+/g, ' ').trim()), rows: [...document.querySelectorAll('#ibBody .bt-l')].map((r) => ({ t: r.querySelector('.bt-nm b').textContent, cur: [...r.querySelectorAll('.bt-cells > div')].findIndex((c) => c.classList.contains('c')), nx: ((r.querySelector('.bt-dl .bd-nx .tx') || {}).textContent || ''), cnt: ((r.querySelector('.bt-dl .bd-nx .mu') || {}).textContent || ''), act: ((r.querySelector('.bt-dl .bd-nxa') || { getAttribute: () => '' }).getAttribute('aria-label') || ''), you: !!r.querySelector('.bt-dl .bd-nx .cz-dot.you'), st: r.querySelector('.cs').textContent, days: (r.querySelector('.sc.c small') || {}).textContent, dt: (r.querySelector('.sc.c') || {}).title })), pressed: document.querySelector('#bdViewMenu [aria-pressed="true"]').dataset.pv, n: document.querySelector('.bt-nmh').textContent.replace(/\s+/g, ' ').trim(), oh: document.querySelector('.bt-oh').textContent, lg: !!document.querySelector('.bt-oh .lg, #ibBody .seg5'), tf: document.querySelector('.bt-tf').textContent }));
|
|
157
|
+
ok('B1 the default view is the stage track with six stages and two milestones, each with the board\'s count (old names count for the new ones); a step with none says no 0 (UI grill U2)', tr.pressed === 'track' && tr.heads.join('|') === 'Triage|Discover1|Plan1|Prioritize|Build2|◆ Deliver1|Monitor1|◆ Evaluate21', JSON.stringify(tr.heads));
|
|
148
158
|
ok('B1 one row per initiative, sorted by stage, with its current step marked; the head counts the open initiatives', tr.rows.length === 7 && tr.rows.map((r) => r.cur).join() === '1,2,4,4,5,6,7' && tr.rows[0].t === 'Usage-based billing' && tr.n === 'Initiative 9', JSON.stringify(tr.rows.map((r) => r.t + ':' + r.cur)));
|
|
149
159
|
ok('B1 the Next column says what finishes the step next, with its count; the initiative\'s whole progress is never the step\'s, and a part not on record draws nothing', tr.oh === 'Next' && tr.rows[0].nx === '' && tr.rows[1].nx === 'Draft the tickets' && tr.rows[1].cnt === '1/2 parts' && tr.rows.every((r) => !/%/.test(r.cnt)) && tr.rows[3].nx === 'Link the Jira epic' && tr.rows[3].act === 'Link the Jira epic' && tr.rows[6].nx === 'Draft the outcome report' && tr.rows[6].act === 'Draft the outcome report with Claude', JSON.stringify(tr.rows.map((r) => [r.nx, r.cnt, r.act])));
|
|
150
160
|
ok('B1 the status line says late in days over and at risk with no owner', tr.rows.some((r) => /^\d+ days over$/.test(r.st)) && tr.rows[0].st === 'At risk · no owner', JSON.stringify(tr.rows.map((r) => r.st)));
|
|
@@ -202,8 +212,10 @@ const IVREAD = () => {
|
|
|
202
212
|
}
|
|
203
213
|
{
|
|
204
214
|
const R = await open({ model: BP.build(FJ.facts()) }), q = R.page;
|
|
205
|
-
const c = await q.evaluate(() => ({ chips: [...document.querySelectorAll('#bdChipset .bd-chip')].map((b) => b.textContent.replace(/\s+/g, ' ').trim() + (b.getAttribute('aria-pressed') === 'true' ? '*' : '')), need: document.querySelector('#chNeed').getAttribute('aria-label'), rows: [...document.querySelectorAll('#bdNeedMenu button')].map((b) => b.textContent.trim() + (b.getAttribute('aria-pressed') === 'true' ? '*' : '')).join('|'), jira: document.querySelector('#chJira').getAttribute('title'), ss: document.querySelector('.bt-l[data-row="board:self-serve-v2"] .bd-nx .tx').textContent, sso: document.querySelector('.bt-l[data-row="board:sso-partners"] .bd-nx .tx').textContent, red: !!document.querySelector('.bt-l[data-row="board:sso-partners"] .bd-nx em.red'), ssoTitle: document.querySelector('.bt-l[data-row="board:sso-partners"] .bd-nx .tx').title, st: document.querySelector('.bt-l[data-row="board:sso-partners"] .cs').textContent, ssoCount: document.querySelector('.bt-l[data-row="board:sso-partners"] .bd-nx .mu').textContent, ssCount: document.querySelector('.bt-l[data-row="board:self-serve-v2"] .bd-nx .mu').textContent }));
|
|
206
|
-
ok('B1 the
|
|
215
|
+
const c = await q.evaluate(() => ({ chips: [...document.querySelectorAll('#bdChipset .bd-chip')].map((b) => b.textContent.replace(/\s+/g, ' ').trim() + (b.getAttribute('aria-pressed') === 'true' ? '*' : '')), spr: document.querySelector('#bdChipset #chSprint').getAttribute('aria-label'), jiraRow: !!document.querySelector('.bd-hd #bdLgdMenu #chJira') && !document.querySelector('#bdJiraw'), need: document.querySelector('#chNeed').getAttribute('aria-label'), rows: [...document.querySelectorAll('#bdNeedMenu button')].map((b) => b.textContent.trim() + (b.getAttribute('aria-pressed') === 'true' ? '*' : '')).join('|'), jira: document.querySelector('#chJira').getAttribute('title'), ss: document.querySelector('.bt-l[data-row="board:self-serve-v2"] .bd-nx .tx').textContent, sso: document.querySelector('.bt-l[data-row="board:sso-partners"] .bd-nx .tx').textContent, red: !!document.querySelector('.bt-l[data-row="board:sso-partners"] .bd-nx em.red'), ssoTitle: document.querySelector('.bt-l[data-row="board:sso-partners"] .bd-nx .tx').title, st: document.querySelector('.bt-l[data-row="board:sso-partners"] .cs').textContent, ssoCount: document.querySelector('.bt-l[data-row="board:sso-partners"] .bd-nx .mu').textContent, ssCount: document.querySelector('.bt-l[data-row="board:self-serve-v2"] .bd-nx .mu').textContent }));
|
|
216
|
+
ok('B1 the one row holds one pill for the new asks, late, at risk and blocked; its (i) holds the sprint and release and the Jira read with its ↻ (batch 24 item 7, UI grill U2)', c.chips.length === 1 && c.spr === 'Sprint 24 · v2.4 ships Nov 4. Sprints and releases' && c.need === '1 new ask, 1 late, 3 at risk, 1 blocked. Show them' && c.rows === 'New ask1|Late1|At risk3|Blocked1' && /^Jira · read .*Read Jira again$/.test(c.jira) && c.jiraRow, JSON.stringify(c));
|
|
217
|
+
await q.click('#bdFilter'); const fo = await q.evaluate(() => { const b = document.querySelector('#bdPop [data-fsonly]'); return b ? b.textContent + (b.getAttribute('aria-pressed') === 'true' ? '*' : '') : null; }); await q.keyboard.press('Escape');
|
|
218
|
+
ok('B1 This sprint (on by default) is Filter\'s first sprint chip now that the chip row is gone (batch 28 item 3)', fo === 'Sprint 24 only*', String(fo));
|
|
207
219
|
ok('B1 Build and Deliver say the ticket that matters, counted in points or tickets; a blocked ticket comes first, in red', c.ssCount === '5/13 pts' && c.ssoCount === '1/4 tickets' && /^Finish SSO-12/.test(c.sso) && c.red && /blocked/.test(c.ssoTitle) && /^Finish ONB-\d+ · 2 more$/.test(c.ss), JSON.stringify(c));
|
|
208
220
|
ok('B1 a Deliver row whose release has a date says when it ships', c.st === 'Ships Nov 4', c.st);
|
|
209
221
|
// a metric chip opens its trend (BdPanel); its "Show only" filters
|
|
@@ -244,19 +256,19 @@ const IVREAD = () => {
|
|
|
244
256
|
if (await q.$('#czViewer .iv-ed')) await q.keyboard.press('Escape'); // the ticket's row is still open in place (batch 18 item 16): Esc shuts it first
|
|
245
257
|
await q.keyboard.press('Escape');
|
|
246
258
|
ok('B1 Escape closes the Viewer', await vwShut(q));
|
|
247
|
-
const n1 = R.posts.length; await q.click('#chJira');
|
|
248
|
-
ok('B1 the Jira
|
|
259
|
+
const n1 = R.posts.length; await q.click('#bdLgdBtn'); await q.click('#chJira');
|
|
260
|
+
ok('B1 the Jira read\'s ↻ in the pill\'s (i) reads Jira again', await until(() => R.posts.slice(n1).some((x) => x.path === '/api/sources/refresh' && x.body.source === 'jira')));
|
|
249
261
|
/* the chips and tools open their designed popovers (BdAsks, BdSprint, BdFilter) and New initiative its panel (BdNew), with no "Waiting for design" tag */
|
|
250
262
|
const waits = [];
|
|
251
|
-
for (const [sel, name, body] of [['#chAsks', 'New asks', /1 new ask.*Finance wants a CSV of failed payouts.*Accept to Triage/], ['#chSprint', 'Sprints and releases', /Sprints · from Jira.*Sprint 24.*Releases.*Backlog/], ['#
|
|
252
|
-
if (sel === '#chAsks') await needOpen(q); await q.click(sel);
|
|
263
|
+
for (const [sel, name, body] of [['#chAsks', 'New asks', /1 new ask.*Finance wants a CSV of failed payouts.*Accept to Triage/], ['#chSprint', 'Sprints and releases', /Sprints · from Jira.*Sprint 24.*Releases.*Backlog/], ['#bdFilter', 'Group, sort and filter', /Sort.*Owner.*Dara.*Lee.*No owner.*Category.*In progress.*Done.*Applies as you pick/]]) {
|
|
264
|
+
if (sel === '#chAsks') await needOpen(q); if (sel === '#chSprint') await q.click('#bdLgdBtn'); await q.click(sel);
|
|
253
265
|
waits.push(await until(() => q.evaluate(([nm, re]) => { const k = document.querySelector('#bdPop'); if (!k || k.hidden) return null; return k.getAttribute('aria-label') === nm && !k.querySelector('.bd-wtag') && new RegExp(re).test(k.textContent) ? nm : null; }, [name, body.source])) || 'missing ' + name);
|
|
254
266
|
await q.keyboard.press('Escape');
|
|
255
267
|
}
|
|
256
268
|
await q.click('#newIni'); await q.click('#bdPop [data-newmenu="ini"]');
|
|
257
269
|
waits.push(await until(() => q.evaluate(() => { const k = document.querySelector('#czViewer'); if (!k || k.hidden) return null; return (k.querySelector('.cz-vw-title') || {}).textContent === 'New initiative' && !k.querySelector('.bd-wtag') && !!k.querySelector('#nwDrop') && /Counts toward/.test(k.textContent) && !k.querySelector('select[name="lane"]') ? 'New initiative' : null; })) || 'missing New initiative');
|
|
258
270
|
await q.keyboard.press('Escape');
|
|
259
|
-
ok('B1 the new asks, the sprint and release,
|
|
271
|
+
ok('B1 the new asks, the sprint and release and the tune button (Group, sort and filter) open their popovers, and New initiative its panel with material and no lane field', waits.join() === 'New asks,Sprints and releases,Group, sort and filter,New initiative', waits.join());
|
|
260
272
|
ok('B1 none of them opened the old dialog', await q.evaluate(() => !document.querySelector('#dlg.on')));
|
|
261
273
|
/* B3 Discuss in chat (batch 26 item 4): Home's chat about the initiative opens in a panel on the Board; the page stays */
|
|
262
274
|
const keysB3 = [];
|
|
@@ -275,7 +287,7 @@ const IVREAD = () => {
|
|
|
275
287
|
s1.issues = s1.issues.concat(s0.issues.filter((i) => i.initiative === 'sso-partners')); s0.issues = s0.issues.filter((i) => i.initiative !== 'sso-partners'); f.items = [];
|
|
276
288
|
const R = await open({ model: BP.build(f) }), q = R.page;
|
|
277
289
|
const rows = () => q.evaluate(() => [...document.querySelectorAll('#ibBody .bt-l')].map((r) => r.dataset.row));
|
|
278
|
-
const on = await rows(); await q
|
|
290
|
+
const on = await rows(); await sprintOnly(q); const off = await rows();
|
|
279
291
|
ok('B1 This sprint hides an initiative whose tickets are all in a later sprint, and shows it when turned off', on.length === 6 && !on.includes('board:sso-partners') && off.length === 7 && off.includes('board:sso-partners'), JSON.stringify([on, off]));
|
|
280
292
|
await R.ctx.close();
|
|
281
293
|
}
|
|
@@ -297,14 +309,14 @@ const IVREAD = () => {
|
|
|
297
309
|
await R.ctx.close();
|
|
298
310
|
}
|
|
299
311
|
|
|
300
|
-
/* B3 + B11 one count: the
|
|
301
|
-
const head = await p.evaluate(() => ({ tab: document.querySelector('#nIni')
|
|
302
|
-
ok('B3 B11 the counts are the board\'s, once: 9 open in the
|
|
312
|
+
/* B3 + B11 one count: the track's head and the chips agree with the board's counts (the Initiatives tab went with the one-row header, batch 28 item 3: say it once); B12 the status says what is real */
|
|
313
|
+
const head = await p.evaluate(() => ({ tab: document.querySelector('#nIni') ? 'still there' : '', n: document.querySelector('.bt-nmh span').textContent, chips: [...document.querySelectorAll('#bdNeedMenu [data-f]')].map((b) => b.textContent.trim()).join('|'), snap: document.querySelector('#snap').textContent }));
|
|
314
|
+
ok('B3 B11 the counts are the board\'s, once: 9 open in the head, 1 late and 3 at risk in the chips', head.tab === '' && head.n === '9' && head.chips === 'Late1|At risk3', JSON.stringify(head));
|
|
303
315
|
ok('B12 the status says what is real', /^Real data · as of 09:12$/.test(head.snap), JSON.stringify(head));
|
|
304
316
|
|
|
305
317
|
/* B4 B5 List (BdList) and By stage (BdByStage): rows and cards open the panel */
|
|
306
318
|
await view(p, 'list');
|
|
307
|
-
const listOf = () => p.evaluate(() => ({ tag: !!document.querySelector('#ibBody .bd-wtag'), rows: [...document.querySelectorAll('#ibBody .bd-lt[data-row] .bd-ltn b')].map((b) => b.textContent), ss: ((document.querySelector('#ibBody .bd-lt[data-row="board:self-serve-v2"]') || {}).textContent || '').replace(/\s+/g, ' '), head: [...document.querySelectorAll('#ibBody .bd-lt.h [role="columnheader"]')].map((h) => h.textContent).join('|'), foot: (document.querySelector('#ibBody .bd-lt.foot') || {}).textContent || '', v: document.querySelector('#
|
|
319
|
+
const listOf = () => p.evaluate(() => ({ tag: !!document.querySelector('#ibBody .bd-wtag'), rows: [...document.querySelectorAll('#ibBody .bd-lt[data-row] .bd-ltn b')].map((b) => b.textContent), ss: ((document.querySelector('#ibBody .bd-lt[data-row="board:self-serve-v2"]') || {}).textContent || '').replace(/\s+/g, ' '), head: [...document.querySelectorAll('#ibBody .bd-lt.h [role="columnheader"]')].map((h) => h.textContent).join('|'), foot: (document.querySelector('#ibBody .bd-lt.foot') || {}).textContent || '', v: document.querySelector('#bdViewMenu [aria-pressed="true"]').dataset.pv }));
|
|
308
320
|
const lv = await listOf();
|
|
309
321
|
ok('B4 the List view lists the initiatives with workflow, stage, category, status, owner, next and finish, sorted by need; Monitor and Evaluate fold below', !lv.tag && lv.rows.length === 5 && lv.head === 'Initiative · sorted by need|Workflow|Stage|Category|Status|Owner|Next|Finish|' && /Self-serve onboarding v2.*Product feature.*Build.*In progress.*7 days over.*Link the Jira epic.*10 Oct/.test(lv.ss) && /2 more in Monitor and Evaluate/.test(lv.foot) && lv.v === 'list', JSON.stringify(lv));
|
|
310
322
|
await p.click('#ibBody [data-sort="title"]');
|
|
@@ -319,7 +331,7 @@ const IVREAD = () => {
|
|
|
319
331
|
await view(p, 'stages');
|
|
320
332
|
const bs = await p.evaluate(() => ({ tag: !!document.querySelector('#ibBody .bd-wtag'), cols: [...document.querySelectorAll('#ibBody .bd-kh')].map((h) => h.textContent), strips: [...document.querySelectorAll('#ibBody .bd-kstrip')].map((h) => h.textContent), build: document.querySelectorAll('#ibBody .bd-kc[data-step="4"] .bd-bc').length, drag: document.querySelectorAll('#ibBody .bd-bc[draggable="true"]').length, lanes: document.querySelectorAll('#ibBody .bd-lh').length }));
|
|
321
333
|
// PgKanban: any column folds to a strip with its count; empty ones start folded, and Monitor and Evaluate while nothing in them needs you
|
|
322
|
-
ok('B5 By stage is one column per step with the board\'s counts and the cards; empty columns, and Monitor and Evaluate with nothing for you, start as strips', !bs.tag && bs.cols.join('|') === 'Discover1|Plan1|Build2|Deliver1' && bs.strips.join() === '
|
|
334
|
+
ok('B5 By stage is one column per step with the board\'s counts and the cards; empty columns, and Monitor and Evaluate with nothing for you, start as strips', !bs.tag && bs.cols.join('|') === 'Discover1|Plan1|Build2|Deliver1' && bs.strips.join() === 'Triage,Prioritize,1Monitor,21Evaluate' && bs.build === 2 && bs.drag === 5 && bs.lanes === 0, JSON.stringify(bs));
|
|
323
335
|
await p.click('#ibBody .bd-kstrip[data-colfold="monitor"]');
|
|
324
336
|
ok('B5 a strip opens its column', await p.evaluate(() => !!document.querySelector('#ibBody .bd-kh[data-colfold="monitor"]') && !document.querySelector('#ibBody .bd-kstrip[data-colfold="monitor"]') && document.querySelectorAll('#ibBody .bd-kc[data-step="6"] .bd-bc').length === 1));
|
|
325
337
|
await p.click('#ibBody .bd-kh[data-colfold="build"]');
|
|
@@ -336,7 +348,7 @@ const IVREAD = () => {
|
|
|
336
348
|
/* B6 (premium-agreed-design B2) the timeline: plan against the Jira forecast; every span from Quarter on draws the same rows (feedback batch 7,
|
|
337
349
|
* timeline spans C: TsAllSpans); the scroll itself is checked in board-programs-test.js (T) */
|
|
338
350
|
await view(p, 'time');
|
|
339
|
-
const tl = await p.evaluate(() => ({ spans: [...document.querySelectorAll('#
|
|
351
|
+
const tl = await p.evaluate(() => ({ spans: [...document.querySelectorAll('#bdViewMenu [data-spick]')].map((b) => b.textContent + (b.getAttribute('aria-checked') === 'true' ? '*' : '')).join(), shown: !!document.querySelector('#bdViewMenu [data-spick]'), rows: [...document.querySelectorAll('#ibBody .tg-r .tg-n.ini2 b')].map((b) => b.textContent), bars: document.querySelectorAll('#ibBody .tg-bar').length, none: (document.querySelector('.tg-none') || {}).textContent || '', ask: (document.querySelector('#askDates') || {}).href || '', hid: (document.querySelector('.tg-hid') || {}).textContent || '', lgd: (document.querySelector('.tg-lgd') || {}).textContent || '', today: (document.querySelector('#ibBody .tg-tpill') || {}).textContent === 'Today' }));
|
|
340
352
|
ok('B6 the timeline has six spans and starts on Quarter, one row per initiative; the 4 with no dates are rows too (batch 26 item 8), counted in the foot with an ask to propose dates', tl.shown && tl.spans === 'Sprint,Quarter*,Half,Year,2 yr,5 yr' && tl.rows.length === 7 && ['Usage-based billing', 'Audit log export', 'Refund reason codes', 'Docs search'].every((n) => tl.rows.includes(n)) && tl.bars === 3 && /^4 have no dates/.test(tl.none) && !/Docs search/.test(tl.none) && /\/premium\.html\?ask=board%3Aw1&q=Propose/.test(tl.ask), JSON.stringify(tl));
|
|
341
353
|
ok('B6 Monitor and Evaluate show on the Quarter, with no hidden count in the footer (batch 8 item 2); the legend (PgTimeline: done, planned, the Jira forecast, Milestone (batch 11 item 3), today) and Today are drawn', tl.hid === '' && /Done in Jira/.test(tl.lgd) && /To do/.test(tl.lgd) && /Jira forecast/.test(tl.lgd) && /Milestone/.test(tl.lgd) && /Today/.test(tl.lgd) && tl.today, JSON.stringify(tl));
|
|
342
354
|
ok('B6 the spans help popover went with the theme grouping (TsCGrill): the first head is a plain "Initiative"', await p.evaluate(() => !document.querySelector('#popRules') && !document.querySelector('#ibBody [data-rules]') && /^Initiative/.test(document.querySelector('#ibBody .tg-h .tg-n').textContent)));
|
|
@@ -375,7 +387,7 @@ const IVREAD = () => {
|
|
|
375
387
|
await view(p, 'track');
|
|
376
388
|
|
|
377
389
|
/* B7 the Board has no Documents tab (batch 24 item 7, canvas BbB): an initiative's Documents fold and Search's Documents filter reach the documents */
|
|
378
|
-
ok('B7 the Board has no Documents tab and no Docs chip;
|
|
390
|
+
ok('B7 the Board has no Documents tab and no Docs chip; Shared with me is the View chip\'s last item (UI grill U2)', await p.evaluate(() => !document.querySelector('#tabDocs') && !document.querySelector('#cDocs') && !document.querySelector('#chDocs') && !document.querySelector('.bd-hd ~ * .bd-tab') && !document.querySelector('#tabShared') && !!document.querySelector('#bdViewMenu [data-vshared]')));
|
|
379
391
|
|
|
380
392
|
/* B13 focus: Escape closes the panel and gives the focus back to the row; the Board never opens the old dialog */
|
|
381
393
|
await p.locator('#ibBody .bt-l[data-row="board:self-serve-v2"] .bt-nm').click(); await until(() => vwOn(p, 'Initiative'));
|
|
@@ -432,14 +444,15 @@ const IVREAD = () => {
|
|
|
432
444
|
/* B13 floors: the phone (AgBoardPhone, AgBoardPhoneSheet, AgBoardTimelinePhone) */
|
|
433
445
|
for (const theme of ['light', 'dark']) {
|
|
434
446
|
const R = await open({ w: 390, h: 844, theme, model: BP.build(FJ.facts()) }), q = R.page;
|
|
435
|
-
const m = await q.evaluate(() => { const small = [...document.querySelectorAll('#
|
|
436
|
-
ok(`B13 at 390 px (${theme}) the page has no sideways scroll, the top bar is
|
|
437
|
-
ok(`B13 at 390 px (${theme}) the
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
447
|
+
const m = await q.evaluate(() => { const small = [...document.querySelectorAll('#ibBody .bt-nm, #bdChipset .bd-chip, .bd-tab, #newIni, #bdFind, #bdView, #bdFilter')].filter((b) => !b.closest('[hidden]') && b.getBoundingClientRect().height > 0 && b.getBoundingClientRect().height < 44).map((b) => b.className + ':' + Math.round(b.getBoundingClientRect().height)); const fab = document.querySelector('#czFab').getBoundingClientRect(); return { over: document.documentElement.scrollWidth > innerWidth + 1, small, fabRight: Math.round(innerWidth - fab.right), top: Math.round(document.querySelector('.bd-hd').getBoundingClientRect().height), chips: [...document.querySelectorAll('#bdChipset .bd-chip')].map((b) => b.textContent.replace(/\s+/g, ' ').trim()), rows: document.querySelectorAll('.bd-hd').length + document.querySelectorAll('.bd-chiprow').length, jira: !!document.querySelector('.bd-hd #chJira'), order: [...document.querySelectorAll('.bd-hd button')].filter((b) => b.offsetParent && !b.closest('.bd-grpm')).map((b) => b.id).join() }; });
|
|
448
|
+
ok(`B13 at 390 px (${theme}) the page has no sideways scroll, the top bar is ONE line (batch 28 item 3), the menu sits bottom right, and every control is 44 px`, !m.over && m.small.length === 0 && m.fabRight < 40 && m.top <= 56 && m.rows === 1, JSON.stringify(m));
|
|
449
|
+
ok(`B13 at 390 px (${theme}) the one row is the picker, the view button, the one pill for what needs a look, Find, the tune button and New; no Jira face, no Shared chip, no workflow chips (BhA)`, m.chips.join() === '1131' && !m.jira && m.order === 'bdPick,bdView,chNeed,bdFind,bdFilter,newIni', JSON.stringify(m));
|
|
450
|
+
await q.click('#bdView');
|
|
451
|
+
const pl = await q.evaluate(() => ({ groups: [...document.querySelectorAll('#ibBody .bd-ghd')].map((g) => g.textContent.replace(/\s+/g, ' ').trim()), shared: /Shared with me/.test((document.querySelector('#bdViewMenu [data-vshared]') || {}).textContent || ''), seg: [...document.querySelectorAll('#bdViewMenu [data-pv]')].map((b) => b.textContent + (b.getAttribute('aria-pressed') === 'true' ? '*' : '')).join(), note: /Timeline needs a wider screen/.test(document.querySelector('#ibBody').textContent), small: [...document.querySelectorAll('#bdViewMenu [data-pv], #ibBody .bd-lrow')].filter((b) => b.getBoundingClientRect().height < 44).length }));
|
|
452
|
+
ok(`B13 at 390 px (${theme}) the phone opens on the List, grouped your turn first; its view button holds List, By stage, Track and Timeline, then Shared with me (BdPhone, TsCPhone, BhA)`, pl.groups.join('|') === 'At risk or late4|On track3' && pl.seg === 'List*,By stage,Track,Timeline' && pl.shared && !pl.note && pl.small === 0, JSON.stringify(pl));
|
|
453
|
+
await q.click('#bdViewMenu [data-pv="stages"]'); await sleep(150); const s2 = await q.evaluate(() => document.documentElement.scrollWidth <= innerWidth + 1 && document.querySelectorAll('#ibBody .bd-scols.ph .bd-scol').length + (((document.querySelector('#ibBody .bd-sempty') || {}).textContent || '').replace(/^Nothing on screen in /, '').match(/[A-Z][a-z]+/g) || []).length === 8);
|
|
454
|
+
ok(`B13 at 390 px (${theme}) the view button switches to By stage, every step a column down the page (the empty steps named on one line), with no sideways scroll`, s2);
|
|
455
|
+
await pview(q, 'track'); await q.locator('#ibBody .bt-l[data-row="board:sso-partners"] .bt-nm').click();
|
|
443
456
|
/* re-pointed (viewer-shell-a, XvABoard; batch 14 item 5): on a phone the Viewer covers the screen; ⋯ Move to a stage opens the stages as a sheet */
|
|
444
457
|
const g = await until(() => q.evaluate(() => { const v = document.querySelector('#czViewer'); if (!v || v.hidden) return null; const r = v.getBoundingClientRect(); return { l: Math.round(r.left), w: Math.round(r.width), h: Math.round(r.height), vw: innerWidth, vh: innerHeight }; }));
|
|
445
458
|
ok(`B13 at 390 px (${theme}) the initiative covers the screen`, !!g && g.l === 0 && g.w === g.vw && g.h === g.vh, JSON.stringify(g));
|
|
@@ -461,6 +474,13 @@ const IVREAD = () => {
|
|
|
461
474
|
ok('T a skipped step is a ring that says why: the move\'s reason, or the lane\'s ladder', pr.skip.join() === 'Discover skipped: Moved from Triage to Plan: the PRD came with the ask.' && ds.skip.length === 3 && /The chore lane has no Triage step/.test(ds.skip[0]), JSON.stringify([pr.skip, ds.skip]));
|
|
462
475
|
ok('T the Next cell counts the parts from the records and names the next one', ub.prog === 'PRD 2/6' && ub.line === 'Add the evidence' && pr.prog === '1/4 parts' && pr.line === 'Set the timeline', JSON.stringify([ub, pr]));
|
|
463
476
|
ok('T what waits on you comes first, in blue', rf.st === 'Your verdict' && /s-you/.test(rf.stc) && rf.you && rf.line === 'Give your verdict', JSON.stringify(rf));
|
|
477
|
+
// UI grill U2 took the Board's bell off: what it listed is the pill's "Waits on you" row, which shows only those initiatives
|
|
478
|
+
await needOpen(q);
|
|
479
|
+
const wy = await q.evaluate(() => { const b = document.querySelector('#bdNeedMenu [data-f="you"]'); return b ? b.textContent.trim() : null; });
|
|
480
|
+
if (wy) { await q.click('#bdNeedMenu [data-f="you"]'); await sleep(150); }
|
|
481
|
+
const wyRows = await q.evaluate(() => [...document.querySelectorAll('#ibBody .bt-l')].map((r) => r.dataset.row).join());
|
|
482
|
+
ok('T the pill names what waits on you, and a press shows only those (the bell\'s rows, UI grill U2)', wy === 'Waits on you1' && wyRows === 'board:refund-reason-codes', JSON.stringify([wy, wyRows]));
|
|
483
|
+
await needOpen(q); await q.click('#bdNeedMenu [data-f="you"]'); await sleep(150);
|
|
464
484
|
await q.click('.bt-l[data-row="board:self-serve-v2"] .bt-nm');
|
|
465
485
|
/* re-pointed (the one view): the same records, in the stage card's day clock, the ladder, Linked (a fold of the view) and the Board's own rows */
|
|
466
486
|
const pk = await until(() => q.evaluate(() => { const v = document.querySelector('#czViewer'); if (!v || v.hidden || !v.querySelector('[data-czs-id="drafted"]') || !v.querySelector('.iv')) return null; const sec = (id) => { const x = v.querySelector(`[data-czs-id="${id}"]`); return x ? { n: (x.querySelector('.czs-n') || {}).textContent || '', body: (x.querySelector('.czs-body') || {}).textContent.replace(/\s+/g, ' ').trim() } : null; }; return { meta: v.querySelector('.iv-meta').textContent, where: (v.querySelector('.iv-scm') || {}).textContent, stage: (v.querySelector('.iv-tel-t .iv-shn b') || {}).textContent, stt: !!v.querySelector('.mi-svg .mi-pt:is(.nw, .late, .hold)'), drafted: sec('drafted'), wt: sec('drift') }; }));
|
|
@@ -486,17 +506,15 @@ const IVREAD = () => {
|
|
|
486
506
|
const y1 = await q.evaluate(() => ({ rows: document.querySelectorAll('#ibBody .tg-q[data-span="year"] .tg-n.ini2').length, themes: document.querySelectorAll('#ibBody .tg-tn, #ibBody .tg-sw').length, group: !!document.querySelector('#chGroup') }));
|
|
487
507
|
ok('T with the trail read, Year still draws one row per initiative: no theme groups and no Group control', y1.rows > 0 && !y1.themes && !y1.group, JSON.stringify(y1));
|
|
488
508
|
// TsSprintFilter: the sprint filter (the "Sprint N only" chip and Filter's Sprint group) shows on the Sprint span only; the stage track keeps its chip
|
|
489
|
-
const sfY = await q.evaluate(() => !document.querySelector('#
|
|
490
|
-
await q.click('#bdFilter'); const fgY = await q.evaluate(() => [...document.querySelectorAll('#bdPop .bd-mlbl')].map((e) => e.textContent)); await q.keyboard.press('Escape');
|
|
509
|
+
await q.click('#bdFilter'); const fgY = await q.evaluate(() => [...document.querySelectorAll('#bdPop .bd-mlbl')].map((e) => e.textContent)), sfY = await q.evaluate(() => !document.querySelector('#bdPop [data-fsonly]')); await q.keyboard.press('Escape');
|
|
491
510
|
await spanTo(q, 'sprint');
|
|
492
|
-
const sfS = await q.evaluate(() => !!document.querySelector('#
|
|
493
|
-
await q.click('#bdFilter'); const fgS = await q.evaluate(() => [...document.querySelectorAll('#bdPop .bd-mlbl')].map((e) => e.textContent)); await q.keyboard.press('Escape');
|
|
511
|
+
await q.click('#bdFilter'); const fgS = await q.evaluate(() => [...document.querySelectorAll('#bdPop .bd-mlbl')].map((e) => e.textContent)), sfS = await q.evaluate(() => !!document.querySelector('#bdPop [data-fsonly]')); await q.keyboard.press('Escape');
|
|
494
512
|
ok('T the sprint filter shows on the Sprint span only: no chip and no Sprint group in Filter on Year, both on Sprint', sfY && !fgY.includes('Sprint') && sfS && fgS.includes('Sprint'), JSON.stringify({ sfY, fgY, sfS, fgS }));
|
|
495
513
|
await spanTo(q, 'quarter');
|
|
496
514
|
ok('T the Quarter names a release sign-off in its bar\'s hover (no blue ◆, batch 13 item 4) and a dependency on the bar', await q.evaluate(() => [...document.querySelectorAll('#ibBody .tg-bar')].some((b) => /v2\.4 sign-off/.test(b.getAttribute('title') || '')) && !document.querySelector('#ibBody .tg-msd') && /after SSO for partners/.test(document.querySelector('#ibBody').textContent)));
|
|
497
515
|
await view(q, 'track');
|
|
498
516
|
/* the row actions write through the console's routes, each with Undo; re-pointed (batch 14 item 5): they are items of the initiative's ⋯ */
|
|
499
|
-
await q
|
|
517
|
+
await sprintOnly(q);
|
|
500
518
|
const n3 = R.posts.length;
|
|
501
519
|
await q.click('.bt-l[data-row="board:partner-rate-limits"] .bt-nm'); await until(() => vwOn(q, 'Initiative')); await spLife(q, 'hold');
|
|
502
520
|
ok('T Put on hold writes one on-hold lifecycle line, with the check-back day', await until(() => R.posts.some((x) => x.path === '/api/lifecycle' && x.body.initiative_id === 'partner-rate-limits' && x.body.state === 'on-hold' && /^\d{4}-\d{2}-\d{2}$/.test(x.body.back || ''))), JSON.stringify(R.posts));
|
|
@@ -526,10 +544,12 @@ const IVREAD = () => {
|
|
|
526
544
|
await q.click('#bdPop [data-whynot="Out of scope"]'); await q.fill('#bdPop input[name="why"]', 'Finance owns this report'); await q.click('#bdPop [data-askact="decline-go"]');
|
|
527
545
|
ok('T declining an ask takes a reason, and keeps it', await until(() => R.posts.some((x) => x.path === '/api/boards/asks/decline' && x.body.ask === 'a1' && x.body.why === 'Out of scope: Finance owns this report')), JSON.stringify(R.posts.slice(-2)));
|
|
528
546
|
/* Find, Filter, Metrics, cancelled and archived */
|
|
529
|
-
|
|
530
|
-
|
|
547
|
+
// UI grill U2 (one search): Find opens Search scoped to this Board; its own groups (initiatives, Jira work-items) come first
|
|
548
|
+
await q.click('#bdFind'); await q.waitForSelector('#evSearch:not([hidden])'); await q.fill('#evQ', 'sso');
|
|
549
|
+
const fh = await until(() => q.evaluate(() => { const L = [...document.querySelectorAll('#evRes .ev-mlbl')].map((x) => x.textContent); return L[0] === 'On this Board · Initiatives' && L[1] === 'On this Board · Work-items in Jira' ? { L, first: (document.querySelector('#evRes [data-ev-i="0"] b') || {}).textContent, ph: document.querySelector('#evQ').placeholder, tk: [...document.querySelectorAll('#evRes [data-ev-i]')].filter((b) => /^SSO-\d+/.test(b.textContent)).length } : null; }));
|
|
550
|
+
ok('T Find opens Search scoped to this Board: the initiatives and the Jira work-items that match come first (UI grill U2)', !!fh && fh.first === 'SSO for partners' && fh.tk >= 2 && /^Search this Board, then everywhere$/.test(fh.ph), JSON.stringify(fh));
|
|
531
551
|
await q.keyboard.press('Enter');
|
|
532
|
-
ok('T Enter opens the first hit in the Viewer', await until(async () => (await vwTitle(q)) === 'SSO for partners' && await q.evaluate(() => document.querySelector('#
|
|
552
|
+
ok('T Enter opens the first hit in the Viewer', await until(async () => (await vwTitle(q)) === 'SSO for partners' && await q.evaluate(() => document.querySelector('#evSearch').hidden)));
|
|
533
553
|
await q.keyboard.press('Escape'); await vwShut(q);
|
|
534
554
|
await q.click('#bdFilter'); await q.click('#bdPop [data-flt="owners"][data-v="Lee"]');
|
|
535
555
|
ok('T Filter narrows the rows by owner, and the Showing bar says so', await until(() => q.evaluate(() => [...document.querySelectorAll('#ibBody .bt-l')].map((r) => r.dataset.row).sort().join() === 'board:partner-rate-limits,board:sso-partners' && /ShowingOwner: Lee.*Clear all/.test(document.querySelector('#bdShowing').textContent))));
|
|
@@ -569,7 +589,7 @@ const IVREAD = () => {
|
|
|
569
589
|
const ctx = await openMission(await browser.newContext({ viewport: { width: 1280, height: 900 } })), pg = await ctx.newPage(), errs = [];
|
|
570
590
|
pg.on('pageerror', (e) => errs.push(String(e)));
|
|
571
591
|
await pg.goto(BASE + '/premium-board.html');
|
|
572
|
-
ok('E5 the real page draws this repository\'s board and its count agrees with the route', await until(() => pg.evaluate((n) => document.querySelectorAll('#ibBody .ini2').length > 0 && document.querySelector('#
|
|
592
|
+
ok('E5 the real page draws this repository\'s board and its count agrees with the route', await until(() => pg.evaluate((n) => document.querySelectorAll('#ibBody .ini2').length > 0 && (document.querySelector('#ibBody .bt-nmh span') || {}).textContent === n, String(m.initiatives.open || m.initiatives.list.rows.length)), 30000));
|
|
573
593
|
ok('E6 the real page has no script error', errs.length === 0, errs.join(' | '));
|
|
574
594
|
await ctx.close();
|
|
575
595
|
}
|
|
@@ -582,37 +602,37 @@ const IVREAD = () => {
|
|
|
582
602
|
const st = () => q.evaluate(async () => {
|
|
583
603
|
const P = await import('/pm/bd-pane.js'), m = document.querySelector('#stage'), cs = (e) => (e ? getComputedStyle(e) : null);
|
|
584
604
|
const sel = [...document.querySelectorAll('#ibBody .sel')].filter((x) => x.offsetParent), s0 = sel[0], c = cs(s0);
|
|
585
|
-
return { view: document.querySelector('#ibBody').dataset.view, desk: m.dataset.bdDesk, fit: P.fit(),
|
|
586
|
-
tabs:
|
|
605
|
+
return { view: document.querySelector('#ibBody').dataset.view, desk: m.dataset.bdDesk, fit: P.fit(),
|
|
606
|
+
tabs: document.querySelector('#ibTabs') ? 'present' : 'gone', vbtn: cs(document.querySelector('#bdVieww')).display, pad: cs(m).paddingLeft,
|
|
587
607
|
vw: !!(window.czViewer && window.czViewer.isOpen()), sel: sel.map((x) => x.className.split(' ')[0]), selKey: s0 ? s0.dataset.key || s0.dataset.row : null,
|
|
588
608
|
blue: c ? /inset/.test(c.boxShadow) && c.backgroundColor !== 'rgba(0, 0, 0, 0)' : false, stored: localStorage.getItem('pmos.board.view') };
|
|
589
609
|
});
|
|
590
610
|
const narrowTo = (on, w) => q.evaluate(([o, px]) => { const m = document.querySelector('#stage'); m.style.maxWidth = px ? px + 'px' : ''; m.classList.toggle('cz-pn-narrow', o); }, [on, w]);
|
|
591
611
|
await view(q, 'track');
|
|
592
612
|
const d0 = await st();
|
|
593
|
-
ok('PN1 a wide page panel keeps the desktop view: the stage track, the
|
|
613
|
+
ok('PN1 a wide page panel keeps the desktop view: the stage track, the View chip (UI grill U2), and fit() is about 880 for it', d0.view === 'track' && d0.desk === 'track' && d0.fit === 880 && d0.vbtn !== 'none' && d0.tabs === 'gone', JSON.stringify(d0));
|
|
594
614
|
await view(q, 'list'); const dl = await st(); await view(q, 'track');
|
|
595
615
|
ok('PN1 fit() follows the desktop view: the List needs 360', dl.fit === 360, JSON.stringify(dl));
|
|
596
616
|
await narrowTo(true, 700); await sleep(300);
|
|
597
617
|
const n1 = await st();
|
|
598
|
-
ok('PN2 a narrow page panel on a wide window draws the narrow form: the List, with the phone\'s view switch and its toolbar', n1.view === 'list' && n1.
|
|
618
|
+
ok('PN2 a narrow page panel on a wide window draws the narrow form: the List, with the phone\'s view switch and its toolbar', n1.view === 'list' && n1.tabs === 'gone' && n1.vbtn !== 'none', JSON.stringify(n1));
|
|
599
619
|
ok('PN2 fit() still measures the desktop view, so the narrow form does not flip back', n1.desk === 'track' && n1.fit === 880, JSON.stringify(n1));
|
|
600
620
|
await q.click('#ibBody .bd-lrow[data-key="board:usage-billing"]');
|
|
601
621
|
await until(() => vwOn(q, 'Initiative'));
|
|
602
622
|
const n2 = await st();
|
|
603
623
|
ok('PN3 the open row is marked blue in the narrow form (BiB2Half)', n2.vw && n2.sel.join() === 'bd-lrow' && n2.selKey === 'board:usage-billing' && n2.blue, JSON.stringify(n2));
|
|
604
|
-
await q
|
|
624
|
+
await pview(q, 'stages'); await sleep(100);
|
|
605
625
|
const n3 = await st();
|
|
606
626
|
ok('PN3 a view picked in the narrow form keeps the Viewer open and leaves the desktop\'s view alone', n3.view === 'stages' && n3.vw && n3.desk === 'track' && n3.stored === 'track', JSON.stringify(n3));
|
|
607
627
|
ok('PN3 the open card is marked in By stage too', n3.sel.join() === 'bd-bc' && n3.selKey === 'board:usage-billing', JSON.stringify(n3));
|
|
608
628
|
await narrowTo(false); await sleep(300);
|
|
609
629
|
const n4 = await st();
|
|
610
|
-
ok('PN4 a wider panel goes back to the desktop view, the Viewer still open and its row marked blue', n4.view === 'track' &&
|
|
630
|
+
ok('PN4 a wider panel goes back to the desktop view, the Viewer still open and its row marked blue', n4.view === 'track' && n4.vbtn !== 'none' && n4.vw && n4.selKey === 'board:usage-billing' && n4.blue, JSON.stringify(n4));
|
|
611
631
|
// the rows that open beside: the row's name in every view, never the grip, never a By stage card
|
|
612
632
|
const src = await q.evaluate(async () => {
|
|
613
633
|
const P = await import('/pm/bd-pane.js'), out = {};
|
|
614
634
|
for (const v of ['track', 'time', 'list', 'stages']) {
|
|
615
|
-
document.querySelector(`#
|
|
635
|
+
document.querySelector(`#bdViewMenu [data-pv="${v}"]`).click(); await new Promise((r) => setTimeout(r, 150));
|
|
616
636
|
const m = [...document.querySelectorAll(P.SOURCES)];
|
|
617
637
|
out[v] = { n: m.length, names: m.every((e) => e.classList.contains('ini2') && !e.closest('[data-grip], .grip, .bd-grip')), cards: document.querySelectorAll(P.CARDS).length };
|
|
618
638
|
}
|
|
@@ -648,8 +668,8 @@ const IVREAD = () => {
|
|
|
648
668
|
/* B13 the Agreed design's look: Plus Jakarta Sans, the soft panel, the chips and the track's rows */
|
|
649
669
|
for (const th of ['light', 'dark']) {
|
|
650
670
|
const R = await open({ w: 1440, h: 900, theme: th }), q = R.page;
|
|
651
|
-
const s = await q.evaluate(() => { const cs = (sel) => getComputedStyle(document.querySelector(sel)); const main = cs('main.bd-main'), row = document.querySelector('.bt-l').getBoundingClientRect(); return { font: cs('body').fontFamily, rad: main.borderTopLeftRadius, bg: main.backgroundColor, chip: Math.round(document.querySelector('#
|
|
652
|
-
ok(`B13 the look of the Agreed design at 1440 px, ${th}: Plus Jakarta Sans, a 28 px panel, 30 px chips, 54 px rows`, /^"?Plus Jakarta Sans/.test(s.font) && s.rad === '28px' && s.chip === 30 && s.row >= 54 && s.row <= 62 &&
|
|
671
|
+
const s = await q.evaluate(() => { const cs = (sel) => getComputedStyle(document.querySelector(sel)); const main = cs('main.bd-main'), row = document.querySelector('.bt-l').getBoundingClientRect(); return { font: cs('body').fontFamily, rad: main.borderTopLeftRadius, bg: main.backgroundColor, chip: Math.round(document.querySelector('#bdView').getBoundingClientRect().height), row: Math.round(row.height), fab: cs('#czFab').borderTopLeftRadius }; });
|
|
672
|
+
ok(`B13 the look of the Agreed design at 1440 px, ${th}: Plus Jakarta Sans, a 28 px panel, 30 px chips, 54 px rows`, /^"?Plus Jakarta Sans/.test(s.font) && s.rad === '28px' && s.chip === 30 && s.row >= 54 && s.row <= 62 && (th === 'light' ? s.bg === 'rgb(255, 255, 255)' : s.bg !== 'rgb(255, 255, 255)'), JSON.stringify(s));
|
|
653
673
|
await R.ctx.close();
|
|
654
674
|
}
|
|
655
675
|
return finish();
|
|
@@ -84,8 +84,8 @@ const BMR = { ok: true, state: 'ready', model: { tiles: [
|
|
|
84
84
|
/* the Viewer card (pm/cozy-viewer.js): its title, and the feature its "Waiting for design" card names */
|
|
85
85
|
const vw = (pg) => pg.evaluate(() => { const v = document.querySelector('#czViewer'); if (!v || v.hidden) return null; const ph = v.querySelector('[data-cz-placeholder]'); return { title: (v.querySelector('.cz-vw-title') || {}).textContent || '', wait: ph ? ph.dataset.czPlaceholder : null, text: v.querySelector('.cz-vw-body').textContent }; });
|
|
86
86
|
const vwMoreItem = async (pg, label) => { await pg.click('#czViewer [data-cz-vw="more"]'); await sleep(80); await pg.click(`.cz-vw-menu [role="menuitem"]:has(> span:first-child:text-is("${label}"))`); await sleep(80); };
|
|
87
|
-
/* Delivery trends
|
|
88
|
-
const toTrends = async (pg) => {
|
|
87
|
+
/* re-pointed (U3): Delivery trends left ⋯ and the View chip; ?view=trends, the door the monthly metrics routine opens, is its one way in */
|
|
88
|
+
const toTrends = async (pg) => { const u = new URL(pg.url()); u.searchParams.set('view', 'trends'); await pg.goto(u.href); await until(() => pg.evaluate(() => !!document.querySelector('#bmBody [data-tile]')), 20000); };
|
|
89
89
|
const vwClose = async (pg) => { await pg.evaluate(() => window.czViewer && window.czViewer.close()); await until(() => pg.evaluate(() => { const v = document.querySelector('#czViewer'); return !v || v.hidden; })); };
|
|
90
90
|
|
|
91
91
|
const A = await open();
|
|
@@ -120,32 +120,24 @@ const BMR = { ok: true, state: 'ready', model: { tiles: [
|
|
|
120
120
|
await p.keyboard.press('Escape');
|
|
121
121
|
/* re-pointed (premium-uncovered-features, IsMenus): the filter is chips by status, owner and kind */
|
|
122
122
|
ok('B1 the filter is chips by status, owner and kind; the owners are the goals\' owners and the work that moves them', fl.heads === 'Status,Owner,Kind' && fl.status === 'Off track,On track,Hit,No readings' && fl.owners === 'Dara,Lee,Mira' && fl.kinds === 'Goals,Health budgets' && /status, owner or kind/.test(fl.label), JSON.stringify(fl));
|
|
123
|
-
|
|
124
|
-
const
|
|
125
|
-
ok('B1 ⋯ holds Reports and dashboards
|
|
126
|
-
await vwClose(p);
|
|
127
|
-
// re-pointed (batch 16 item 6, GsMore; Fewer menus brief 5): Sources lives in Settings › Connectors, so ⋯ › Sources opens it there
|
|
128
|
-
await p.click('#moreB'); await p.click('#moreMenu [data-more="sources"]'); const so = await until(() => p.evaluate(() => { const st = document.querySelector('#evSettings'); const a = st && !st.hidden && st.querySelector('.ev-st-nav [aria-current="page"]'); return a ? a.dataset.evSec : null; }), 6000);
|
|
129
|
-
ok('B1 Sources opens Settings on Connectors, where the sources live', so === 'connectors', JSON.stringify(so));
|
|
130
|
-
await p.keyboard.press('Escape'); await until(() => p.evaluate(() => { const sc = document.querySelector('#evStScrim'); return !sc || sc.hidden; }), 3000);
|
|
123
|
+
// re-pointed (U3): ⋯ is Reports and dashboards and Export CSV; About moved to the guide, Sources is Settings › Connectors, Metrics and Delivery trends left the menu
|
|
124
|
+
await p.click('#moreB'); const mo = await p.evaluate(() => [...document.querySelectorAll('#moreMenu [data-more]')].map((b) => b.dataset.more + ':' + (b.disabled ? 'off' : 'on')).join()); await p.keyboard.press('Escape');
|
|
125
|
+
ok('B1 ⋯ holds Reports and dashboards and Export CSV only (U3)', mo === 'library:on,export:on', mo);
|
|
131
126
|
{ const R = await open(), q = R.page; await q.route('**/api/insights-records/export*', (r) => r.fulfill({ status: 200, contentType: 'text/csv', headers: { 'Content-Disposition': 'attachment; filename="insights-goals.csv"' }, body: 'id\n' }));
|
|
132
127
|
const [rq] = await Promise.all([q.waitForRequest(/\/api\/insights-records\/export/), (async () => { await q.click('#moreB'); await q.click('#moreMenu [data-more="export"]'); })()]);
|
|
133
128
|
const u = new URL(rq.url());
|
|
134
129
|
ok('B1 Export asks the export route for this workspace\'s goals as CSV', u.searchParams.get('ws') === 'w1' && u.searchParams.get('board') === 'w1', u.search); await R.ctx.close(); }
|
|
135
130
|
await vwClose(p);
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
await p.click('#findX'); await sleep(100);
|
|
142
|
-
ok('B1 Find narrows the goals as you type, and its close shows every goal again', fd === 'krm-up' && (await p.evaluate(() => document.querySelectorAll('#goalTbl [data-goal]').length)) === 5 && await p.evaluate(() => document.querySelector('#findRow').hidden), fd);
|
|
143
|
-
await p.click('#findB'); await p.fill('#findIn', 'activation'); await sleep(100); await p.click('#findRes [data-fo="goal"]');
|
|
131
|
+
// UI grill U2 (one search): Find opens Search scoped to Intelligence; its goals, reports and dashboards come first, in groups
|
|
132
|
+
await p.click('#findB'); await p.waitForSelector('#evSearch:not([hidden])'); await p.fill('#evQ', 'partner');
|
|
133
|
+
const fr = await until(() => p.evaluate(() => { const L = [...document.querySelectorAll('#evRes .ev-mlbl')].map((h) => h.textContent); return L.length && L[0] === 'In Intelligence · Goals' ? { heads: L.filter((x) => /^In Intelligence/.test(x)).join(), goals: [...document.querySelectorAll('#evRes [data-ev-i]')].filter((b) => /Goal$/.test(b.textContent)).length, ph: document.querySelector('#evQ').placeholder, rows: document.querySelectorAll('#goalTbl [data-goal]').length } : null; }));
|
|
134
|
+
ok('B1 Find opens Search scoped to Intelligence: its goals, reports and dashboards that hold the words come first; the table stays whole', !!fr && fr.heads === 'In Intelligence · Goals,In Intelligence · Reports,In Intelligence · Dashboards' && fr.goals === 3 && fr.ph === 'Search Intelligence, then everywhere' && fr.rows === 4, JSON.stringify(fr));
|
|
135
|
+
await p.fill('#evQ', 'activation'); await sleep(400); await p.keyboard.press('Enter');
|
|
144
136
|
const fo = await until(() => vw(p));
|
|
145
|
-
ok('B1 a goal found opens its detail, and
|
|
137
|
+
ok('B1 a goal found opens its detail, and Search closes', fo && fo.title === 'Partner activation' && await p.evaluate(() => document.querySelector('#evSearch').hidden), JSON.stringify(fo));
|
|
146
138
|
await vwClose(p);
|
|
147
139
|
await p.click('#viewChip'); const vm = await p.evaluate(() => ({ head: document.querySelector('#viewMenu .ins-mh').textContent, items: [...document.querySelectorAll('#viewMenu [data-view]')].map((b) => b.dataset.view + ((b.querySelector('.k') || {}).textContent ? ':' + b.querySelector('.k').textContent : '')).join(), nd: !!document.querySelector('#viewMenu [data-newdash]') })); await p.keyboard.press('Escape');
|
|
148
|
-
ok('B1 the Dashboard menu lists every view with the default one marked, then Delivery trends
|
|
140
|
+
ok('B1 the Dashboard menu lists every view with the default one marked, then New dashboard; Delivery trends is not in it (IsMenus, U3)', vm.head === 'Dashboard' && vm.items === 'all:default,pd-1,p:Growth,p:Reliability' && vm.nd, JSON.stringify(vm));
|
|
149
141
|
await p.click('#prodPick'); const pr = await p.evaluate(() => ({ chip: document.querySelector('#prodPick').getAttribute('aria-label'), items: [...document.querySelectorAll('#ppMenu [data-pp] b')].map((b) => b.textContent).join(), all: !!document.querySelector('#ppMenu [data-pp="*"]'), add: !!document.querySelector('#ppMenu [data-pp-add]') })); await p.keyboard.press('Escape');
|
|
150
142
|
ok('B1 the product chip is the one picker Home and Board share; with one product it lists that one and Add a product, no All', pr.chip === 'Products: pmos' && pr.items === 'pmos' && !pr.all && pr.add, JSON.stringify(pr));
|
|
151
143
|
}
|
|
@@ -164,8 +156,9 @@ const BMR = { ok: true, state: 'ready', model: { tiles: [
|
|
|
164
156
|
ok('G1 a goal with one reading draws no line and no pace: it shows the one value and No trend yet (IsMenus)', /1 reading/.test(nps) && /No trend yet/.test(nps) && /needs a second reading/.test(nps) && /No initiative anchors to it/.test(nps), nps);
|
|
165
157
|
const up = await txt('#goalTbl [data-goal="krm-up"] .pace');
|
|
166
158
|
ok('G1 a percentage pace never passes 100%, and a goal ahead of its time says so', /^≈100% by Dec 31/.test(up) && /ahead: 67% done, 39% of time gone/.test(up), up);
|
|
167
|
-
|
|
168
|
-
|
|
159
|
+
// re-pointed (U3, UI grill item 4): a goal with no reading is not a row; it waits in "Waiting on a source" under its source, with no number
|
|
160
|
+
const ch = await p.evaluate(() => ({ row: !!document.querySelector('#goalTbl [data-goal="krm-churn"]'), wait: ((document.querySelector('#waitList [data-goal="krm-churn"]') || {}).textContent || ''), src: ((document.querySelector('#waitList [data-goal="krm-churn"]') || { closest: () => null }).closest('.ins-wrow') || { textContent: '' }).textContent }));
|
|
161
|
+
ok('G1 a goal with no reading is not a row; it waits in Waiting on a source, with no number', !ch.row && /churn/i.test(ch.wait) && /No reading yet|type its readings/.test(ch.src) && !/\d+%/.test(ch.src), JSON.stringify(ch));
|
|
169
162
|
}
|
|
170
163
|
/* G1 health budgets (D59): each budget of the registry, read as its share of the board's open initiatives against its cap */
|
|
171
164
|
{
|
|
@@ -238,7 +231,7 @@ const BMR = { ok: true, state: 'ready', model: { tiles: [
|
|
|
238
231
|
const f = await p.evaluate(() => ({ rows: [...document.querySelectorAll('#goalTbl [data-goal]')].map((r) => r.dataset.goal).join(), dot: !document.querySelector('#filtDot').hidden }));
|
|
239
232
|
ok('G1 filtering by owner keeps the goals that owner\'s work moves, and the filter shows it is on', f.rows === 'krm-act,krm-up' && f.dot, JSON.stringify(f));
|
|
240
233
|
await p.click('#filtB'); await p.click('#filtMenu [data-fclr]'); await sleep(100);
|
|
241
|
-
ok('G1 Clear the filter shows every goal again', (await p.evaluate(() => document.querySelectorAll('#goalTbl [data-goal]').length)) ===
|
|
234
|
+
ok('G1 Clear the filter shows every goal again', (await p.evaluate(() => document.querySelectorAll('#goalTbl [data-goal]').length)) === 4 && await p.evaluate(() => document.querySelector('#filtDot').hidden));
|
|
242
235
|
}
|
|
243
236
|
/* G1 Delivery trends: six compact tiles from the Board's measures, honest where a measure is not counted */
|
|
244
237
|
{
|
|
@@ -264,7 +257,7 @@ const BMR = { ok: true, state: 'ready', model: { tiles: [
|
|
|
264
257
|
ok('G1 No target clears the number', sent[4][1].key === 'idle' && sent[4][1].target === null && sent[5][1].dir === 'none', JSON.stringify(sent.slice(4)));
|
|
265
258
|
await q.click('#bmBody [data-tile="scope"]'); await q.click('#czViewer [data-tgset]'); await until(() => q.evaluate(() => !!document.querySelector('#tgPop'))); await q.keyboard.press('Escape');
|
|
266
259
|
ok('G1 Escape closes the target and gives the tile its focus back', await q.evaluate(() => !document.querySelector('#tgPop') && document.activeElement && document.activeElement.dataset.tile === 'scope'));
|
|
267
|
-
await
|
|
260
|
+
await sleep(150); // still in Delivery trends (toTrends above); the View chip no longer lists it (U3)
|
|
268
261
|
const tv = await q.evaluate(() => { const T = [...document.querySelectorAll('#bmBody [data-tile]')].map((t) => t.getBoundingClientRect()); return { name: document.querySelector('#viewName').textContent, h: document.querySelector('.ins-trends.big h2').textContent, rows: [...document.querySelectorAll('#goalTbl [data-goal]')].filter((r) => !r.closest('.ins-mvd')).length, cols: T.filter((t) => Math.abs(t.top - T[0].top) < 2).length, tg: [...document.querySelectorAll('#bmBody .tg')].map((x) => x.textContent).join('|') }; });
|
|
269
262
|
ok('G1 Delivery trends is a view of its own (only Goals that moved lists goals, batch 22 item 4): the six tiles three to a row, each with its target line', tv.name === 'Delivery trends' && tv.h === 'Delivery trends' && tv.rows === 0 && tv.cols === 3 && tv.tg.split('|').length === 6, JSON.stringify(tv));
|
|
270
263
|
await R.ctx.close();
|
|
@@ -390,8 +383,8 @@ const BMR = { ok: true, state: 'ready', model: { tiles: [
|
|
|
390
383
|
const R = await open(), q = R.page;
|
|
391
384
|
await q.click('#moreB'); await q.click('#moreMenu [data-more=\"library\"]');
|
|
392
385
|
/* re-pointed (premium-uncovered-features, IsLibrary): the bar hands New report to Home, Found in your work is cards, the reports are Report · Next · Status */
|
|
393
|
-
const lb = await q.evaluate(() => ({ side: !document.querySelector('#libSide').hidden, nr: document.querySelector('#newRep')
|
|
394
|
-
ok('L1 Reports and dashboards opens as a side panel from
|
|
386
|
+
const lb = await q.evaluate(() => ({ side: !document.querySelector('#libSide').hidden, nr: !!document.querySelector('#newRep'), found: document.querySelector('#listRows .ins-fdh b').textContent, fcards: [...document.querySelectorAll('#listRows .ins-fcard')].map((c) => c.dataset.f + ':' + [...c.querySelectorAll('.ins-btn[data-fx]')].map((b) => b.textContent).join('/')).join(), heads: [...document.querySelectorAll('#repAsks .ins-rlh span')].map((s) => s.textContent).join('|'), rows: [...document.querySelectorAll('#repNeeds .ins-rl:not(.ins-rlh), #listRows .ins-rl:not(.ins-rlh)')].map((r) => r.querySelector('.nm b').textContent + '|' + r.querySelector('.nx').textContent + '|' + r.querySelector('.st').textContent).join(' / '), needs: [...document.querySelectorAll('#repNeeds .ins-nrow .nm b')].map((b) => b.textContent).join('|'), setups: document.querySelectorAll('#repNeeds [data-setup], #listRows [data-setup]').length, asks: new Set([...document.querySelectorAll('#repNeeds [data-ask], #listRows [data-ask]')].map((e) => e.dataset.ask)).size, cards: [...document.querySelectorAll('#listRows .ins-dcard')].map((c) => c.dataset.d + (c.querySelector('.ins-pinned') ? '*' : '')).join(), cap: document.querySelector('#repCap').textContent, old: !!document.querySelector('#listSeg, #sugB') }));
|
|
387
|
+
ok('L1 Reports and dashboards opens as a side panel from ⋯ with no + (U3: the bar\'s report icon is the one starter), and Found in your work holds the finding as a card', lb.side && !lb.nr && lb.found === 'Found in your work · 1' && lb.fcards === 'f-1:Set it up/Not a report' && lb.cap === '9' && !lb.old, JSON.stringify(lb));
|
|
395
388
|
ok('L1 the reports table is Report, Next and Status (what needs you first, redesign A); a draft says "Draft ready for" its date; a request says Working; a ready proposal waits in Needs you (redesign R)', lb.heads === 'Report|Next|Status' && /Draft ready for Oct 14/.test(lb.rows) && /Partner update\|First draft [^|]+\|Runs every other monday/i.test(lb.rows) && /(^|\|)Churn for finance(\||$)/.test(lb.needs) && lb.setups === 1 && lb.asks === 2, JSON.stringify([lb.rows, lb.needs]));
|
|
396
389
|
ok('L1 dashboards are cards; only the pinned one carries the pin', lb.cards === 'all*,pd-1,p:Growth,p:Reliability', lb.cards);
|
|
397
390
|
const rs = []; await q.route('**/api/report-setups/*', (r) => { rs.push([new URL(r.request().url()).pathname.replace('/api/report-setups/', ''), JSON.parse(r.request().postData() || '{}')]); r.fulfill({ contentType: 'application/json', body: '{"ok":true,"drafted":{"slot":"2026-10-23","path":"planning/reports/x/2026-10-23.md"}}' }); });
|
|
@@ -419,7 +412,7 @@ const BMR = { ok: true, state: 'ready', model: { tiles: [
|
|
|
419
412
|
await vwClose(q);
|
|
420
413
|
ok('L2 every Library press went to a report-setups route', R.posts.every((x) => /^POST \/api\/report-setups\/(setup|pause|change)$/.test(x)), R.posts.join());
|
|
421
414
|
await q.click('#listRows [data-d="p:Reliability"]'); await sleep(150);
|
|
422
|
-
ok('L3 a dashboard card closes the panel and opens the key results on that view', (await txt('#viewName', q)) === 'Reliability' && (await q.evaluate(() => document.querySelector('#libSide').hidden)) && (await q.evaluate(() => [...document.querySelectorAll('#goalTbl [data-goal]')].map((r) => r.dataset.goal).join())) === 'krm-up
|
|
415
|
+
ok('L3 a dashboard card closes the panel and opens the key results on that view', (await txt('#viewName', q)) === 'Reliability' && (await q.evaluate(() => document.querySelector('#libSide').hidden)) && (await q.evaluate(() => [...document.querySelectorAll('#goalTbl [data-goal]')].map((r) => r.dataset.goal).join())) === 'krm-up' && (await q.evaluate(() => !!document.querySelector('#waitList [data-goal="krm-churn"]')))); // re-pointed (U3): churn has no reading, so it waits in the list
|
|
423
416
|
await q.click('#moreB'); await q.click('#moreMenu [data-more=\"library\"]'); await q.locator('#repBody [data-rpt]').first().click(); // a report file with no setup opens straight in the reader
|
|
424
417
|
ok('L4 a report opens in the page\'s reader, not the console (premium-report-read R1; re-pointed by premium-agreed-design: the reader is the report panel in the Viewer card)', await until(() => q.evaluate(() => !!document.querySelector('#czViewer:not([hidden]) .vz-rp0')), 5000) && /premium-intelligence\.html/.test(q.url()), q.url());
|
|
425
418
|
ok('L4 a draft report has Issue it in the reader, so nothing sends you to the console to issue it', await until(() => q.evaluate(() => !!document.querySelector('#czViewer .vz-rp0 .rp-sum [data-r="issue"]')), 8000) && await q.evaluate(() => !document.querySelector('#czViewer a[href*="console.html"]')));
|
|
@@ -486,7 +479,7 @@ const BMR = { ok: true, state: 'ready', model: { tiles: [
|
|
|
486
479
|
const hit = (b) => Math.max(b.getBoundingClientRect().height, parseFloat(getComputedStyle(b, '::after').height) || 0);
|
|
487
480
|
const small = [...document.querySelectorAll('#insBar button, #askWhy, #goalCards .ins-card, #czFab')].filter((b) => vis(b) && hit(b) < 44).map((b) => (b.id || b.className) + ':' + Math.round(hit(b)));
|
|
488
481
|
return { over: document.documentElement.scrollWidth > innerWidth + 1, small, table: getComputedStyle(document.querySelector('#goalTbl')).display, cards: [...document.querySelectorAll('#goalCards .ins-card')].map((c) => c.dataset.goal + ':' + ((c.querySelector('.ins-ch .cz-pill') || {}).textContent || '')).join() }; });
|
|
489
|
-
ok(`I11 at 390 px (${theme}) the goals are cards with their status, the table is hidden, there is no sideways scroll and every control is 44 px`, !m.over && m.small.length === 0 && m.table === 'none' && m.cards === 'krm-act:Behind,krm-up:Ahead,krm-ttfc:Behind,krm-nps:Behind
|
|
482
|
+
ok(`I11 at 390 px (${theme}) the goals are cards with their status, the table is hidden, there is no sideways scroll and every control is 44 px`, !m.over && m.small.length === 0 && m.table === 'none' && m.cards === 'krm-act:Behind,krm-up:Ahead,krm-ttfc:Behind,krm-nps:Behind', JSON.stringify(m)); // re-pointed (U3): krm-churn has no reading, so it is in the waiting list, not a card
|
|
490
483
|
await R.ctx.close();
|
|
491
484
|
}
|
|
492
485
|
|
|
@@ -500,7 +493,7 @@ const BMR = { ok: true, state: 'ready', model: { tiles: [
|
|
|
500
493
|
const ctx = await browser.newContext({ viewport: { width: 1280, height: 900 } }), pg = await ctx.newPage(), errs = [];
|
|
501
494
|
pg.on('pageerror', (e) => errs.push(String(e)));
|
|
502
495
|
await pg.goto(BASE + '/premium-insights.html');
|
|
503
|
-
ok('E4 the real page lists the key results of this repository\'s OKR file with no reading, or says there is no goal, and has no script error (redesign A)', await until(() => pg.evaluate(() => (/^I read your OKR file/.test(document.querySelector('#brief').textContent) && !!document.querySelector('#goalTbl [data-kr]')) || (/has no goal yet/.test(document.querySelector('#brief').textContent) && /No key result is recorded/.test(document.querySelector('#goalTbl').textContent))), 20000) && errs.length === 0, errs.join(' | '));
|
|
496
|
+
ok('E4 the real page lists the key results of this repository\'s OKR file with no reading, or says there is no goal, and has no script error (redesign A)', await until(() => pg.evaluate(() => (/^I read your OKR file/.test(document.querySelector('#brief').textContent) && !!document.querySelector('#goalTbl [data-kr], #waitList [data-kr]')) || (/has no goal yet/.test(document.querySelector('#brief').textContent) && /No key result is recorded/.test(document.querySelector('#goalTbl').textContent))), 20000) && errs.length === 0, errs.join(' | '));
|
|
504
497
|
await ctx.close();
|
|
505
498
|
}
|
|
506
499
|
{
|
|
@@ -540,7 +533,7 @@ const BMR = { ok: true, state: 'ready', model: { tiles: [
|
|
|
540
533
|
const krFile = path.join(dir, 'planning', 'records', 'kr-metrics.jsonl'), recs = () => fs.readFileSync(krFile, 'utf8').trim().split('\n').map((x) => JSON.parse(x));
|
|
541
534
|
const landed = await until(() => /Weekly partners/.test(fs.readFileSync(krFile, 'utf8')), 8000);
|
|
542
535
|
const rec = landed ? recs().find((x) => x.fields && x.fields.metric === 'Weekly partners') : null;
|
|
543
|
-
ok('E10 New goal on the real page adds a KR metric record with its type, direction, numbers, date, period, objective, owner and source, and the page draws it', !!rec && rec.fields.type === 'Count' && rec.fields.direction === 'up' && rec.fields.baseline === 5 && rec.fields.target === 9 && rec.fields.pillar === 'Growth' && rec.fields.owner === 'Lee' && rec.fields.source === 'file' && rec.fields.period.kind === 'Quarter' && /^\d{4}-\d{2}-\d{2}$/.test(rec.fields.by) && await until(() => pg.evaluate(() => [...document.querySelectorAll('#goalTbl .ins-row b')].some((b) => b.textContent === 'Weekly partners')), 8000), JSON.stringify(rec));
|
|
536
|
+
ok('E10 New goal on the real page adds a KR metric record with its type, direction, numbers, date, period, objective, owner and source, and the page draws it', !!rec && rec.fields.type === 'Count' && rec.fields.direction === 'up' && rec.fields.baseline === 5 && rec.fields.target === 9 && rec.fields.pillar === 'Growth' && rec.fields.owner === 'Lee' && rec.fields.source === 'file' && rec.fields.period.kind === 'Quarter' && /^\d{4}-\d{2}-\d{2}$/.test(rec.fields.by) && await until(() => pg.evaluate(() => [...document.querySelectorAll('#goalTbl .ins-row b, #waitList .ins-wkr')].some((b) => b.textContent.trim() === 'Weekly partners')), 8000), JSON.stringify(rec)); // U3: with no reading yet it waits in the list
|
|
544
537
|
const post = (route, b, h = H) => fetch(base2 + '/api/insights-records/' + route, { method: 'POST', headers: h, body: JSON.stringify(Object.assign({ ws: m.board.ws, board: m.board.id }, b)) }).then(async (x) => ({ status: x.status, body: await x.json() }));
|
|
545
538
|
const bad1 = await post('goal', { name: 'Wrong way', type: 'Count', direction: 'Up', baseline: 9, target: 5, due: '2026-12-31' });
|
|
546
539
|
const done = await post('goal', { name: 'SOC 2 report', type: 'Done or not', due: '2026-12-15', steps: ['Scope', 'Audit'] });
|
|
@@ -613,7 +606,7 @@ const BMR = { ok: true, state: 'ready', model: { tiles: [
|
|
|
613
606
|
if (!phone) {
|
|
614
607
|
await toTrends(R.page);
|
|
615
608
|
const t = await R.page.evaluate(() => { const tiles = [...document.querySelectorAll('#bmBody [data-tile]')].map((x) => x.getBoundingClientRect()); return { n: tiles.length, tileH: tiles.length ? Math.round(tiles[0].height) : 0, over: document.documentElement.scrollWidth > innerWidth }; });
|
|
616
|
-
ok('I11 at 1440 px
|
|
609
|
+
ok('I11 at 1440 px ?view=trends opens its own view with the six tiles, no sideways scroll', t.n === 6 && t.tileH > 0 && !t.over, JSON.stringify(t));
|
|
617
610
|
}
|
|
618
611
|
await R.ctx.close();
|
|
619
612
|
}
|
|
@@ -67,8 +67,8 @@ const ready = (model) => ({ status: 200, body: { ok: true, state: 'ready', model
|
|
|
67
67
|
await q.route('**/api/board-metric-targets/save', (r) => { saves.push(JSON.parse(r.request().postData() || '{}')); return r.fulfill({ contentType: 'application/json', body: JSON.stringify({ ok: true, targets: {} }) }); });
|
|
68
68
|
await q.route('**/api/briefing-premium/**', (r) => r.fulfill({ contentType: 'application/json', body: '{"ok":true,"turns":[],"working":false}' }));
|
|
69
69
|
await q.goto(BASE + '/premium-intelligence.html');
|
|
70
|
-
// Delivery trends
|
|
71
|
-
await until(() => q.evaluate(() => !!document.querySelector('#moreB')), 20000); await q.
|
|
70
|
+
// re-pointed (U3): Delivery trends left ⋯; ?view=trends, the door the monthly metrics routine opens, is its one way in
|
|
71
|
+
await until(() => q.evaluate(() => !!document.querySelector('#moreB')), 20000); await q.goto(BASE + '/premium-intelligence.html?view=trends');
|
|
72
72
|
const v = await until(async () => { const x = await q.evaluate(() => Object.fromEntries([...document.querySelectorAll('#bmBody [data-tile]')].map((e) => [e.dataset.tile, e.querySelector('.v').textContent]))); return x.corrections && x.corrections !== 'Reading' ? x : null; }, 20000);
|
|
73
73
|
ok('C10 Insights\' Delivery trends show the Board\'s measures with the same values', !!v && v.corrections === '10.0' && v.merges === '3' && v.idle === '1', JSON.stringify(v));
|
|
74
74
|
// premium-uncovered-features (IsTarget): a tile opens the target popover under it, and the number goes to the Board's target route.
|