The post has been translated automatically. Original language: Russian
Imagine the studio's website: a neat grid, animation, and a "Discuss Project" form. The AI helped to quickly assemble the interface, the button works, and "Thank you!" appears. But the application might not have gone anywhere. To understand whether such a site is ready to launch, it is useful to go through one user scenario to the end — including moments that rarely appear on a beautiful screenshot.
Start with the promise that the button makes
For the application form, you should first record the expected result: the visitor leaves a contact, the server accepts the data, the application is saved, and the responsible employee can open it. The success message must match this result. If the interface shows thanks immediately after the click, it only confirms its own animation.
The practical test is simple: send a test application with a recognizable text and find it on the receiving side. If the request is saved, but the notification is not received by the manager, this is a separate failure. It is useful to distinguish between these states both in the system and in messages to the user.
Ask the form to survive a setback
Now we will send an empty form, enter an incorrect email, and simulate a server failure. Specific reactions are important: the error is clearly explained next to the field, the typed project description is saved, and a second attempt is available. Instead of "Something went wrong," a person needs the opportunity to continue the action.
A separate scenario is a slow network. Is there a clear sending status? What happens when you click again? Can the user understand if the request has been accepted or if the submission should be repeated? The decision to protect against duplicates should also be checked on the server: one temporarily blocked button is not enough.
The same scenario is without a mouse and on a phone.
Go through the form with the Tab key. The focus should be noticeable, the order of transitions should be clear, and sending should be accessible from the keyboard. The "Mail" signature should remain clear after the start of the input: the disappearing placeholder does not replace a full-fledged signature. The error should not be indicated only by a red border.
On your phone, check the form with the on-screen keyboard open. Are the active field and the result of sending visible? Has the button moved off the screen? Then substitute a long company name and several paragraphs of text instead of short demo data. Adaptability is best assessed by the behavior of the content when changing the width, rather than by matching a single ready-made layout.
Check the boundary between the interface and the data
Checking the mail format in the browser helps the user, but it does not replace the server verification of input data. You should also not confuse the correctness of the input with access rights. If applications are opened in the cabinet, it is checked separately who has the right to read and modify them.
For verification, use a test environment and fictitious contacts. Make sure that the new build accesses the correct server, and that personal data from the tests does not end up in the work mailing lists. An empty list of applications, a download error, and lack of access should have different, understandable states.
Give the AI a testable task
AI can be assigned to prepare a plan of checks and browser tests. In Playwright Test Agents, separate roles are provided for this: planner makes a plan, generator turns it into tests, healer helps to disassemble and fix test failures. This is a useful basis for the process if the expected behavior of the form is determined in advance.
For example: "If the server fails, show an error, save the request text and allow resending." The test checks the visible result, and the screenshot helps you notice overlapped fields or a cropped message. The verification of receipt of the application on the server must be added separately.: the screenshot doesn't prove it.
After automatically correcting the test, it is important to see if it has retained the original requirement. If, instead of correcting the error, the check skipped the problematic step, the green report does not indicate that the form is ready. It is such scenarios that turn the generated interface into a working tool: the visitor understands the result, and the company actually receives the request.
Sources
Playwright Test Agents: planner, generator, healer:
W3C WAI: Easy Checks — forms, keyboard access, labels, errors:
MDN: Input validation — browser and server checks:
Google: Responsive web design basics:
Представьте сайт студии: аккуратная сетка, анимация, форма «Обсудить проект». ИИ помог быстро собрать интерфейс, кнопка работает, появляется «Спасибо!». Но заявка могла никуда не отправиться. Чтобы понять, готов ли такой сайт к запуску, полезно пройти один пользовательский сценарий до конца — включая моменты, которые редко попадают на красивый скриншот.
Начать с обещания, которое даёт кнопка
Для формы заявки сначала стоит записать ожидаемый результат: посетитель оставляет контакт, сервер принимает данные, заявка сохраняется, а ответственный сотрудник может её открыть. Сообщение об успехе должно соответствовать этому результату. Если интерфейс показывает благодарность сразу после клика, он подтверждает только собственную анимацию.
Практическая проверка проста: отправить тестовую заявку с узнаваемым текстом и найти её на принимающей стороне. Если заявка сохраняется, но уведомление менеджеру не приходит, это отдельный сбой. Полезно различать эти состояния и в системе, и в сообщениях пользователю.
Попросить форму пережить неудачу
Теперь отправим пустую форму, введём некорректную почту и смоделируем отказ сервера. Важны конкретные реакции: рядом с полем понятно объясняется ошибка, набранное описание проекта сохраняется, повторная попытка доступна. Вместо «Что-то пошло не так» человеку нужна возможность продолжить действие.
Отдельный сценарий — медленная сеть. Есть ли понятное состояние отправки? Что произойдёт при повторном клике? Может ли пользователь понять, принята заявка или отправку стоит повторить? Решение о защите от дублей нужно проверить и на сервере: одной временно заблокированной кнопки недостаточно.
Тот же сценарий — без мыши и на телефоне
Пройдите форму клавишей Tab. Фокус должен быть заметен, порядок переходов — понятен, отправка — доступна с клавиатуры. Подпись «Почта» должна оставаться понятной после начала ввода: исчезающий placeholder не заменяет полноценную подпись. Ошибка не должна обозначаться только красной рамкой.
На телефоне проверяйте форму с открытой экранной клавиатурой. Видны ли активное поле и результат отправки? Не уехала ли кнопка за границы экрана? Затем подставьте длинное название компании и несколько абзацев текста вместо коротких демонстрационных данных. Адаптивность лучше оценивать по поведению содержимого при изменении ширины, а не по совпадению с одним готовым макетом.
Проверить границу между интерфейсом и данными
Проверка формата почты в браузере помогает пользователю, но не заменяет серверную проверку входных данных. Не стоит также путать корректность ввода с правами доступа. Если заявки открываются в кабинете, отдельно проверяется, кто вправе их читать и изменять.
Для проверки используйте тестовое окружение и вымышленные контакты. Убедитесь, что новая сборка обращается к нужному серверу, а персональные данные из тестов не попадают в рабочие рассылки. Пустой список заявок, ошибка загрузки и отсутствие доступа должны иметь разные, понятные состояния.
Дать ИИ проверяемую задачу
ИИ можно поручить подготовку плана проверок и браузерных тестов. В Playwright Test Agents для этого предусмотрены отдельные роли: planner составляет план, generator превращает его в тесты, healer помогает разбирать и исправлять сбои тестов. Это полезная основа процесса, если заранее определить ожидаемое поведение формы.
Например: «При отказе сервера показать ошибку, сохранить текст заявки и разрешить повторную отправку». Тест проверяет видимый результат, а скриншот помогает заметить перекрытые поля или обрезанное сообщение. Проверку получения заявки на сервере нужно добавить отдельно: скриншот её не доказывает.
После автоматического исправления теста важно посмотреть, сохранил ли он исходное требование. Если вместо устранения ошибки проверка стала пропускать проблемный шаг, зелёный отчёт ничего не говорит о готовности формы. Именно такие сценарии превращают сгенерированный интерфейс в работающий инструмент: посетитель понимает результат, а компания действительно получает заявку.
Источники
Playwright Test Agents: planner, generator, healer:
W3C WAI: Easy Checks — forms, keyboard access, labels, errors:
MDN: Input validation — browser and server checks:
Google: Responsive web design basics:
Comments 0
Newest Popular