Skip to content

Commit 1e327d4

Browse files
authored
fix(bindings): unflake TestBrowserContextExposeFunction.shouldWork in java (#5532)
1 parent 600f731 commit 1e327d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/browserContext.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ export abstract class BrowserContext extends SdkObject {
162162
}
163163
const binding = new PageBinding(name, playwrightBinding, needsHandle, 'main');
164164
this._pageBindings.set(identifier, binding);
165-
this._doExposeBinding(binding);
165+
await this._doExposeBinding(binding);
166166
}
167167

168168
async grantPermissions(permissions: string[], origin?: string) {

0 commit comments

Comments
 (0)