The spec that runs itself
Nestled's offer journey - offered, accepted, invoiced - written as a Gherkin feature and executed against the real product. Watch each step turn yellow while it runs and green when it passes.
The feature
This exact file runs in our deploy pipeline - a release that can't make, accept, and invoice an offer never ships.
Feature: Offer lifecycle - from offer to invoice
Background:
Given a verified family "Marisol Vega" with child "Ada" on the waitlist
And a verified provider "Sunny Days Daycare"
Scenario: The family receives an offer with real terms
When the provider makes an offer of 1250 dollars per month starting on "2026-11-01"
Then the family sees the offer with rate "$1,250/month" and start date "2026-11-01"
And the family receives a "has a spot for" email
Scenario: The family accepts the offer
Given the provider has made an offer of 1250 dollars per month
When the family accepts the offer
Then the family's status is "Placed - congratulations!"
And the provider receives an "accepted your offer" email
Scenario: The finder's fee is invoiced automatically
Given the family has accepted an offer of 1250 dollars per month
When the background processor delivers the finder's fee invoice
Then the provider receives an invoice email for "$312.50"
And the provider dashboard shows the finder's fee invoice as sent