We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi and thanks for the nice plugin! I wanted to share an idea of validating intercepts with the openapi schema.
Kind of like:
beforeEach(() => { cy.intercept('*', req => { req.continue(res => { cy.task('validateSwaggerSchema', { file: './../swagger.json', endpoint: req.url, method: req.method, statusCode: res.statusCode, responseSchema: res.body, verbose: true // optional, default: false }).should('equal', null); }); }); });
This example does not work because of cypress-io/cypress#7667
This would ensure fixtures (e.g. cy.intercept('GET', '/api/identity', { fixture: 'identity/sys-admin.json'})) are still adhering to the schema.
cy.intercept('GET', '/api/identity', { fixture: 'identity/sys-admin.json'})
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi and thanks for the nice plugin!
I wanted to share an idea of validating intercepts with the openapi schema.
Kind of like:
This would ensure fixtures (e.g.
cy.intercept('GET', '/api/identity', { fixture: 'identity/sys-admin.json'})
) are still adhering to the schema.The text was updated successfully, but these errors were encountered: