Skip to content

Commit 037dec2

Browse files
committed
Fix annotation
1 parent 84831ed commit 037dec2

3 files changed

Lines changed: 41 additions & 0 deletions

File tree

-38.5 KB
Loading
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
import { defineScreenshot } from '@/scripts/capture-screenshots'
2+
import type { Page } from 'playwright'
3+
4+
// Placeholder script for set-a-request-body.webp
5+
export default defineScreenshot({
6+
path: '/projects/docs_examples/branches/screenshots/components/example-handle-api-callback?mode=design&canvas-tool=select&canvas-width=800&selection=apis.Example%2520JSON%2520API&rightpanel=style',
7+
setup: async (page: Page) => {
8+
await page.waitForTimeout(500)
9+
await page.getByRole('tab', { name: 'Body' }).click()
10+
await page.getByRole('button', { name: 'Edit formula for Body' }).click()
11+
await page.locator('#formula-editor').click() // blur
12+
},
13+
annotations: [
14+
{
15+
type: 'badge',
16+
x: 465,
17+
y: 40,
18+
text: '1',
19+
},
20+
{
21+
type: 'badge',
22+
x: 549,
23+
y: 61,
24+
text: '2',
25+
},
26+
{
27+
type: 'badge',
28+
x: 458,
29+
y: 250,
30+
text: '3',
31+
},
32+
{
33+
type: 'box',
34+
x: 429,
35+
y: 63,
36+
width: 83,
37+
height: 14,
38+
rx: 4,
39+
},
40+
],
41+
})
-14.1 KB
Loading

0 commit comments

Comments
 (0)