Skip to main content

Catalog Chore Editor Create Bounty

EPIC: catalog
Chore Catalog
STORY: chore_editor
As a parent, I can create and edit chores so that my household has work to do.
AC: create_bounty
A parent can create a bounty chore with a token value, and Save pops the route.

open chore editor (create mode)

Expect:
  • ChoreEditorPage renders in create mode
  • title is "New chore" for create mode
  • tokenValue field is hidden for expectation (default kind)
Events:
  • [ANALYTIC] [page]: ChoreEditorRoute
  • ChoreEditorStarted
  • ChoreEditorDataLoaded

switch to bounty — token value field appears

User Actions:
  • Tapped: widget with text "Bounty"
Expect:
  • tokenValue field appears when kind == bounty
Events:
  • ChoreEditorKindChanged

fill name and token value then save

User Actions:
  • Entered text: Rake the leaves
  • Entered text: 5
  • Tapped: widget with key [<'ChoreEditorPage.saveButton'>]
Expect:
  • ChoreEditorPage pops on saveSuccess
Events:
  • ChoreEditorNameChanged
  • ChoreEditorTokenValueChanged
  • ChoreEditorSaved