Skip to content

Commit

Permalink
fix android test types
Browse files Browse the repository at this point in the history
  • Loading branch information
JoelEinbinder committed Jan 12, 2021
1 parent ee8839d commit e61f97c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/android/browser.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ if (process.env.PW_ANDROID_TESTS) {
});
it('should be able to send CDP messages', async ({ device }) => {
const context = await device.launchBrowser();
const client = await context.newCDPSession(window);
const [page] = context.pages();
const client = await context.newCDPSession(page);
await client.send('Runtime.enable');
const evalResponse = await client.send('Runtime.evaluate', {expression: '1 + 2', returnByValue: true});
expect(evalResponse.result.value).toBe(3);
Expand Down

0 comments on commit e61f97c

Please sign in to comment.