Skip to content

Commit fca3df6

Browse files
committed
response parsing
1 parent c3cc865 commit fca3df6

3 files changed

Lines changed: 33 additions & 0 deletions

File tree

-67.8 KB
Loading
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
import { defineScreenshot } from '@/scripts/capture-screenshots'
2+
import type { Page } from 'playwright'
3+
4+
// Placeholder script for parse-response.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: 'Advanced' }).click()
10+
},
11+
annotations: [
12+
{
13+
type: 'box',
14+
x: 584,
15+
y: 84,
16+
width: 43,
17+
height: 13,
18+
rx: 4
19+
},
20+
{
21+
type: 'badge',
22+
x: 631,
23+
y: 80,
24+
text: '1'
25+
},
26+
{
27+
type: 'badge',
28+
x: 406,
29+
y: 300,
30+
text: '2'
31+
}
32+
],
33+
})
-15.8 KB
Loading

0 commit comments

Comments
 (0)