connect-playwright-es icon indicating copy to clipboard operation
connect-playwright-es copied to clipboard

Support for non-unary methods

Open nicole0707 opened this issue 10 months ago • 2 comments

Currently, only unary method can be mocked, attempting to mock non-unary methods results in an error https://github.com/connectrpc/connect-playwright-es/blob/main/packages/connect-playwright/src/create-mock-router.ts#L89-L91. Just wondering if there are any plans to support non-unary methods as well. Thanks!

nicole0707 avatar Apr 03 '25 01:04 nicole0707

Unfortunately this isn't possible with Playwright at this point. See https://github.com/microsoft/playwright/issues/33564 and https://github.com/microsoft/playwright/issues/17199.

timostamm avatar Apr 03 '25 11:04 timostamm

Thanks for the clarification, that makes sense. We can revisit this once there is progress on the playwright side.

nicole0707 avatar Apr 10 '25 12:04 nicole0707