Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions docs/archive/blue-throated-bee-eater-pet/feed-capture.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { chromium } from 'playwright'
const browser = await chromium.launch({ headless: true })
const page = await browser.newPage({ viewport: { width: 1440, height: 900 } })
await page.goto('http://127.0.0.1:3092/', { waitUntil: 'load', timeout: 60000 })
await page.waitForTimeout(5000)
// trigger a feed via the pet API, then capture the feedback bubble
await page.evaluate(async () => {
await fetch('/api/pet/interact', { method: 'POST', headers: { 'content-type': 'application/json' }, body: JSON.stringify({ kind: 'feed' }) })
})
await page.waitForTimeout(1200)
await page.screenshot({ path: 'docs/archive/blue-throated-bee-eater-pet/gui-feed-bubble.png' })
await browser.close()
console.log('DONE')
Loading
Loading