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 Updated 3 repo stars

File contents

antongulin/pw-kit commit 6133ea5a25

Frequently asked questions

npx get-skill add antongulin/forms-and-dates