---
id: 16964
lang: en
title: "TestOps Teaches AI to Write Test Cases from Figma: Editing Drafts Is 30% Faster by Feel"
published_at: "2026-11-21 01:48:16"
source_name: "Habr AI"
source_url: "https://habr.com/ru/companies/testops_tms/articles/1108594/?utm_campaign=1108594&utm_source=habrahabr&utm_medium=rss"
canonical_url: "https://news.hamidun.com/en/news/16964"
categories: ["llm", "autonomous"]
publisher: "AI News by Jemal Hamidun (news.hamidun.com)"
---

# TestOps Teaches AI to Write Test Cases from Figma: Editing Drafts Is 30% Faster by Feel

> **Краткая суть (BLUF):** A test case is a step-by-step guide to checking that a feature works: what to open, what to click, and what should appear on screen. Writing them by hand takes a long time, and an unconfigured model produces smooth but vague scenarios like "check that it works." The TestOps team, which builds a TMS (test management system where test cases and run results are stored), went from this kind of AI slop to a working process. Testers feel that refining an AI draft takes about 30% less time than writing a case from scratch. This is a subjective estimate, not a measurement: the team only plans to measure the effect precisely. The story is useful less for its choice of model and more for how the team added context and checks step by step.  • The TMS's internal agent checks style, logic, and contradictions in cases • Planned: Figma via MCP, requirements from Tracker and chats • There are no mockups for backend and API, and the requirements are incomplete

A test case is a step-by-step guide to checking that a feature works in a product: what to open, what to click, and what should appear on screen. Writing them by hand takes a long time, while a neural network without configuration produces smooth but vague scenarios like "check that it works." The TestOps team, which makes a TMS (test management system, where cases and test run results are stored), moved from this AI slop to a working process. Testers feel that refining an AI draft takes about 30% less time than writing a case from scratch. This is a subjective assessment, not a measurement: the team is only planning to measure the effect precisely. The story is useful less for its choice of model and more for how the team added context and checks step by step.

## How the pipeline works today

It all starts with mockups in Figma. The built-in AI assistant turns them into use cases using a very simple prompt: "write use cases based on this mockup." Requirements are pulled from Yandex Wiki. From these two sources, Cursor generates test cases, still in a fairly raw form.

Next, the cases are uploaded to the TestOps TMS as drafts. The team chose this deliberately: editing a case by hand in the TMS is easier than explaining to an agent in a chat what exactly is wrong. For bulk edits there is the TMS's internal agent. It checks that the cases match the project's style, are logical, and do not contradict each other. After that, the cases go to review by other testers. People know the context better, see connections between components, and suggest scenarios the model would not come up with.

## The skill as a chisel: what goes into it

The author compares working with an agent to a sculptor's work: the statue is not "found" in the stone, but carved out by passing over the material many times with an increasingly precise tool. Here, that tool is context, namely a skill, a standard SKILL.md file with rules for the agent.

First: fighting duplicates. The model did not check on its own whether cases overlapped, so a separate check was added. The skill also requires pulling repeated actions into shared steps and reusing existing ones, which should reduce the number of corrections. Weak spot: the agent does not navigate the storage structure of cases well and confuses a test case with its run result. The team plans to refine the prompt here.

Second: terminology. The skill includes a file with project concepts that the model may interpret ambiguously.

Third: a style guide. Without it, the model tries to fit several independent checks into one case and writes overly general expected results. The rules are spelled out by section of the case:
- titles of similar cases must precisely convey the differences;
- for fields, use existing names and look for analogues first;
- steps are written in the infinitive: "Open," "Click";
- the expected result must be a concrete observable fact, for example "The form opens";
- a detailed step-by-step scenario must not be formatted as a checklist.

At the end, the model is required to reread the entire text and check its formatting. The guide can be extended as feedback comes in from people and the agent. In effect, the process has gained a debugging mechanism: an error in the output becomes a new rule.

Plans also include cross-checking against the documentation for the whole application, so the agent can match a new feature against existing functionality. In addition, the skill should collect requirements from Yandex Wiki, Yandex Tracker, chats, and Figma (eventually via an MCP server, that is, with direct access to the mockups).

## Where it all runs into people

The hardest problem is the completeness of requirements. The described approach works for UI features that have mockups. For backend, integrations, and APIs, full requirements usually do not exist, and tests are written from the code of an already finished feature. Even for UI, part of the knowledge lives in threads, calls, and private chats with the customer. Technically, it is possible to gather all the sources into one skill. Guaranteeing that what is needed is actually written down there is not possible: some requirements remain in people's heads.

This leads to a practical conclusion for anyone building similar processes. The tools are plentiful: n8n, for example, lets you assemble an agent from nodes on a canvas. But the stability of the chain is determined by the human processes around it. If agreements are not recorded in writing, no skill will restore them.

The team's next step is to generate autotests directly from reviewed test cases. A skill for this has already been written. For the happy path (the main successful scenario), the cases are meant to be written more loosely: the key is to convey the meaning of the check, and at review to look at test design and anything that would prevent writing an e2e test from the case. For now, this is a plan, not working practice.

What you can take for yourself: keep drafts in the TMS, not in a chat; turn every reviewer comment into a rule in the skill; agree in advance where requirements are recorded. And measure the effect, while the "30% faster" assessment remains a feeling.

---
- **Первоисточник:** [Habr AI](https://habr.com/ru/companies/testops_tms/articles/1108594/?utm_campaign=1108594&utm_source=habrahabr&utm_medium=rss)
- **Каноническая ссылка:** https://news.hamidun.com/en/news/16964
- **Экосистема автора:** [Бесплатный интенсив по вайбкодингу — предзапись в Нике](https://t.me/vibecodeguidebot?start=agent_intensive_news_md) · [Nomad AI](https://nomadnet.ai) · [Telegram @jemal_hamidun](https://t.me/jemal_hamidun)
