Skip to content

Commit 65b00c3

Browse files
committed
API callbacks
1 parent 591fc06 commit 65b00c3

3 files changed

Lines changed: 39 additions & 0 deletions

File tree

-62.2 KB
Loading
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
import { defineScreenshot } from '@/scripts/capture-screenshots'
2+
import type { Page } from 'playwright'
3+
4+
// Placeholder script for handle-api-callbacks.webp
5+
export default defineScreenshot({
6+
path: '/projects/docs_examples/branches/screenshots/components/example-call-an-api?mode=design&canvas-tool=select&canvas-width=800&selection=apis.Weather%2520API&rightpanel=style',
7+
setup: async (page: Page) => {
8+
await page.waitForTimeout(500)
9+
await page.getByRole('tab', { name: 'Events' }).click()
10+
},
11+
annotations: [
12+
{
13+
type: 'box',
14+
x: 662,
15+
y: 100,
16+
width: 22,
17+
height: 61,
18+
rx: 4
19+
},
20+
{
21+
type: 'badge',
22+
x: 405,
23+
y: 101,
24+
text: '1'
25+
},
26+
{
27+
type: 'badge',
28+
x: 405,
29+
y: 122,
30+
text: '2'
31+
},
32+
{
33+
type: 'badge',
34+
x: 405,
35+
y: 143,
36+
text: '3'
37+
}
38+
],
39+
})
-14.9 KB
Loading

0 commit comments

Comments
 (0)