Automation lab Aú Forms & Validation (FORMS_VALIDATION)
Lab 013: Date range validation
Practice date range validation in a real web app context as part of the Forms & Validation module.
basic
basic
Objectives
Use for test scripts- Understand the purpose and business flow of date range validation.
- Design stable locators for key UI elements.
- Automate user interactions and verify the resulting UI state.
Sandbox
Forms & Validation • web-ui • basic • active
Date range validation
Practice date range validation: enforce start date before end date with immediate feedback.
Reading and understanding requirements
Choosing stable locators
Designing assertions based on business rules
Learning objectives
- Validate start/end ordering with strict comparisons.
- Surface inline errors tied to fields.
- Cover edge cases (same day, gaps, missing values).
Steps
- Pick start and end dates.
- Assert error when end is before start.
- Assert success when range is valid.
- Verify quick-fill buttons set valid/invalid ranges.
Expected results
- Error appears when end date precedes start date.
- Success state appears when both dates are present and ordered.
- Status text reflects current validation.
Practice sandbox
Validate a booking range.
Waiting for input
Assertions to practice
- Start required; end required.
- End date must be strictly after start.
- Quick-fill buttons toggle valid/invalid states.