Skip to content

Playwright Support #300

@TalDebby

Description

@TalDebby

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions