Verifies that an approver can open the drawer, tick/untick PIBI
measures, save the selection, and that the POST to pibi-measures route
(which pushes measures_for_pibi_ordered to HubSpot) is intercepted with
the correct payload. Uses cy.intercept stubs for both GET and POST.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Approver opens the drawer at the Measures section, picks a measure from
the catalogue dropdown, submits, and the spec asserts the optimistic
chip, the POST payload + response shape, and that the approval log
surfaces the new approval row.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Replaces the read-only Domna InfoRow block with a DomnaEditor that lets
approvers set a free-text survey type and a survey date with optimistic
update + error surfacing, mirroring the halted-state editor. Non-approvers
keep the read-only InfoRow view. Cypress spec covers the approver flow
end-to-end with a reload-persistence check.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>