# Golden path: login → Documents tab → Add → fill form → Save.
# File picker is exercised via FilePicker tap; OS chooser is platform-dependent
# and is skipped in CI by seeding a stub document.
appId: com.tt.honeyDue
name: Upload document
tags:
  - smoke
  - document
---
- runFlow: 01-login.yaml
- tapOn:
    id: "TabBar.Documents"
- extendedWaitUntil:
    visible:
      id: "Document.AddButton"
    timeout: 10000
- tapOn:
    id: "Document.AddButton"
- tapOn:
    id: "DocumentForm.TitleField"
- inputText: "Home Inspection Report"
- tapOn:
    id: "DocumentForm.NotesField"
- inputText: "Annual inspection — Maestro smoke test."
- hideKeyboard
- tapOn:
    id: "DocumentForm.SaveButton"
- extendedWaitUntil:
    visible:
      id: "Document.List"
    timeout: 15000
- assertVisible: "Home Inspection Report"
