Are you using OpenAPI 2, 3.0.X, or 3.1.0?
I am using both OpenAPI 2 and OpenAPI 3.0.X.
Would this solve a problem or make something easier?Easy Integration: This feature would simplify integration for developers using Playwright by enabling seamless integration with their testing projects.
What would you like to happen?
I propose adding a Playwright test runner package that functions similarly to jest-openapi and chai-openapi-response-validator. The key addition would be an assertion method expect(res).toSatisfyApiSpec() for Playwright's native expect and API request mechanisms. This requires modifications to the openapi-validator package in addition to adding the new package.
Describe alternatives you've considered
Currently, I have integrated chai-openapi-response-validator with Playwright, but this approach require changes in my code, shifting from Playwright's built-in request methods to Axios.
Additional context or screenshots
Are you going to resolve the issue?
Yes, I plan to contribute to the project in the near future.
Are you using OpenAPI 2, 3.0.X, or 3.1.0? I am using both OpenAPI 2 and OpenAPI 3.0.X.
Would this solve a problem or make something easier? Easy Integration: This feature would simplify integration for developers using Playwright by enabling seamless integration with their testing projects.
What would you like to happen? I propose adding a Playwright test runner package that functions similarly to
jest-openapi
andchai-openapi-response-validator
. The key addition would be an assertion methodexpect(res).toSatisfyApiSpec()
for Playwright's native expect and API request mechanisms. This requires modifications to theopenapi-validator
package in addition to adding the new package.Describe alternatives you've considered Currently, I have integrated
chai-openapi-response-validator
with Playwright, but this approach require changes in my code, shifting from Playwright's built-in request methods to Axios.Additional context or screenshots
Are you going to resolve the issue? Yes, I plan to contribute to the project in the near future.