create-pmos 0.588.0 → 0.590.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.
@@ -147,7 +147,7 @@ const route = async (page) => {
147
147
  await route(page);
148
148
  const am = new Date(); am.setHours(10, 0, 0, 0); await page.clock.setFixedTime(am);
149
149
  await page.goto(BASE + '/premium.html?theme=light');
150
- await until(() => page.evaluate(() => !!document.querySelector('#hmList [data-po-list="@top"] > [data-po-id]')), 20000);
150
+ await until(() => page.evaluate(() => !!document.querySelector('#hmList [data-po-list="@top"] > [data-po-id]') && document.body.dataset.hmTop === '1'), 20000);
151
151
  await page.waitForTimeout(300);
152
152
  return { ctx, page, errors };
153
153
  };
@@ -182,6 +182,8 @@ const route = async (page) => {
182
182
  const grips = await p.evaluate(() => [...document.querySelectorAll('#hmList [data-po-grip]')].filter((g) => getComputedStyle(g).display !== 'none').length);
183
183
  ok('P phone: no grip shows (hold instead)', grips === 0, String(grips));
184
184
  const hk = await top(p, '#hmList');
185
+ // the top of Home (Your move, Waiting on others) sits above the groups: bring them into view first
186
+ await p.evaluate((k) => document.querySelector(`#hmList [data-po-list="@top"] > [data-po-id="${k}"]`).scrollIntoView({ block: 'center' }), hk[hk.length - 1]);
185
187
  const s = await p.locator(`#hmList [data-po-list="@top"] > [data-po-id="${hk[hk.length - 1]}"] .hv-gh`).boundingBox();
186
188
  const t = await p.locator(`#hmList [data-po-list="@top"] > [data-po-id="${hk[0]}"]`).boundingBox();
187
189
  const cdp = await ctx.newCDPSession(p);
@@ -102,6 +102,7 @@ const TICKETS = [{ key: 'IDPF-3387', title: 'Refactor the AppAuthService', statu
102
102
  return json(r, { ok: true });
103
103
  });
104
104
  if (where === 'home') await page.goto(BASE + '/premium.html?ini=self-serve-v2&ws=w1&board=w1&theme=' + theme);
105
+ if (where === 'home') await until(() => page.evaluate(() => document.body.dataset.hmTop === '1'), 20000); // the top of Home has read its two sources
105
106
  else {
106
107
  await page.goto(BASE + '/premium-board.html?theme=' + theme);
107
108
  await until(() => page.evaluate(() => document.querySelectorAll('#ibBody .ini2, #ibBody .bt-l').length > 0), 20000);
@@ -184,6 +185,7 @@ const TICKETS = [{ key: 'IDPF-3387', title: 'Refactor the AppAuthService', statu
184
185
  ok('S3 Undo puts the old name back', ru && ru.body.title === 'Brief support on the device limit', JSON.stringify(ru));
185
186
 
186
187
  /* S4 the status chip */
188
+ await until(() => p.evaluate(() => !document.body.dataset.hmTop || document.body.dataset.hmTop === '1'), 10000); // Undo's read again has settled
187
189
  await p.click('#czViewer [data-iv-edit="task-b1"]');
188
190
  await until(() => p.evaluate(() => !!document.querySelector('#czViewer .iv-ed')));
189
191
  await p.click('#czViewer .iv-ed .iv-edst');
@@ -0,0 +1,11 @@
1
+ {
2
+ "_comment": "home-your-move-waiting (batch 30, design A′ board HmA2): Waiting on others derived from records with its exit rule and nudges (lib/waiting-on.js), and the top of Home (pm/home-top.js). Node only; no browser suite (minimal testing).",
3
+ "modules": [
4
+ "waiting-on.test.js",
5
+ "home-top.test.js"
6
+ ],
7
+ "seconds": {
8
+ "waiting-on.test.js": 1,
9
+ "home-top.test.js": 1
10
+ }
11
+ }