Add tests for successful form submission, an empty required field and a server error. Run Playwright Test and rerun affected cases after fixes.
- Open a practice project in Codex. The assistant will find available information and clarify what is missing.
- Follow the Playwright Test steps and check the result against the source.
You will have repeatable form tests that check the result. Playwright CLI is a separate agent tool; this card covers the test library. Keep the rest of your project's tests when removing practice files. Continue with Fix a project bug.
Paste into Codex:
Find the source information in the available project and conversation, and fill in the fields in brackets yourself. Ask me about unknown goals, preferences and sources; do not invent them.
Add Playwright Test for my practice form [URL], project [folder], following https://playwright.dev/docs/intro. Keep existing tests.
Test successful submission with the actual server result, an empty required field and a server error. Assert expected states without fixed delays.
Run the tests, show the report and explain failures. Rerun affected scenarios after the fix.