From 80aa3375b2b43f427c829db9a4eb8990d8f0805b Mon Sep 17 00:00:00 2001 From: R Midhun Suresh <hi@midhun.dev> Date: Wed, 29 Nov 2023 15:11:32 +0530 Subject: [PATCH] Pass argument properly in client --- playwright/pages/client/index.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/playwright/pages/client/index.ts b/playwright/pages/client/index.ts index 68ac740f31..e20df923f7 100644 --- a/playwright/pages/client/index.ts +++ b/playwright/pages/client/index.ts @@ -116,9 +116,12 @@ export class ElementClientPage { */ async inviteUser(roomId: string, userId: string): Promise<{}> { const handle = await this.getClientHandle(); - const res = await handle.evaluate(async (client, userId) => { - return await client.invite(roomId, userId); - }, userId); + const res = await handle.evaluate( + async (client, { roomId, userId }) => { + return await client.invite(roomId, userId); + }, + { roomId, userId }, + ); console.log(`sent invite in ${roomId} for ${userId}`); return res; } -- GitLab