Define mock endpoints for each scenario you need to test - successful responses, errors, and edge cases.
Point your Cypress, Playwright, or other E2E tests at your mock API. Get the same results every time.
Your tests run fast and reliably. No more flaky tests due to backend issues or changing data.
No more flaky tests. Mock APIs return the same data every time.
Mock APIs respond instantly. Your CI/CD pipeline runs faster.
Easily simulate errors, slow responses, and unusual data scenarios.
Copy and paste these examples to get started quickly
describe('User Management', () => {
it('should display user list', () => {
cy.visit('/users');
cy.get('[data-testid="user-card"]').should('have.length.gt', 0);
cy.get('[data-testid="user-name"]').first().should('be.visible');
});
});import { test, expect } from '@playwright/test';
test('user list loads correctly', async ({ page }) => {
await page.goto('/users');
const userCards = page.locator('[data-testid="user-card"]');
await expect(userCards).toHaveCount(10);
});