Test the limits of the guest steppers
Medium50 pts~2 min
- Steppers
- Boundary values
- Disabled state
- Loops
Practice app · StayNest
A home-sharing marketplace: destination autocomplete, a two-month date-range calendar, a guests popover with steppers, results with a list/map toggle and a filters modal, listing pages with a photo gallery, a reserve card with a price breakdown, host profiles in a new tab, a wishlist that needs sign-in and a message-host form.
Your starter code already declares TEST_URL — never hardcode a host.
Objective
Drive the guests popover to its limits: at least one adult, no more than 16 adults and children together, and at most 5 infants, and verify the steppers and the summary label.
Your task
- 1Open TEST_URL and click Who (#guests-button) to open #guests-popover.
- 2Assert #adults-count is 1 and Decrease adults (#adults-decrease) is disabled.
- 3Click Increase children (#children-increase) twice.
- 4Click Increase adults (#adults-increase) until it becomes disabled; assert #adults-count is 14 and the note #guests-limit-note is shown.
- 5Click Increase infants (#infants-increase) until it becomes disabled and assert #infants-count is 5.
- 6Leave the popover open and assert #guests-summary reads “16 guests, 5 infants”.
Acceptance criteria
- Adults stop at 14 because adults and children together are capped at 16.
- Children are 2 and infants stop at 5.
- The limit note is shown and the summary reads “16 guests, 5 infants”.
- The test makes at least three assertions.
Fixtures
- guest@staynest.test
- Password
- Nest@2026
- Account name
- Jordan Lee
- Today
- Tuesday, 10 November 2026 (earlier days are disabled)
- Destinations
- Goa · Lisbon · Kyoto · Banff · Cape Town
- Service fee
- 14% of the nightly subtotal
- Guest limits
- Adults 1–16 (adults + children ≤ 16) · infants up to 5 · pets up to 5
- Host verification code
- Shown only on the host profile tab
Playwright · Playwright Challenges · StayNest