diff --git a/src/browser/pw-tools-core.ts b/src/browser/pw-tools-core.ts index 2218e0a19..89d4a8b60 100644 --- a/src/browser/pw-tools-core.ts +++ b/src/browser/pw-tools-core.ts @@ -16,7 +16,8 @@ function resolveLocator( page: LocatorPage, opts: { ref?: string; selector?: string }, ) { - const selector = typeof opts.selector === "string" ? opts.selector.trim() : ""; + const selector = + typeof opts.selector === "string" ? opts.selector.trim() : ""; if (selector) return page.locator(selector); const ref = typeof opts.ref === "string" ? opts.ref.trim() : ""; if (ref) return refLocator(page, ref);