(
page: Page,
shot: {framed: boolean; style?: string},
)
| 56 | }; |
| 57 | |
| 58 | const applyDocShotStyle = async ( |
| 59 | page: Page, |
| 60 | shot: {framed: boolean; style?: string}, |
| 61 | ): Promise<void> => { |
| 62 | if (shot.style == null) { |
| 63 | return; |
| 64 | } |
| 65 | if (shot.framed) { |
| 66 | const frame = await getFirstFrame(page); |
| 67 | await frame?.addStyleTag({content: shot.style}); |
| 68 | } else { |
| 69 | await page.addStyleTag({content: shot.style}); |
| 70 | } |
| 71 | }; |
| 72 | |
| 73 | const performDocShotClicks = async ( |
| 74 | page: Page, |
no test coverage detected
searching dependent graphs…