We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 535bc29 commit 410de62Copy full SHA for 410de62
1 file changed
src/testUtils.js
@@ -109,6 +109,7 @@ let screenshotCount = 1
109
*
110
* @param {import('@playwright/test').Locator} locator - Locator to screenshot
111
* @param {{ outputDir: string }} testInfo - Playwright `testInfo` object (only `outputDir` used)
112
+ * @returns {Promise<void>}
113
*/
114
export const screenshot = async (locator, testInfo) => {
115
await locator.screenshot({ path: `${testInfo.outputDir}/${screenshotCount}.png`, fullPage: true })
0 commit comments