Skip to content

Commit 06ac3a2

Browse files
committed
More
1 parent 34de74f commit 06ac3a2

4 files changed

Lines changed: 71 additions & 0 deletions

File tree

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 set-up-an-event.webp
5+
export default defineScreenshot({
6+
path: '/projects/docs_examples/branches/screenshots/components/screenshot-card-container?mode=design&canvas-tool=select&canvas-width=800&selection=events.0&rightpanel=style',
7+
description: 'Set up an event',
8+
setup: async (page: Page) => {
9+
await page.waitForTimeout(500)
10+
await page.getByRole('button', { name: 'onClick' }).click()
11+
await page.waitForTimeout(200)
12+
},
13+
annotations: [
14+
{
15+
type: 'text',
16+
x: 546,
17+
y: 56,
18+
text: '1. View data panel'
19+
},
20+
{
21+
type: 'badge',
22+
x: 761,
23+
y: 160,
24+
text: '2'
25+
},
26+
{
27+
type: 'badge',
28+
x: 734,
29+
y: 176,
30+
text: '3'
31+
},
32+
{
33+
type: 'badge',
34+
x: 654,
35+
y: 223,
36+
text: '4'
37+
}
38+
],
39+
})
-70.1 KB
Loading
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
import { defineScreenshot } from '@/scripts/capture-screenshots'
2+
import type { Page } from 'playwright'
3+
4+
// Placeholder script for trigger-an-event.webp
5+
// TODO: Review path, setup, and annotations to regenerate
6+
export default defineScreenshot({
7+
path: '/projects/docs_examples/branches/screenshots/components/screenshot-card-container?mode=design&canvas-tool=select&canvas-width=800&selection=nodes.root.events.click.actions.0&rightpanel=events',
8+
description: 'Trigger an event',
9+
setup: async (page: Page) => {
10+
await page.waitForTimeout(300)
11+
},
12+
annotations: [
13+
{
14+
type: 'badge',
15+
x: 621,
16+
y: 74,
17+
text: '1',
18+
},
19+
{
20+
type: 'badge',
21+
x: 518,
22+
y: 98,
23+
text: '2',
24+
},
25+
{
26+
type: 'badge',
27+
x: 678,
28+
y: 115,
29+
text: '3',
30+
},
31+
],
32+
})
-12.5 KB
Loading

0 commit comments

Comments
 (0)