Skip to content

test(docs-capture): instrument 3 components with stable data-testid#325

Merged
rubenvdlinde merged 1 commit into
developmentfrom
feature/journeydoc-instrument-clients
May 6, 2026
Merged

test(docs-capture): instrument 3 components with stable data-testid#325
rubenvdlinde merged 1 commit into
developmentfrom
feature/journeydoc-instrument-clients

Conversation

@rubenvdlinde
Copy link
Copy Markdown
Contributor

Summary

Smoke test of /journeydoc-instrument from hydra PR #228. Adds 13 purely-additive data-testid attributes across the three components the pipelinq capture spec hits hardest.

What changed

File testids
src/views/clients/ClientCreateDialog.vue client-create-dialog, client-create-close
src/views/clients/ClientForm.vue client-form, client-{name,type,email,phone,website,address,notes}-{input,select}, client-form-save, client-form-cancel
src/components/ProspectCard.vue prospect-card-${kvkNumber} (unique per card), prospect-create-lead

Pure attribute additions — no styling, no behaviour change, no existing test broken.

Wiring

These hook the U2 add-client flow, U3 link contact-person flow, and U4 move-lead-through-pipeline flow in tests/e2e/docs-screenshots.spec.ts. The capture spec can now drive the full create-client form end-to-end and target a specific kanban card by KvK number.

Follow-up instrumentation

Remaining capture stories need their own component-instrument pass. Suggested next files for /journeydoc-instrument:

  • src/views/contactmomenten/ContactmomentForm.vue (U5 log contact moment)
  • src/views/widgets/MyLeadsWidget.vue (U6 capture request)
  • src/views/settings/PipelineManager.vue (A1 configure pipeline stages)
  • src/components/admin/QueueSettings.vue (A2 / A3 admin sections)

Note on inherited dev-branch CI red

Pipelinq's development branch is currently red on PHPCS / ESLint / Stylelint / npm-audit / npm-license — pre-existing, unrelated to this PR (see PR #324 conversation). This PR will inherit those failures. Recommend admin merge through them, with a separate fix-CI-quality-gates ticket on the team's docket.

Smoke test of /journeydoc-instrument from hydra (PR #228). Adds 13
purely-additive `data-testid` attributes across the three components
the pipelinq capture spec hits hardest.

`src/views/clients/ClientCreateDialog.vue`:
  - client-create-dialog (overlay container)
  - client-create-close (header X button)

`src/views/clients/ClientForm.vue`:
  - client-form (form root)
  - client-name-input, client-type-select, client-email-input,
    client-phone-input, client-website-input, client-address-input,
    client-notes-input
  - client-form-save, client-form-cancel

`src/components/ProspectCard.vue`:
  - prospect-card-${prospect.kvkNumber} (per-card unique target,
    enables drag tests on a specific card)
  - prospect-create-lead (primary action button)

Pure attribute additions — no styling, no behaviour change, no
existing test broken (pipelinq has no Vue unit-test runner).

Hooks the U2 add-client flow, U3 link contact-person flow, and U4
move-lead-through-pipeline flow in `tests/e2e/docs-screenshots.spec.ts`.
The remaining capture stories (U5 contact moments, U6 requests, U7
contacts sync, U8 duplicate resolution, A1-A3 admin) need their own
component-instrument pass — follow up via /journeydoc-instrument on:

  src/views/contactmomenten/ContactmomentForm.vue
  src/views/widgets/MyLeadsWidget.vue (or its rendering of requests)
  src/views/settings/PipelineManager.vue
  src/components/admin/QueueSettings.vue
@rubenvdlinde rubenvdlinde merged commit 6a468e1 into development May 6, 2026
10 of 15 checks passed
@rubenvdlinde rubenvdlinde deleted the feature/journeydoc-instrument-clients branch May 6, 2026 14:46
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 6, 2026

Quality Report — ConductionNL/pipelinq @ 69b832b

Check PHP Vue Security License Tests
lint
phpcs
phpmd
psalm
phpstan
phpmetrics
eslint
stylelint
composer ✅ 100/100
npm
PHPUnit ⏭️
Newman ⏭️
Playwright ⏭️

Quality workflow — 2026-05-06 14:47 UTC

Download the full PDF report from the workflow artifacts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant