create-pmos 0.692.0 → 0.694.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 +22 -16
- package/payload/KIT-VERSION +1 -1
- 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/workspace/adler-moments-test.js +3 -35
- package/workspace/adler-seasons-test.js +1 -1
- package/workspace/briefing-premium-adddoc-test.js +1 -1
- package/workspace/briefing-premium-board-test.js +1 -1
- package/workspace/briefing-premium-doc-edit-test.js +1 -1
- package/workspace/briefing-premium-work-test.js +2 -2
- package/workspace/changelog.json +21 -2
- package/workspace/chat-asks-test.js +1 -1
- package/workspace/core-docs-workflow-test.js +1 -1
- package/workspace/ev-everywhere-test.js +3 -14
- package/workspace/guide/home.md +2 -2
- package/workspace/guide/layout.md +2 -2
- package/workspace/guide/settings-and-switches.md +0 -1
- package/workspace/impact-screens-test.js +2 -47
- package/workspace/ini-workflow-test.js +1 -1
- package/workspace/lib/board-grill.js +17 -24
- package/workspace/lib/discovery-questions.js +36 -0
- package/workspace/lib/routes-board-grill.js +31 -3
- package/workspace/live-pill-round-test.js +6 -18
- package/workspace/milestone-suggest-test.js +4 -28
- package/workspace/news-viewers-test.js +3 -29
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/premium-board-actions-test.js +3 -3
- package/workspace/premium-briefing-depth-test.js +4 -4
- package/workspace/premium-chat-attach-test.js +3 -2
- package/workspace/premium-chat-chart-tab-test.js +8 -7
- package/workspace/premium-chat-context-test.js +3 -1
- package/workspace/premium-chat-goal-view-test.js +3 -1
- package/workspace/premium-chat-line-test.js +8 -6
- package/workspace/premium-chat-report-tab-test.js +13 -5
- package/workspace/premium-chat-term-test.js +2 -2
- package/workspace/premium-chat-viewer-test.js +10 -16
- package/workspace/premium-core-doc-issue-test.js +7 -2
- package/workspace/premium-discuss-landing-test.js +9 -5
- package/workspace/premium-html-viewer-test.js +7 -3
- package/workspace/premium-link-suggest-test.js +6 -10
- package/workspace/premium-phone-card-test.js +2 -2
- package/workspace/premium-viewer-download-test.js +1 -1
- package/workspace/premium-viewer-flicker-test.js +1 -1
- package/workspace/premium-viewer-share-test.js +2 -2
- package/workspace/premium-viewer-test.js +1 -1
- package/workspace/premium-vw-cal-test.js +1 -1
- package/workspace/premium-vw-copy-test.js +3 -3
- package/workspace/premium-vw-doc-test.js +1 -1
- package/workspace/premium-vw-item-test.js +1 -1
- package/workspace/premium-work-depth-test.js +2 -2
- package/workspace/program-charter-test.js +1 -12
- package/workspace/program-leave-test.js +2 -2
- package/workspace/program-order-test.js +3 -65
- package/workspace/project-onboard-flow-test.js +5 -5
- package/workspace/public/pm/bd-asks.js +6 -5
- package/workspace/public/pm/cozy-home.css +0 -6
- package/workspace/public/pm/cozy-panels.js +2 -6
- package/workspace/public/pm/cozy-popup.css +1 -0
- package/workspace/public/pm/cozy-popup.js +15 -2
- package/workspace/public/pm/cozy-today-page.css +1 -1
- package/workspace/public/pm/cozy-today.css +0 -14
- package/workspace/public/pm/cozy-viewer.js +14 -38
- package/workspace/public/pm/goal-chat.js +2 -2
- package/workspace/public/pm/home-app.js +8 -67
- package/workspace/public/pm/home-chat.js +1 -1
- package/workspace/public/pm/home-ses-name.js +3 -2
- package/workspace/public/pm/home-today.js +4 -18
- package/workspace/public/pm/ini-view-model.js +2 -2
- package/workspace/public/pm/premium-board.js +1 -1
- package/workspace/public/premium-intelligence.html +1 -1
- package/workspace/public/premium-viewer.html +1 -1
- package/workspace/public/premium-workflows.html +1 -1
- package/workspace/ready-dash-ui-test.js +1 -1
- package/workspace/rename-test.js +2 -2
- package/workspace/server.js +11 -12
- package/workspace/session-names-test.js +34 -56
- package/workspace/sort-order-test.js +2 -71
- package/workspace/split-merge-ui-test.js +1 -1
- package/workspace/stage-card-tasks-test.js +1 -1
- package/workspace/stage-card-test.js +1 -1
- package/workspace/task-card-test.js +1 -1
- package/workspace/task-press-test.js +1 -1
- package/workspace/task-views-test.js +1 -1
- package/workspace/test-lists/adler-seasons-art.json +3 -6
- package/workspace/test-lists/batch18-asks.json +1 -1
- package/workspace/test-lists/briefing-premium.json +1 -11
- package/workspace/test-lists/discovery-three-questions.json +5 -0
- package/workspace/test-lists/premium-agreed-viewer.json +1 -1
- package/workspace/test-run.js +0 -2
- package/workspace/test-timings.json +0 -4
- package/workspace/tk-tasks-test.js +3 -17
- package/workspace/viewer-trail-test.js +2 -2
- package/workspace/workflows-setup-test.js +4 -2
- package/workspace/adler-seasons-art-test.js +0 -116
- package/workspace/briefing-premium-initiative-test.js +0 -289
- package/workspace/briefing-premium-products-test.js +0 -209
- package/workspace/briefing-premium-sources-test.js +0 -250
- package/workspace/briefing-premium-test.js +0 -282
- package/workspace/home-other-product-test.js +0 -197
- package/workspace/home-pill-test.js +0 -138
- package/workspace/home-railcard-test.js +0 -196
- package/workspace/home-rows-test.js +0 -389
- package/workspace/panels-test.js +0 -454
- package/workspace/public/premium.html +0 -48
- package/workspace/test-lists/batch18-panels.json +0 -9
- package/workspace/test-lists/home-railcard.json +0 -9
- package/workspace/test-lists/home-sessions-pill.json +0 -6
- package/workspace/test-lists/viewer-home-rows.json +0 -9
|
@@ -1291,7 +1291,7 @@ async function loadTrail() {
|
|
|
1291
1291
|
if (!T) { TR = TR || { usual: {}, themes: [], items: {}, failed: true }; return; }
|
|
1292
1292
|
TR = T; mergeTrail(); draw();
|
|
1293
1293
|
}
|
|
1294
|
-
/** The first questions still open (GET /api/board-grill?ids=): an initiative started on the Board shows "N questions
|
|
1294
|
+
/** The first questions still open (GET /api/board-grill?ids=): an initiative started on the Board shows "N questions". */
|
|
1295
1295
|
async function loadGrill() {
|
|
1296
1296
|
const B = boardsRead((r) => r.track.k <= 1);
|
|
1297
1297
|
if (!B.length) return;
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
<div class="ins-col" id="insCol">
|
|
60
60
|
<!-- What PMOS found: one finding at a time ("1 of 3", ‹ ›), and its drafted move as the expanded Suggestion with Change it first, Yes and No -->
|
|
61
61
|
<section class="pm-block ins-hero" id="insHero" aria-labelledby="hFound">
|
|
62
|
-
<div class="head"><span class="ins-ad" aria-hidden="true"><svg class="pm-ic pm-star" viewBox="0 0 24 24"><path d="M12 3l1.8 5.4L19 10.2l-5.2 1.8L12 17.4l-1.8-5.4L5 10.2l5.2-1.8z"/></svg></span><h2 class="pm-h-sm" id="hFound">What PMOS found</h2><span class="sp"></span><a class="pm-btn" id="askWhy" href="/
|
|
62
|
+
<div class="head"><span class="ins-ad" aria-hidden="true"><svg class="pm-ic pm-star" viewBox="0 0 24 24"><path d="M12 3l1.8 5.4L19 10.2l-5.2 1.8L12 17.4l-1.8-5.4L5 10.2l5.2-1.8z"/></svg></span><h2 class="pm-h-sm" id="hFound">What PMOS found</h2><span class="sp"></span><a class="pm-btn" id="askWhy" href="/today.html?ask=insights" aria-label="Ask why" title="Ask why"><svg class="pm-ic" viewBox="0 0 24 24" aria-hidden="true"><path d="M4 5h16v11H9l-5 4z"/></svg></a><span class="ins-pg" id="insPg"></span></div>
|
|
63
63
|
<div class="ins-txt" id="insText" aria-live="polite"><p class="ins-say"><b id="insEye"></b> <span id="brief">Reading the records.</span> <span id="insWhy"></span></p><div class="pm-sug x ins-mv" id="insMv" role="group" aria-label="PMOS suggests" hidden></div></div>
|
|
64
64
|
<span class="ins-hact" id="insAct"></span>
|
|
65
65
|
</section>
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
parts are the Viewer's own, shared with every page that opens it. -->
|
|
21
21
|
<body class="cz pm-ds vz-solo">
|
|
22
22
|
<main class="vz-host" data-cz-viewer-host></main>
|
|
23
|
-
<p class="pm-meta vz-gone" id="vzGone" hidden>Nothing is open. <a href="/
|
|
23
|
+
<p class="pm-meta vz-gone" id="vzGone" hidden>Nothing is open. <a href="/today.html">Go to Today</a></p>
|
|
24
24
|
<script type="module" src="/pm/premium-vw-page.js"></script>
|
|
25
25
|
</body>
|
|
26
26
|
</html>
|
|
@@ -12,6 +12,6 @@
|
|
|
12
12
|
</script>
|
|
13
13
|
</head>
|
|
14
14
|
<body>
|
|
15
|
-
<p>Workflows moved to <a href="/
|
|
15
|
+
<p>Workflows moved to <a href="/today.html?settings=workflows">Settings › Workspaces › Workflows</a>.</p>
|
|
16
16
|
</body>
|
|
17
17
|
</html>
|
|
@@ -193,7 +193,7 @@ const SPONSORS = '# Inline login slips to early December unless passkeys move to
|
|
|
193
193
|
const pg = await c.newPage(); const errs = [], gets = [];
|
|
194
194
|
pg.on('pageerror', (e) => errs.push(String((e && e.stack) || e)));
|
|
195
195
|
await pg.route('**/api/ready-reports/dashboard*', (r) => { const u = new URL(r.request().url()); gets.push({ scope: u.searchParams.get('scope'), from: u.searchParams.get('from') }); return r.fulfill({ contentType: 'application/json', body: JSON.stringify(RR.product()) }); });
|
|
196
|
-
await pg.goto(BASE + '/
|
|
196
|
+
await pg.goto(BASE + '/today.html?ini=product');
|
|
197
197
|
// batch 21 item 2: the product page is the same ONE page as a program's (prog-page.js): no toggle, Initiatives open first
|
|
198
198
|
const pd = await until(() => pg.evaluate(() => { const v = document.querySelector('#czViewer .pv'); if (!v) return null; return { goal: !!v.querySelector('.pv-gc'), tabs: [...v.querySelectorAll('[data-pv="tab"]')].map((t) => t.dataset.k + (t.getAttribute('aria-selected') === 'true' ? '*' : '')), over: v.scrollWidth > v.clientWidth + 1, toggle: !!document.querySelector('#czViewer [data-cz-vw-p="dash"]') }; }), 15000);
|
|
199
199
|
ok('P (' + nm + ') the product page is the one page: the goal card, Tasks, Initiatives (open first), Reports (batch 29 item 8 took Documents off); no toggle', !!pd && pd.goal && pd.tabs.join() === 'tasks,initiatives*,reports' && !pd.toggle && !pd.over, JSON.stringify(pd));
|
package/workspace/rename-test.js
CHANGED
|
@@ -116,9 +116,9 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
|
|
|
116
116
|
await p.click('#czViewer [data-cz-vw-rn]');
|
|
117
117
|
await p.fill('#czViewer .cz-vw-ren input', 'Descope parity');
|
|
118
118
|
await p.check('#czViewer .cz-vw-jt input');
|
|
119
|
-
await Promise.all([p.waitForURL(/\/
|
|
119
|
+
await Promise.all([p.waitForURL(/\/today\.html\?/, { timeout: 15000 }).catch(() => null), p.click('#czViewer .cz-vw-sv')]);
|
|
120
120
|
const u = new URL(p.url());
|
|
121
|
-
ok('I with the Jira box ticked,
|
|
121
|
+
ok('I with the Jira box ticked, Today opens the initiative\'s chat with the request typed, not sent', u.pathname === '/today.html' && u.searchParams.get('about') === 'init:descope-parity'
|
|
122
122
|
&& u.searchParams.get('say') === 'Rename the Jira epic IDPF-12 to "Descope parity".', u.href);
|
|
123
123
|
ok('I a row with no Jira epic has no Jira box', await (async () => {
|
|
124
124
|
const X = await open({ qs: '?ws=idpf&focus=usage-billing' });
|
package/workspace/server.js
CHANGED
|
@@ -7353,13 +7353,13 @@ async function handleRequest(req, res) {
|
|
|
7353
7353
|
const p = built ? built[2] : url.pathname;
|
|
7354
7354
|
|
|
7355
7355
|
// Today (public/today.html, slice 5 of the six-place navigation) is the page the app lands on: '/' and '/index.html' serve it. It is Home
|
|
7356
|
-
// with data-today: a desk draws Today's log and agenda, a phone keeps Home. Home (
|
|
7357
|
-
// classic shell (/classic.html) were removed (workspace-legacy-cleanup); their old links open
|
|
7358
|
-
// old first-run pages (/welcome, /premium-welcome.html) open
|
|
7356
|
+
// with data-today: a desk draws Today's log and agenda, a phone keeps Home's list for a conversation. Home's own page (premium.html) is gone; its addresses open Today. The console (/console.html, /c3.html) and the
|
|
7357
|
+
// classic shell (/classic.html) were removed (workspace-legacy-cleanup); their old links open Today with the same query. The
|
|
7358
|
+
// old first-run pages (/welcome, /premium-welcome.html) open Today's setup conversation (below).
|
|
7359
7359
|
// premium-agreed-design H3: Home replaced the Briefing, My work and Chat. My work and Chat open Home with their own query, so an
|
|
7360
7360
|
// ?item=, ?about=, ?open= or ?say= link still lands on what it named.
|
|
7361
7361
|
if (p === '/premium-work' || p === '/premium-work.html' || p === '/premium-chat' || p === '/premium-chat.html') {
|
|
7362
|
-
res.writeHead(302, { Location: '/
|
|
7362
|
+
res.writeHead(302, { Location: '/today.html' + url.search, 'Cache-Control': 'no-store' });
|
|
7363
7363
|
return res.end();
|
|
7364
7364
|
}
|
|
7365
7365
|
// premium-agreed-design (Home): the initiative is a layout inside Home. ?id=<x> becomes ?ini=<x>; the other query keys go along.
|
|
@@ -7367,20 +7367,19 @@ async function handleRequest(req, res) {
|
|
|
7367
7367
|
const q = new URLSearchParams(url.search);
|
|
7368
7368
|
if (q.has('id')) { q.set('ini', q.get('id')); q.delete('id'); }
|
|
7369
7369
|
const s = q.toString();
|
|
7370
|
-
res.writeHead(302, { Location: '/
|
|
7370
|
+
res.writeHead(302, { Location: '/today.html' + (s ? '?' + s : ''), 'Cache-Control': 'no-store' });
|
|
7371
7371
|
return res.end();
|
|
7372
7372
|
}
|
|
7373
|
-
// Today is the place of Home.
|
|
7374
|
-
//
|
|
7375
|
-
|
|
7376
|
-
if ((p === '/premium' || p === '/premium.html') && process.env.PMOS_DESK_HOME !== 'keep') {
|
|
7373
|
+
// Today is the place of Home. home-page-retire (Wawan 2026-11-22, "Remove Home on desktop and phone"): every Home address opens Today with the
|
|
7374
|
+
// same query, and premium.html is gone (slice 1b). On a desk Today opens what the query names in the one popup (pm/home-app.js addressChat).
|
|
7375
|
+
if (p === '/premium' || p === '/premium.html') {
|
|
7377
7376
|
res.writeHead(302, { Location: '/today.html' + url.search, 'Cache-Control': 'no-store' });
|
|
7378
7377
|
return res.end();
|
|
7379
7378
|
}
|
|
7380
7379
|
// One console address stays: the Chrome extension's popup frames /console.html?capture=1, which serves capture.html.
|
|
7381
7380
|
const capture = (p === '/console.html' || p === '/c3.html') && url.searchParams.get('capture') === '1';
|
|
7382
7381
|
if (!capture && (p === '/c3.html' || p === '/c3' || p === '/console' || p === '/console.html' || p === '/classic' || p === '/classic.html')) {
|
|
7383
|
-
res.writeHead(302, { Location: '/
|
|
7382
|
+
res.writeHead(302, { Location: '/today.html' + url.search, 'Cache-Control': 'no-store' });
|
|
7384
7383
|
return res.end();
|
|
7385
7384
|
}
|
|
7386
7385
|
// The audience tab (batch 12 item 1, S3): what the call sees while the PM presents from the recording tab. It makes no press.
|
|
@@ -7396,10 +7395,10 @@ async function handleRequest(req, res) {
|
|
|
7396
7395
|
// claude-onboarding-build: first run is a conversation in Home now. The old Welcome pages (/welcome and the three-step /premium-welcome.html)
|
|
7397
7396
|
// open Home's project setup; their old query (?ws=, ?step=) has nothing left to say there.
|
|
7398
7397
|
if (p === '/welcome' || p === '/welcome.html' || p === '/premium-welcome' || p === '/premium-welcome.html') {
|
|
7399
|
-
res.writeHead(302, { Location: '/
|
|
7398
|
+
res.writeHead(302, { Location: '/today.html?onboard=1', 'Cache-Control': 'no-store' });
|
|
7400
7399
|
return res.end();
|
|
7401
7400
|
}
|
|
7402
|
-
const PAGES = { '/premium-routine': 'premium-routine.html', '/premium-routine.html': 'premium-routine.html', '/': 'today.html', '/index.html': 'today.html', '/today': 'today.html', '/today.html': 'today.html', '/premium
|
|
7401
|
+
const PAGES = { '/premium-routine': 'premium-routine.html', '/premium-routine.html': 'premium-routine.html', '/': 'today.html', '/index.html': 'today.html', '/today': 'today.html', '/today.html': 'today.html', '/premium-board': 'premium-board.html', '/premium-board.html': 'premium-board.html', '/premium-intelligence': 'premium-intelligence.html', '/premium-intelligence.html': 'premium-intelligence.html', '/premium-events': 'premium-events.html', '/premium-events.html': 'premium-events.html', '/premium-library': 'premium-library.html', '/premium-library.html': 'premium-library.html', '/premium-goals': 'premium-goals.html', '/premium-goals.html': 'premium-goals.html', '/premium-insights': 'premium-intelligence.html', '/premium-insights.html': 'premium-intelligence.html', '/premium-viewer': 'premium-viewer.html', '/premium-viewer.html': 'premium-viewer.html', '/premium-rec': 'premium-rec.html', '/premium-rec.html': 'premium-rec.html', '/premium-workflows': 'premium-workflows.html', '/premium-workflows.html': 'premium-workflows.html', '/pm/present': 'premium-present.html', '/premium-buddy': 'premium-buddy.html', '/premium-buddy.html': 'premium-buddy.html' };
|
|
7403
7402
|
const page = capture ? 'capture.html' : Object.prototype.hasOwnProperty.call(PAGES, p) ? PAGES[p] : null;
|
|
7404
7403
|
if (page) {
|
|
7405
7404
|
// pm-os-absorb Run 2 (R25, X11): the per-launch nonce goes into the base meta line, nowhere else. no-store, so a
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
'use strict';
|
|
3
|
-
/* session-names-test.js — session names A (testing feedback 2026-10-25; canvas XmsNames). Serves
|
|
4
|
-
* /api/sessions answers one loose session
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* R4 Undo gives back Claude's name and unlocks its naming (release) · R5 the PM's name survives a later auto name
|
|
3
|
+
/* session-names-test.js — session names A (testing feedback 2026-10-25; canvas XmsNames). Serves Today from the real server;
|
|
4
|
+
* /api/sessions answers one loose session, and every write is captured, not written. The session opens from its address (?session=), and
|
|
5
|
+
* on a phone its top bar holds the name. On a desktop the popup's top bar replaced Home's chat header (home-desk-layout-delete):
|
|
6
|
+
* D1 the session opens in the popup with its name as the title · D2 ⋯ › Rename session makes the title one field with a check, holding
|
|
7
|
+
* the name, with the focus; Esc cancels and saves nothing · D3 Enter saves through POST /api/session/meta; the title shows the new name;
|
|
8
|
+
* "Renamed" with Undo
|
|
10
9
|
* P1 on a phone the top bar is back + the name only (no second line, no ⋯) · P2 the name is a 44 px press and the field fills the bar;
|
|
11
10
|
* Enter saves · E no page error */
|
|
12
11
|
const path = require('path');
|
|
@@ -67,70 +66,49 @@ const json = (r, body, status = 200) => r.fulfill({ status, contentType: 'applic
|
|
|
67
66
|
cur.s = { ...cur.s, name: b.name, name_by: 'pm' }; return json(r, { ok: true, id: b.id, name: b.name, name_by: 'pm' });
|
|
68
67
|
});
|
|
69
68
|
};
|
|
70
|
-
const rowText = (page) => page.evaluate(() => [...document.querySelectorAll('#hmList button')].map((b) => b.textContent.replace(/\s+/g, ' ').trim()).join(' | '));
|
|
71
69
|
const headOf = (page) => page.evaluate(() => { const h = document.querySelector('#hmCh'); if (!h || h.hidden) return null; const b = h.querySelector('[data-hm-rn]'), i = h.querySelector('.hm-ren input');
|
|
72
70
|
return { name: b ? b.textContent.trim() : '', field: i ? i.value : null, check: !!h.querySelector('.hm-ren .sv'), cursor: b ? getComputedStyle(b).cursor : '', pencil: !!h.querySelector('[aria-label*="pencil" i]') }; });
|
|
73
|
-
|
|
71
|
+
// Home's list is gone (home-desk-layout-delete): the session opens from its address, in the popup's chat on a desktop, as the page on a phone
|
|
72
|
+
const openRow = async (page) => { await page.goto(BASE + '/today.html?theme=light&session=s-ciam'); const ok2 = await until(() => page.evaluate(() => !!document.querySelector('#hmCh [data-hm-rn], #hmTop [data-hm-rn]')), 12000); await sleep(500); return !!ok2; };
|
|
74
73
|
|
|
75
|
-
/* ── desktop ── */
|
|
76
|
-
const
|
|
77
|
-
const
|
|
78
|
-
const
|
|
79
|
-
await
|
|
80
|
-
const
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
let
|
|
86
|
-
ok('
|
|
87
|
-
await
|
|
88
|
-
|
|
89
|
-
ok('
|
|
90
|
-
|
|
91
|
-
await
|
|
92
|
-
|
|
93
|
-
ok('
|
|
94
|
-
await
|
|
95
|
-
|
|
96
|
-
await
|
|
97
|
-
await page.keyboard.press('Enter');
|
|
98
|
-
h = await until(async () => { const x = await headOf(page); return x && x.name === 'My CIAM vendor list' ? x : null; });
|
|
99
|
-
ok('R3 Enter saves through POST /api/session/meta with the session id and the name', posts.length === 1 && posts[0].id === 's-ciam' && posts[0].name === 'My CIAM vendor list' && !posts[0].release, JSON.stringify(posts));
|
|
100
|
-
ok('R3 the header and the Home row show the new name at once', !!h && (await rowText(page)).includes('My CIAM vendor list'), await rowText(page));
|
|
101
|
-
const toast = await page.evaluate(() => { const t = document.querySelector('#toast'); return t && t.classList.contains('on') ? t.textContent.replace(/\s+/g, ' ').trim() : ''; });
|
|
102
|
-
ok('R3 the toast says Renamed with Undo', /^Renamed\s*Undo$/.test(toast), toast);
|
|
103
|
-
await page.click('#toast .undo');
|
|
104
|
-
h = await until(async () => { const x = await headOf(page); return x && x.name === AUTO ? x : null; });
|
|
105
|
-
ok('R4 Undo gives back PMOS\'s name and unlocks its naming (release)', !!h && posts.length === 2 && posts[1].release === true && cur.s.name_by === null, JSON.stringify(posts));
|
|
106
|
-
// the PM names it again; later the server reports a newer auto name, which must not show
|
|
107
|
-
await page.click('#hmCh [data-hm-rn]');
|
|
108
|
-
await until(async () => ((await headOf(page)) || {}).field != null);
|
|
109
|
-
await page.fill('#hmCh .hm-ren input', 'My CIAM vendor list'); await page.keyboard.press('Enter');
|
|
110
|
-
await until(async () => ((await headOf(page)) || {}).name === 'My CIAM vendor list');
|
|
111
|
-
cur.s = { ...cur.s, auto_name: 'Draft the CIAM RFP', hx: { title: CLI, turns: 14 } };
|
|
112
|
-
await sleep(9500); // one poll of /api/sessions
|
|
113
|
-
h = await headOf(page);
|
|
114
|
-
ok('R5 the PM\'s name survives a later auto name: the header and the row keep it', h && h.name === 'My CIAM vendor list' && !(await rowText(page)).includes('Draft the CIAM RFP'), JSON.stringify(h));
|
|
115
|
-
await ctx.close();
|
|
74
|
+
/* ── desktop: the popup ── */
|
|
75
|
+
const dcur = { s: { ...mk(), auto_name: AUTO } }, dposts = [];
|
|
76
|
+
const dctx = await browser.newContext({ viewport: { width: 1440, height: 900 } });
|
|
77
|
+
const dp = await dctx.newPage(); await setup(dp, dcur, dposts);
|
|
78
|
+
await dp.goto(BASE + '/today.html?theme=light&session=s-ciam');
|
|
79
|
+
const ttl = () => dp.evaluate(() => { const t = document.querySelector('.cz-pop-tw'); if (!t) return null; const b = t.querySelector('.cz-pop-t span'), i = t.querySelector('.hm-ren input');
|
|
80
|
+
return { name: b ? b.textContent.trim() : '', field: i ? i.value : null, check: !!t.querySelector('.hm-ren .sv'), focus: !!i && document.activeElement === i }; });
|
|
81
|
+
const d1 = await until(async () => { const x = await ttl(); return x && x.name === AUTO ? x : null; }, 15000);
|
|
82
|
+
ok('D1 on a desktop the session opens in the popup, its name the title', !!d1, JSON.stringify(await ttl()));
|
|
83
|
+
const rename = async () => { await dp.click('.cz-pop [data-pop="more"]'); await dp.click('.cz-pop-m [data-hm-rn]'); return until(async () => { const x = await ttl(); return x && x.field != null ? x : null; }); };
|
|
84
|
+
let d = await rename();
|
|
85
|
+
ok('D2 ⋯ › Rename session makes the title one field with a check, holding the name, with the focus', d && d.field === AUTO && d.check && d.focus, JSON.stringify(d));
|
|
86
|
+
await dp.keyboard.type('x'); await dp.keyboard.press('Escape');
|
|
87
|
+
d = await until(async () => { const x = await ttl(); return x && x.field == null ? x : null; });
|
|
88
|
+
ok('D2 Esc cancels: the name is back and nothing was saved', d && d.name === AUTO && dposts.length === 0, JSON.stringify({ d, dposts }));
|
|
89
|
+
await rename();
|
|
90
|
+
await dp.fill('.cz-pop-tw .hm-ren input', 'My CIAM vendor list'); await dp.keyboard.press('Enter');
|
|
91
|
+
d = await until(async () => { const x = await ttl(); return x && x.name === 'My CIAM vendor list' ? x : null; }, 8000);
|
|
92
|
+
ok('D3 Enter saves through POST /api/session/meta, and the title shows the new name', !!d && dposts.length === 1 && dposts[0].id === 's-ciam' && dposts[0].name === 'My CIAM vendor list', JSON.stringify({ d: await ttl(), dposts }));
|
|
93
|
+
const dt = await dp.evaluate(() => { const t = document.querySelector('#toast'); return t && t.classList.contains('on') ? t.textContent.replace(/\s+/g, ' ').trim() : ''; });
|
|
94
|
+
ok('D3 the toast says Renamed with Undo', /^Renamed\s*Undo$/.test(dt), dt);
|
|
95
|
+
await dctx.close();
|
|
116
96
|
|
|
117
97
|
/* ── phone ── */
|
|
118
98
|
const pcur = { s: { ...mk(), auto_name: AUTO } }, pposts = [];
|
|
119
99
|
const pctx = await browser.newContext({ viewport: { width: 390, height: 844 }, hasTouch: true });
|
|
120
100
|
const pp = await pctx.newPage(); await setup(pp, pcur, pposts);
|
|
121
|
-
await pp
|
|
122
|
-
const loose = await until(async () => pp.$('#hmList button:has-text("Not in an initiative")'), 10000); // the phone folds loose chats into one row
|
|
123
|
-
if (loose) { await loose.click(); await sleep(400); }
|
|
124
|
-
await openRow(pp, AUTO);
|
|
101
|
+
await openRow(pp);
|
|
125
102
|
const bar = await until(() => pp.evaluate(() => {
|
|
126
103
|
const top = document.querySelector('#hmTop'); if (!top || getComputedStyle(top).display === 'none') return null;
|
|
127
104
|
const vis = (el) => !!el && getComputedStyle(el).display !== 'none' && el.getBoundingClientRect().width > 0;
|
|
128
105
|
const b = top.querySelector('[data-hm-rn]'); const r = b ? b.getBoundingClientRect() : null;
|
|
129
106
|
return { name: b ? b.textContent.trim() : '', h: r ? r.height : 0, sub: (document.querySelector('#hmTopSub') || {}).textContent || '', subShown: vis(document.querySelector('#hmTopSub')),
|
|
130
|
-
more: vis(document.querySelector('#hmMoreP')), needs: vis(document.querySelector('#hmNeeds')), back: vis(document.querySelector('#hmBack')) };
|
|
107
|
+
ctx: vis(top.querySelector('.hm-ctx')), more: vis(document.querySelector('#hmMoreP')), needs: vis(document.querySelector('#hmNeeds')), back: vis(document.querySelector('#hmBack')) };
|
|
131
108
|
}));
|
|
132
109
|
ok('P1 the phone top bar is back + the session name only: no second line, no ⋯', bar && bar.name === AUTO && bar.back && !bar.sub && !bar.subShown && !bar.more && !bar.needs, JSON.stringify(bar));
|
|
133
|
-
|
|
110
|
+
// with its context pie beside it the name sits on the row's 22 px line (XctxA2Phones, cozy-home.css); without it, a 44 px press
|
|
111
|
+
ok('P2 the name is a 44 px press, or the row line beside its context pie', bar && (bar.h >= 44 || (bar.ctx && bar.h >= 22)), JSON.stringify(bar));
|
|
134
112
|
await pp.click('#hmTop [data-hm-rn]');
|
|
135
113
|
const pf = await until(() => pp.evaluate(() => { const f = document.querySelector('#hmTop .hm-ren'), i = f && f.querySelector('input'); if (!f) return null; const r = f.getBoundingClientRect(), t = document.querySelector('#hmTop').getBoundingClientRect(); return { v: i.value, w: r.width, tw: t.width, h: r.height }; }));
|
|
136
114
|
ok('P2 a tap makes the field fill the bar beside back', pf && pf.v === AUTO && pf.w > pf.tw * 0.7 && pf.h >= 44, JSON.stringify(pf));
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
'use strict';
|
|
3
|
-
/* sort-order-test.js — sort or arrange
|
|
3
|
+
/* sort-order-test.js — sort or arrange the Board by hand, the ONE order Work reads too (batch 14 item 8, option A; canvas SoAHomePhone,
|
|
4
4
|
* SoABoardPhone, SoADesk). Serves the real pages from the real server; GET /api/programs answers Project Ascent (fixtures/program-ascent.js)
|
|
5
5
|
* and /api/settings is answered here from one layout, so Home reads what the Board saved. order-model.test.js covers the sorting itself.
|
|
6
6
|
* B Board: the sort button in the header; the programs and products follow the layout; dragging a product's header saves My order and
|
|
7
7
|
* the toast has Undo; the menu's Name A to Z sorts and the button says so; a move out of another sort keeps the order on screen
|
|
8
|
-
*
|
|
9
|
-
* P phone: the button fits the header, no sideways scroll, no grip shows, and a held product header drags */
|
|
8
|
+
* Home's list read the same order; its checks went with Home's page (home-desk-layout-delete). */
|
|
10
9
|
const path = require('path');
|
|
11
10
|
const { classicBoard } = require('./lib/classic-board'); // these checks are about the four Board views, not Work (work-one-view)
|
|
12
11
|
const { spawn } = require('child_process');
|
|
@@ -134,73 +133,5 @@ const route = async (page) => {
|
|
|
134
133
|
await ctx.close();
|
|
135
134
|
}
|
|
136
135
|
|
|
137
|
-
/* H — Home reads the same layout */
|
|
138
|
-
const home = async (o = {}) => {
|
|
139
|
-
const ctx = await browser.newContext({ viewport: { width: o.w || 1440, height: o.h || 900 }, hasTouch: !!o.touch, isMobile: !!o.touch });
|
|
140
|
-
const page = await ctx.newPage();
|
|
141
|
-
const errors = [];
|
|
142
|
-
page.on('pageerror', (e) => errors.push(String((e && e.message) || e)));
|
|
143
|
-
const json = (body) => (r) => r.fulfill({ contentType: 'application/json', body: JSON.stringify(body) });
|
|
144
|
-
await page.route(/\/api\/briefing-premium(\?.*)?$/, json({ ok: true, state: 'ready', model: B.build(HF.facts()), as_of: Date.now() }));
|
|
145
|
-
await page.route('**/api/briefing-premium/thread**', json({ ok: true, turns: [], working: false }));
|
|
146
|
-
await page.route('**/api/board-premium*', (r) => { const q = new URL(r.request().url()).searchParams; r.fulfill({ contentType: 'application/json', body: JSON.stringify({ ok: true, state: 'ready', model: BP.build(F.programFacts(q.get('ws') || 'idpf')), as_of: Date.now() }) }); });
|
|
147
|
-
await page.route('**/api/board-trail*', (r) => r.fulfill({ status: 500, contentType: 'application/json', body: JSON.stringify({ ok: false, error: 'not in this check' }) }));
|
|
148
|
-
await route(page);
|
|
149
|
-
const am = new Date(); am.setHours(10, 0, 0, 0); await page.clock.setFixedTime(am);
|
|
150
|
-
await page.goto(BASE + '/premium.html?theme=light');
|
|
151
|
-
await until(() => page.evaluate(() => !!document.querySelector('#hmList [data-po-list="@top"] > [data-po-id]') && document.body.dataset.hmTop === '1'), 20000);
|
|
152
|
-
await page.waitForTimeout(300);
|
|
153
|
-
return { ctx, page, errors };
|
|
154
|
-
};
|
|
155
|
-
{
|
|
156
|
-
const { ctx, page: p, errors } = await home();
|
|
157
|
-
const hk = await top(p, '#hmList');
|
|
158
|
-
const shared = boardTop.filter((k) => hk.includes(k));
|
|
159
|
-
ok('H Home lists the programs and products in the Board\'s order', shared.length >= 2 && hk.filter((k) => boardTop.includes(k)).join() === shared.join(), JSON.stringify({ hk, boardTop }));
|
|
160
|
-
const btn = await p.evaluate(() => { const b = document.querySelector('#hmList .hm-hd [data-so-btn]'); return b ? b.getAttribute('aria-label') : null; });
|
|
161
|
-
ok('H the same sort button sits in Home\'s header and says the sort now', btn === 'Sort. Now: My order', String(btn));
|
|
162
|
-
const own = await p.evaluate(() => [...document.querySelectorAll('#hmList [data-po-list^="@p:"]')].length);
|
|
163
|
-
ok('H a product\'s initiatives are one list the grip arranges', own >= 1, String(own));
|
|
164
|
-
if (process.env.SHOTS) { await p.hover('#hmList [data-po-list="@top"] > [data-po-id]:last-child .hv-gh'); await p.screenshot({ path: process.env.SHOTS + '/home-desk.png' }); }
|
|
165
|
-
// drag the last group to the top on Home: the Board would read it the same way
|
|
166
|
-
const last = hk[hk.length - 1];
|
|
167
|
-
await p.hover(`#hmList [data-po-list="@top"] > [data-po-id="${last}"] .hv-gh`);
|
|
168
|
-
const g = await p.locator(`#hmList [data-po-list="@top"] > [data-po-id="${last}"] > .so-grip`).boundingBox();
|
|
169
|
-
const t0 = await p.locator(`#hmList [data-po-list="@top"] > [data-po-id="${hk[0]}"]`).boundingBox();
|
|
170
|
-
const n0 = posts.length;
|
|
171
|
-
if (g) { await p.mouse.move(g.x + g.width / 2, g.y + g.height / 2); await p.mouse.down(); await p.mouse.move(g.x + g.width / 2, t0.y + 6, { steps: 8 }); await p.mouse.up(); }
|
|
172
|
-
await until(async () => (await top(p, '#hmList'))[0] === last);
|
|
173
|
-
ok('H the header grip moves a group on Home: one save, first in the shared order', !!g && posts.length === n0 + 1 && LAY.top[0] === last && (await top(p, '#hmList'))[0] === last, JSON.stringify({ g, top: LAY.top }));
|
|
174
|
-
ok('H no page error', !errors.length, errors.join(' | '));
|
|
175
|
-
await ctx.close();
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
/* P — a phone */
|
|
179
|
-
{
|
|
180
|
-
const { ctx, page: p, errors } = await home({ w: 390, h: 844, touch: true });
|
|
181
|
-
const fit = await p.evaluate(() => { const b = document.querySelector('#hmList .hm-hd [data-so-btn]'); const r = b && b.getBoundingClientRect(); return r ? r.right <= window.innerWidth && r.width >= 32 : false; });
|
|
182
|
-
ok('P phone: the sort button fits Home\'s header', fit);
|
|
183
|
-
const grips = await p.evaluate(() => [...document.querySelectorAll('#hmList [data-po-grip]')].filter((g) => getComputedStyle(g).display !== 'none').length);
|
|
184
|
-
ok('P phone: no grip shows (hold instead)', grips === 0, String(grips));
|
|
185
|
-
const hk = await top(p, '#hmList');
|
|
186
|
-
// the top of Home (Your move, Waiting on others) sits above the groups: bring them into view first
|
|
187
|
-
await p.evaluate((k) => document.querySelector(`#hmList [data-po-list="@top"] > [data-po-id="${k}"]`).scrollIntoView({ block: 'center' }), hk[hk.length - 1]);
|
|
188
|
-
const s = await p.locator(`#hmList [data-po-list="@top"] > [data-po-id="${hk[hk.length - 1]}"] .hv-gh`).boundingBox();
|
|
189
|
-
const t = await p.locator(`#hmList [data-po-list="@top"] > [data-po-id="${hk[0]}"]`).boundingBox();
|
|
190
|
-
const cdp = await ctx.newCDPSession(p);
|
|
191
|
-
const pt = (y) => [{ x: s.x + s.width / 2, y }];
|
|
192
|
-
const n0 = posts.length;
|
|
193
|
-
await cdp.send('Input.dispatchTouchEvent', { type: 'touchStart', touchPoints: pt(s.y + s.height / 2) });
|
|
194
|
-
await sleep(600);
|
|
195
|
-
const lifted = await p.evaluate((k) => !!document.querySelector(`[data-po-list="@top"] > [data-po-id="${k}"].po-lift`), hk[hk.length - 1]);
|
|
196
|
-
for (let k = 1; k <= 6; k++) await cdp.send('Input.dispatchTouchEvent', { type: 'touchMove', touchPoints: pt(s.y + s.height / 2 - ((s.y + s.height / 2 - (t.y + 6)) * k) / 6) });
|
|
197
|
-
if (process.env.SHOTS) await p.screenshot({ path: process.env.SHOTS + '/home-phone-drag.png' });
|
|
198
|
-
await cdp.send('Input.dispatchTouchEvent', { type: 'touchEnd', touchPoints: [] });
|
|
199
|
-
await until(() => posts.length === n0 + 1);
|
|
200
|
-
ok('P phone: hold a group\'s header, it lifts; drag it up and the order saves', lifted && posts.length === n0 + 1 && LAY.top[0] === hk[hk.length - 1], JSON.stringify({ lifted, top: LAY.top, hk }));
|
|
201
|
-
ok('P phone: no sideways scroll', await p.evaluate(() => document.documentElement.scrollWidth <= window.innerWidth + 1));
|
|
202
|
-
ok('P phone: no page error', !errors.length, errors.join(' | '));
|
|
203
|
-
await ctx.close();
|
|
204
|
-
}
|
|
205
136
|
finish();
|
|
206
137
|
})();
|
|
@@ -142,7 +142,7 @@ const shot = (p, name) => (SHOTS ? p.screenshot({ path: path.join(SHOTS, name) }
|
|
|
142
142
|
const p = await ctx.newPage();
|
|
143
143
|
const errors = [];
|
|
144
144
|
p.on('pageerror', (e) => errors.push(String((e && e.message) || e)));
|
|
145
|
-
await p.goto(`${BASE}/
|
|
145
|
+
await p.goto(`${BASE}/today.html?theme=light&ws=${ws}&ini=fx-full`);
|
|
146
146
|
const g = await until(() => p.evaluate(() => { const s = document.querySelector('#czViewer .sm-gone'); return s ? s.textContent : null; }), 30000);
|
|
147
147
|
ok('H the merged one leads with Merged · <day> and where its work went', !!g && /^Merged · /.test(g.trim()) && /are now in /.test(g), g);
|
|
148
148
|
await shot(p, 'home-merged.png');
|
|
@@ -103,7 +103,7 @@ const TICKETS = [{ key: 'IDPF-3387', title: 'Refactor the AppAuthService', statu
|
|
|
103
103
|
if (p === '/api/boards/tasks/order') { const from = S.order[b.section] || []; S.order[b.section] = b.tasks; return json(r, { ok: true, from }); }
|
|
104
104
|
return json(r, { ok: true });
|
|
105
105
|
});
|
|
106
|
-
if (where === 'home') await page.goto(BASE + '/
|
|
106
|
+
if (where === 'home') await page.goto(BASE + '/today.html?ini=self-serve-v2&ws=w1&board=w1&theme=' + theme);
|
|
107
107
|
if (where === 'home') await until(() => page.evaluate(() => document.body.dataset.hmTop === '1'), 20000); // the top of Home has read its two sources
|
|
108
108
|
else {
|
|
109
109
|
await page.goto(BASE + '/premium-board.html?theme=' + theme);
|
|
@@ -117,7 +117,7 @@ async function pure() {
|
|
|
117
117
|
for (const p of ['**/api/boards/move', '**/api/initiative-layout', '**/api/boards/ini-auto']) await page.route(p, (r) => (r.request().method() === 'POST' ? json(r, { ok: true, auto: false, held: [], by: 'stage', names: [], of: {}, stage: {}, sets: [] }) : r.fallback()));
|
|
118
118
|
if (sessions) await page.route(/\/api\/sessions(\?.*)?$/, (r) => json(r, { sessions }));
|
|
119
119
|
if (trail) await page.route('**/api/board-trail*', (r) => json(r, trail));
|
|
120
|
-
await page.goto(BASE + '/
|
|
120
|
+
await page.goto(BASE + '/today.html?ini=self-serve-v2&ws=w1&board=w1&theme=' + theme);
|
|
121
121
|
if (w <= 760) await everyPart(page);
|
|
122
122
|
const up = await until(() => page.evaluate(() => !!document.querySelector('#czViewer [data-hi-v="page"] .iv-mc')), 30000);
|
|
123
123
|
return { ctx, page, errors, posts, up };
|
|
@@ -165,7 +165,7 @@ async function pure() {
|
|
|
165
165
|
}
|
|
166
166
|
return json(r, { ok: true, from: {}, item: {} });
|
|
167
167
|
});
|
|
168
|
-
await page.goto(BASE + '/
|
|
168
|
+
await page.goto(BASE + '/today.html?ini=self-serve-v2&ws=w1&board=w1&theme=' + theme);
|
|
169
169
|
const up = await until(() => page.evaluate(() => !!document.querySelector('#czViewer')), 30000);
|
|
170
170
|
return { ctx, page, errors, posts, up };
|
|
171
171
|
};
|
|
@@ -92,7 +92,7 @@ const back = (p) => p.evaluate(() => { const b = document.querySelector('#czView
|
|
|
92
92
|
browser = besidePage(classicBoard(await chromium.launch({ executablePath: exe })));
|
|
93
93
|
|
|
94
94
|
/* Home: the initiative's page in the Viewer */
|
|
95
|
-
const H = await page('/
|
|
95
|
+
const H = await page('/today.html?ini=' + ID + '&ws=w1&board=w1&theme=light');
|
|
96
96
|
const hp = H.p;
|
|
97
97
|
const up = await until(() => hp.evaluate((v) => !!document.querySelector(v + ' [data-hi-v="page"] .iv-mc'), V), 30000);
|
|
98
98
|
ok('T0 Home opens the initiative\'s page', up);
|
|
@@ -350,7 +350,7 @@ const everyPart = async (pg) => { await pg.waitForSelector('#czViewer .pw-ph', {
|
|
|
350
350
|
// the layout answers as the server does once a pick saves (the write's own wording is initiative-layout.test.js's)
|
|
351
351
|
await page.route('**/api/initiative-layout*', (r) => { const rq = r.request(); if (rq.method() === 'POST') { const b = JSON.parse(rq.postData() || '{}'); posts.push({ path: '/api/initiative-layout', body: b }); layout = { ...layout, by: b.grouping || b.by, picked: true }; } json(r, layout); });
|
|
352
352
|
await page.route(/\/api\/(boards\/|lifecycle)/, (r) => { const rq = r.request(); if (rq.method() !== 'GET') posts.push({ path: new URL(rq.url()).pathname, body: JSON.parse(rq.postData() || '{}') }); json(r, { ok: true }); });
|
|
353
|
-
if (where === 'home') await page.goto(BASE + '/
|
|
353
|
+
if (where === 'home') await page.goto(BASE + '/today.html?ini=self-serve-v2&ws=w1&board=w1&theme=' + theme);
|
|
354
354
|
else {
|
|
355
355
|
await page.goto(BASE + '/premium-board.html?theme=' + theme);
|
|
356
356
|
await until(() => page.evaluate(() => document.querySelectorAll('#ibBody .ini2, #ibBody .bt-l').length > 0), 20000);
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
-
"_comment": "Batch 18 item 8-B, Adler dressed for the season: the charms, their scenes and where they show (pm/cozy-adler.js charms and charmScene, the tap popover, Your day's scene and greeting, the chat face, first run, the Board's win). adler-seasons-art.test.js is pure
|
|
2
|
+
"_comment": "Batch 18 item 8-B, Adler dressed for the season: the charms, their scenes and where they show (pm/cozy-adler.js charms and charmScene, the tap popover, Your day's scene and greeting, the chat face, first run, the Board's win). adler-seasons-art.test.js is pure. Its browser suite drove Your day on Home's list and went with Home's page (home-desk-layout-delete).",
|
|
3
3
|
"modules": [
|
|
4
4
|
"adler-seasons-art.test.js"
|
|
5
5
|
],
|
|
6
|
-
"panels": [
|
|
7
|
-
"adler-seasons-art-test.js"
|
|
8
|
-
],
|
|
6
|
+
"panels": [],
|
|
9
7
|
"seconds": {
|
|
10
|
-
"adler-seasons-art.test.js": 1
|
|
11
|
-
"adler-seasons-art-test.js": 30
|
|
8
|
+
"adler-seasons-art.test.js": 1
|
|
12
9
|
}
|
|
13
10
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"_comment": "batch 18 item 2-A: the asks in the Viewer (start / blocked, decision, waited, source) on the one pattern, canvas In development OvA1Start, OvA1After, OvA2Decide, OvA3Waited, OvA4Source, OvA11Dark, OvA12Edges, OvA10Desk. The model in node; the
|
|
2
|
+
"_comment": "batch 18 item 2-A: the asks in the Viewer (start / blocked, decision, waited, source) on the one pattern, canvas In development OvA1Start, OvA1After, OvA2Decide, OvA3Waited, OvA4Source, OvA11Dark, OvA12Edges, OvA10Desk. The model in node; the browser suites that pressed them through Home's list went with Home's page (home-desk-layout-delete).",
|
|
3
3
|
"modules": ["home-need.test.mjs"],
|
|
4
4
|
"seconds": { "home-need.test.mjs": 1 }
|
|
5
5
|
}
|
|
@@ -1,37 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_comment": "Initiative briefing-premium: the premium Briefing page, served from a fixture model, checked against the mockup; and its reply box against the real server with a stub claude. premium-welcome-test.js is retired (initiative claude-onboarding-build): /premium-welcome.html now redirects to the Home setup conversation, which project-onboard-flow-test.js covers.",
|
|
3
3
|
"panels": [
|
|
4
|
-
"briefing-premium-test.js",
|
|
5
4
|
"briefing-premium-work-test.js",
|
|
6
5
|
"briefing-premium-board-test.js",
|
|
7
6
|
"briefing-premium-insights-test.js",
|
|
8
|
-
"briefing-premium-initiative-test.js",
|
|
9
7
|
"briefing-premium-adddoc-test.js",
|
|
10
8
|
"briefing-premium-doc-edit-test.js",
|
|
11
9
|
"briefing-premium-calendar-test.js",
|
|
12
10
|
"briefing-premium-calendar-2-test.js",
|
|
13
11
|
"briefing-premium-calendar-3-test.js",
|
|
14
|
-
"briefing-premium-products-test.js",
|
|
15
|
-
"home-other-product-test.js",
|
|
16
|
-
"briefing-premium-sources-test.js",
|
|
17
12
|
"briefing-premium-metrics-test.js",
|
|
18
13
|
"briefing-premium-agent-server.test.js"
|
|
19
14
|
],
|
|
20
15
|
"seconds": {
|
|
21
|
-
"briefing-premium-test.js": 60,
|
|
22
16
|
"briefing-premium-work-test.js": 80,
|
|
23
17
|
"briefing-premium-board-test.js": 120,
|
|
24
18
|
"briefing-premium-insights-test.js": 90,
|
|
25
|
-
"briefing-premium-initiative-test.js": 120,
|
|
26
19
|
"briefing-premium-adddoc-test.js": 120,
|
|
27
20
|
"briefing-premium-doc-edit-test.js": 90,
|
|
28
21
|
"briefing-premium-calendar-test.js": 90,
|
|
29
22
|
"briefing-premium-calendar-2-test.js": 90,
|
|
30
23
|
"briefing-premium-calendar-3-test.js": 120,
|
|
31
|
-
"briefing-premium-products-test.js": 90,
|
|
32
|
-
"briefing-premium-sources-test.js": 90,
|
|
33
24
|
"briefing-premium-metrics-test.js": 120,
|
|
34
|
-
"briefing-premium-agent-server.test.js": 40
|
|
35
|
-
"home-other-product-test.js": 60
|
|
25
|
+
"briefing-premium-agent-server.test.js": 40
|
|
36
26
|
}
|
|
37
27
|
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "discovery-three-questions (bet A459): a new initiative on the Board asks who has this problem, how do we know and what would change our mind; the answers become the Experiment's evidence and kill condition (lib/discovery-questions.js, lib/board-grill.js, POST /api/board-grill/answer).",
|
|
3
|
+
"modules": ["discovery-questions.test.js"],
|
|
4
|
+
"seconds": { "discovery-questions.test.js": 2 }
|
|
5
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"_comment": "Initiative premium-agreed-design, area viewer (I1): the pure header card of the premium initiative page. The
|
|
2
|
+
"_comment": "Initiative premium-agreed-design, area viewer (I1): the pure header card of the premium initiative page. The initiative opens in the popup (premium-vw-item-test.js); the Viewer's Jira ticket (V1) in premium-vw-jira*.",
|
|
3
3
|
"modules": [
|
|
4
4
|
"premium-initiative-head.test.js"
|
|
5
5
|
],
|
package/workspace/test-run.js
CHANGED
|
@@ -116,8 +116,6 @@ function configure({ name = 'run', port = null } = {}) {
|
|
|
116
116
|
// A private tmux socket, never the PM's own ('pmos'), so a suite cannot reach their sessions.
|
|
117
117
|
const tmuxSock = `pmos-${name}-${process.pid}`;
|
|
118
118
|
process.env.PMOS_TMUX_SOCK = tmuxSock;
|
|
119
|
-
// Home stays at /premium.html in the suites (server.js sends a bare desk Home to Today otherwise): they test the Home that still ships
|
|
120
|
-
process.env.PMOS_DESK_HOME = 'keep';
|
|
121
119
|
|
|
122
120
|
const chosen = Number(port) > 0 ? Number(port) : claimEphemeralPort();
|
|
123
121
|
|
|
@@ -24,18 +24,14 @@
|
|
|
24
24
|
"briefing-premium-doc-edit-test.js": 40,
|
|
25
25
|
"briefing-premium-doc-edit.test.js": 1,
|
|
26
26
|
"briefing-premium-drafts.test.js": 1,
|
|
27
|
-
"briefing-premium-initiative-test.js": 27,
|
|
28
27
|
"briefing-premium-initiative.test.js": 1,
|
|
29
28
|
"briefing-premium-insights-test.js": 58,
|
|
30
29
|
"briefing-premium-insights.test.js": 1,
|
|
31
30
|
"briefing-premium-metrics-test.js": 24,
|
|
32
31
|
"briefing-premium-metrics.test.js": 1,
|
|
33
|
-
"briefing-premium-products-test.js": 38,
|
|
34
32
|
"briefing-premium-products.test.js": 1,
|
|
35
33
|
"briefing-premium-reports.test.js": 1,
|
|
36
|
-
"briefing-premium-sources-test.js": 36,
|
|
37
34
|
"briefing-premium-sources.test.js": 1,
|
|
38
|
-
"briefing-premium-test.js": 26,
|
|
39
35
|
"briefing-premium-work-test.js": 18,
|
|
40
36
|
"briefing-premium-work.test.js": 1,
|
|
41
37
|
"briefing-premium-writes.test.js": 1,
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* nothing reaches Jira or the repository. Screenshots go to TK_SHOTS when set.
|
|
8
8
|
* G1 the group icon and its menu · T1 By epic by itself, the send icon, the sent state · T2 the drafted ticket · T3 the Send sheet, its one
|
|
9
9
|
* labeled Send · G2 Your groups: drag between, ⋯, New group · G3 Timeline and Kanban draw the groups · G4 the phone · G5 the Board's panel
|
|
10
|
-
* · G6 the old panel is gone
|
|
10
|
+
* · G6 the old panel is gone (New → A task was Home's list head: home-desk-layout-delete) */
|
|
11
11
|
const fs = require('fs');
|
|
12
12
|
const { classicBoard } = require('./lib/classic-board'); // these checks are about the four Board views, not Work (work-one-view)
|
|
13
13
|
const path = require('path');
|
|
@@ -117,7 +117,7 @@ const everyPart = async (pg) => { await pg.waitForSelector('#czViewer .pw-ph', {
|
|
|
117
117
|
const up = await until(() => page.evaluate(() => !!document.querySelector('#czViewer .iv .iv-th')), 20000);
|
|
118
118
|
return { ctx, page, errors, posts, up, set: (v) => { cur = v; } };
|
|
119
119
|
}
|
|
120
|
-
await page.goto(BASE + '/
|
|
120
|
+
await page.goto(BASE + '/today.html?ini=' + I + '&ws=w1&board=w1&theme=' + theme);
|
|
121
121
|
if (w <= 760) await everyPart(page);
|
|
122
122
|
const up = await until(() => page.evaluate(() => !!document.querySelector('#czViewer .iv-mc')), 30000);
|
|
123
123
|
return { ctx, page, errors, posts, up, set: (v) => { cur = v; } };
|
|
@@ -241,7 +241,7 @@ const everyPart = async (pg) => { await pg.waitForSelector('#czViewer .pw-ph', {
|
|
|
241
241
|
await q.click('.ig-pop [role="menuitem"]:has-text("Rename")');
|
|
242
242
|
await q.fill('.ig-pop input', 'Legal and filing');
|
|
243
243
|
await q.keyboard.press('Enter');
|
|
244
|
-
const rn = await until(() => lastPost(B, '/api/initiative-layout'));
|
|
244
|
+
const rn = await until(() => { const x = lastPost(B, '/api/initiative-layout'); return x && x.body.kind === 'rename' ? x : null; });
|
|
245
245
|
ok('G2 Rename writes the new name', !!rn && rn.body.kind === 'rename' && rn.body.from === 'Legal' && rn.body.to === 'Legal and filing', JSON.stringify(rn && rn.body));
|
|
246
246
|
await openMore(q);
|
|
247
247
|
const gm2 = await until(() => q.evaluate(() => { const m = document.querySelector('.ig-pop [role="menu"]'); return m ? m.textContent.replace(/\s+/g, ' ') : null; }));
|
|
@@ -313,19 +313,5 @@ const everyPart = async (pg) => { await pg.waitForSelector('#czViewer .pw-ph', {
|
|
|
313
313
|
await E.ctx.close();
|
|
314
314
|
}
|
|
315
315
|
|
|
316
|
-
/* G6 · New → Task opens the initiative with the cursor in the Tasks field (XtaA4NewTask) */
|
|
317
|
-
{
|
|
318
|
-
const N = await open({ layout: { by: 'stage', picked: true } }), n = N.page;
|
|
319
|
-
await n.click('[data-hm-new]');
|
|
320
|
-
await n.click('#hmMenu [data-hm-mi]:has-text("Task")').catch(() => n.click('[data-hm-mi]:has-text("Task")'));
|
|
321
|
-
// with an initiative open, Task adds there at once (batch 14 item 10); from all work it asks which initiative first
|
|
322
|
-
const pick = await n.$('#hmMenu:not([hidden]) [data-hm-mi]:has-text("Self-serve onboarding v2")');
|
|
323
|
-
if (pick && await pick.isVisible()) await pick.click();
|
|
324
|
-
ok('G6 New → A task: the page with the Tasks field open, the cursor in it', await until(() => n.evaluate(() => { const f = document.querySelector('#czViewer [data-hi-v="page"] #ivAddTask'); return !!f && document.activeElement === f; }), 15000));
|
|
325
|
-
ok('G6 no old Tasks view: no #ovTask anywhere', !(await n.$('#ovTask')));
|
|
326
|
-
await shot(n, 'new-task-1440.png');
|
|
327
|
-
ok('0 New → A task: no page error', !N.errors.length, N.errors.join(' | '));
|
|
328
|
-
await N.ctx.close();
|
|
329
|
-
}
|
|
330
316
|
finish();
|
|
331
317
|
})();
|