Skip to content

Commit 410de62

Browse files
Update src/testUtils.js
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 535bc29 commit 410de62

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/testUtils.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ let screenshotCount = 1
109109
*
110110
* @param {import('@playwright/test').Locator} locator - Locator to screenshot
111111
* @param {{ outputDir: string }} testInfo - Playwright `testInfo` object (only `outputDir` used)
112+
* @returns {Promise<void>}
112113
*/
113114
export const screenshot = async (locator, testInfo) => {
114115
await locator.screenshot({ path: `${testInfo.outputDir}/${screenshotCount}.png`, fullPage: true })

0 commit comments

Comments
 (0)