[object Object]

← back to Animals

snapshot before restart: preserve in-flight work (auto-saved by /restart pre-reboot)

39cd13fb2a9d2f38279f1a029090e327e53347ae · 2026-08-17 06:52:34 -0700 · Steve

Files touched

Diff

commit 39cd13fb2a9d2f38279f1a029090e327e53347ae
Author: Steve <steve@designerwallcoverings.com>
Date:   Mon Aug 17 06:52:34 2026 -0700

    snapshot before restart: preserve in-flight work (auto-saved by /restart pre-reboot)
---
 _holive.mjs | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/_holive.mjs b/_holive.mjs
new file mode 100644
index 0000000..4d424fe
--- /dev/null
+++ b/_holive.mjs
@@ -0,0 +1,16 @@
+import { chromium } from 'playwright';
+const b = await chromium.launch({ channel:'chrome', headless:true });
+const ctx = await b.newContext({ viewport:{width:1440,height:900}, httpCredentials:{username:'admin',password:'DW2024!'} });
+const p = await ctx.newPage();
+const B='https://marketing.designerwallcoverings.com'; const out={};
+await p.goto(B+'/#quickpost',{waitUntil:'domcontentloaded',timeout:60000}); await p.waitForTimeout(2500);
+out.platforms = await p.$$eval('#qp-buttons .qp-btn[data-qp]', e=>e.map(x=>x.getAttribute('data-qp')));
+out.hasLive = await p.$('#qp-buttons .qp-live') ? true : false;
+await p.fill('#qp-media','https://example.com/x.jpg'); await p.fill('#qp-caption','live handoff prod check');
+await p.click('#qp-buttons .qp-live'); await p.waitForTimeout(3500);
+out.hash = await p.evaluate(()=>location.hash);
+out.manualActive = await p.$eval('.cmp2-tab[data-tab="manual"]', e=>e.classList.contains('active')).catch(()=>false);
+out.prefilledCaption = await p.$eval('[data-pane="manual"] #cmp-caption', e=>e.value).catch(()=>null);
+out.preselected = await p.$$eval('[data-pane="manual"] #cmp-targets input[data-ch]:checked', e=>e.map(x=>x.getAttribute('data-ch'))).catch(()=>[]);
+await b.close();
+console.log(JSON.stringify(out));

← edce617 auto-save: 2026-08-04T18:35:48 (1 files) — tesla-auth-check.  ·  back to Animals  ·  (newest)