Forms And Dates

Patterns for interacting with form controls in Playwright + TypeScript — typeDateValue for date pickers (never fill or pressSequentially), relative-year variables instead of hardcoded dates, idempotent toggleSwitch, filterSingleSelect for dropdowns, save method variants (save/saveAndClose/saveAndConfirm), and required-field validation. Use when writing form interactions, working with date pickers, dropdowns, switches, checkboxes, when tests have flaky date input behavior, or when reviewing form-related test code.

antongulin 6133ea5 2 files · 13.4 KB Updated

File contents

antongulin/pw-kit/tree/main/skills/forms-and-dates commit 6133ea5a25

Frequently asked questions

npx skillmds@latest add antongulin/forms-and-dates