← Docs

Recipe: Cypress test writer

Generate resilient Cypress E2E specs from natural-language flows. Meridian reads your page structure and emits data-cy–anchored assertions with automatic retry-ability.

describe('Checkout flow', () => {
  it('completes a purchase', () => {
    cy.visit('/pricing');
    cy.get('[data-cy="plan-pro"]').click();
    cy.get('[data-cy="checkout-email"]')
      .type('buyer@example.com');
    cy.get('[data-cy="checkout-submit"]').click();
    cy.url().should('include', '/success');
    cy.get('[data-cy="receipt-id"]')
      .should('be.visible');
  });
});

data-cy anchors

Meridian scans your JSX and suggests stable data-cy attributes so selectors survive refactors.

Auto-retry

Every generated assertion wraps Cypress built-in retry-ability. Flaky tests drop to near zero.

CI-ready

Output includes cypress.config.ts snippets with baseUrl, video off, and defaultCommandTimeout tuned for Vercel preview deploys.

Natural language

Describe flows in plain English. Meridian maps verbs to Cypress commands and nouns to DOM targets.