connect-playwright-es
connect-playwright-es copied to clipboard
Support for non-unary methods
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!
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.
Thanks for the clarification, that makes sense. We can revisit this once there is progress on the playwright side.