{"repo":"filiphric/cypress-plugin-api","free":true,"listed":false,"github":"https://github.com/filiphric/cypress-plugin-api","clone":"git clone https://github.com/filiphric/cypress-plugin-api.git","description":"Cypress plugin to show your API information in the Cypress UI runner","language":"TypeScript","stars":275,"topics":["api","cypress","cypress-io","testing"],"license":"ISC","category":"api-integrations-sdks","readme_excerpt":"Cypress plugin API Cypress plugin for effective API testing. Imagine Postman, but in Cypress. Prints out information about the API call in the Cypress App UI. Features - cy.api() command that shows information about the API call (URL, headers, response, and more) in the UI - all of the info can be viewed in a time-travel snapshots - simple table for viewing cookies - JSON data object and array folding - color coding of methods in UI view and in timeline - calculating size of the response - combine API calls with UI - hide sensitive headers and auth information - requestMode to add cy.api() features to cy.request() command - TypeScript support Installation Install this package: Import the plugin into your cypress/support/e2e.js file: Usage You can now use cy.api() command. This command works exactly like cy.request() but in addition to calling your API, it will print our information about the API call in your Cypress runner. Snapshot only mode If you want to combine your API calls with your UI test, you can now use snapshotOnly mode, that will hide the plugin UI view after command ends. You can access it within the timeline. snapshotOnly mode is set to false by default. To set up snapshotOnly mode, set it at runtime or in config (Cypress 15.10+ uses expose for plugin config): or add to your cypress.config.{js,ts} file: Hiding credentials By default, values are shown in the UI so you can see them when running locally. When you use cy.env() for secrets (or want to hide in CI), t","default_branch":null,"files":null,"tree":[],"storefront":"/r/filiphric","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/filiphric/cypress-plugin-api/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}