Safety net: Flow — version pinning
Flow — version pinning integration tests
Integration tests covering version pinning wiring, edit page version warning, and duplicate page definition pre-fill for flows across all three namespaces.
Note: version_alert_spec.js covers the alert component in isolation. These integration tests prove the mutation and wiring in the context of real namespace and consumer ID resolution.
Test cases (11 tests)
Show page (3 tests):
- Project namespace: shows pinned version and version alert
- Group namespace: shows group pinned version and version alert
- Explore namespace: shows latest version and no version alert
Edit page (2 tests):
- Warns that only the latest version is editable when pinned version differs
- Does not warn when already viewing the latest version
Duplicate page (3 tests):
- Pre-fills definition from the active version (pinned) at project scope
- Pre-fills definition from group pinned version on group namespace
- Pre-fills definition from latest when on explore namespace
Version alert + mutation (3 tests):
- Clicking "View latest version" switches displayed content to latest version
- Clicking "Update" fires mutation with correct consumer ID and version prefix
- Successful update shows toast and resets to pinned view
Location
ee/spec/frontend/ai/catalog/integration/flow_version_pinning_integration_spec.js
MR
Dependencies
Blocked by: Safety net: Integration test infrastructure
Edited by Angus Ryer