Skip to main content
idapt
HomeCodeAI ModelsPricing
Sign inStart free
  • Home
  • Pricing
  • AI Models
  • Image models
  • Voice models
  • Video models
  • Rankings
  • New models
  • Model status
  • Multi-Model Chat
  • Voice Mode
  • Voice HUD
  • Web Search
  • Image Generation
  • Video Generation
  • Audio Generation
  • Transcription
  • Drive
  • Credentials
  • Sharing
  • Workspaces
  • Tasks
  • Memory
  • Agents
  • Subagents
  • Automations
  • Skills
  • idapt Code
  • Code Execution
  • Computers
  • Computer Use
  • Computer Assist · Soon
  • Containers
  • Cloud Computers
  • Local AI
  • AI Gateway
  • API & SDK
  • CLI
  • MCP
  • Tunnels
  • All features →
  • LLM cost calculator
  • Token counter
  • Context window checker
  • Can I run it
  • Model picker quiz
  • Savings finder
  • Video cost estimator
  • Text to speech cost
  • Transcription cost
  • API endpoint tester
  • All free tools →
  • Blog
  • Use cases
  • Comparisons
  • Best of
  • Skills
  • Learn
  • Changelog
  • Help center
  • FAQ
  • Privacy
  • Compare all models
  • Support
  • idapt Code
  • Developers
  • Quickstarts
  • API reference
  • API pricing
  • CLI
  • MCP
  • Downloads
  • Desktop
  • Badges and embeds
© idapt[email protected]TermsPrivacy PolicyLegal noticeReport content
X (Twitter)
All skills
Code

Write end-to-end tests

Playwright specs for the journeys that actually matter, that do not flake.

Fill it in

What to test.

What must never break.

Roles and test ids, never CSS paths.

Your prompt

Write end-to-end tests for [the site].

Journeys: [the journeys]
Explore it first and write down the actual flow, including the redirects, the
consent banner and the thing that only appears the second time. A spec written
from an assumed flow fails on run one for reasons that have nothing to do with the
product.

Select by role and accessible name, or by an explicit test id. Never by CSS path:
those break on every restyle, and a suite that fails for cosmetic reasons gets
turned off within a month.
Wait for STATE, never for time. A `waitForTimeout` is a flaky test with a delay,
and it is the single biggest source of intermittent CI failures.

Each spec sets up and cleans up its own data, so it can run alone and in parallel.
Use Write end-to-end testsOpens with everything above already filled in.

Why this works

A suite that fails for cosmetic reasons gets turned off within a month, so this selects by role and test id rather than CSS path. It waits for state rather than time, which is the single biggest source of intermittent CI failures.

More code skills

  • idapt Code
  • Fix a failing test

Use it now in a chat in 1 click

Use Write end-to-end tests
Fix a GitHub issue
  • Find security bugs
  • Ship a feature
  • Speed up slow code