Skip to content

Commit 02d5688

Browse files
committed
Configure file sync for Playwright components
- Playwright Page PDF - Playwright Take Screenshot
1 parent 4bb9102 commit 02d5688

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

components/playwright/actions/page-pdf/page-pdf.mjs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "playwright-page-pdf",
55
name: "Page PDF",
66
description: "Generates a pdf of the page and store it on /tmp directory. [See the documentation](https://playwright.dev/docs/api/class-page#page-pdf)",
7-
version: "0.0.4",
7+
version: "0.0.5",
88
annotations: {
99
destructiveHint: false,
1010
openWorldHint: true,
@@ -42,6 +42,11 @@ export default {
4242
description: "The height of viewport. default: `720`",
4343
optional: true,
4444
},
45+
syncDir: {
46+
type: "dir",
47+
accessMode: "write",
48+
sync: true,
49+
},
4550
},
4651
async run({ $ }) {
4752
const browser = await this.playwright.launch();

components/playwright/actions/take-screenshot/take-screenshot.mjs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "playwright-take-screenshot",
55
name: "Take Screenshot",
66
description: "Store a new screenshot file on /tmp directory. [See the documentation](https://playwright.dev/docs/screenshots)",
7-
version: "0.0.4",
7+
version: "0.0.5",
88
annotations: {
99
destructiveHint: false,
1010
openWorldHint: true,
@@ -53,6 +53,11 @@ export default {
5353
description: "The height of viewport. default: `720`",
5454
optional: true,
5555
},
56+
syncDir: {
57+
type: "dir",
58+
accessMode: "write",
59+
sync: true,
60+
},
5661
},
5762
async run({ $ }) {
5863
const browser = await this.playwright.launch();

0 commit comments

Comments
 (0)