Skip to content

ATS-PFM-MTD-004Use Workspace Labels for Standard Fields: Capability Test Specification

Markdown

ATS-PFM-MTD-004

Use Workspace Labels for Standard Fields: Capability Test Specification

Markdown
  • DocumentProposed

Planning

Proves capability
CAP-PFM-MTD-004

Design

Executed by
TST-PFM-MTD-108, TST-PFM-MTD-124

KindAcceptance test setProduct areaPlatformModuleMetadata and Organization-defined RecordsRevision2

Read atservices-platform ad3f6a65react-console baf6dae3

Coverage

  • Rule covered
  • Transition covered
  • Validation covered
  • Permission gap: FND-PFM-MTD-066
  • Edge covered
  • Failure gap: FND-PFM-MTD-066
  • Boundary covered
  • Concurrency gap: FND-PFM-MTD-066
  • Invariant covered
  • Interaction covered

Test Scenarios

7 scenarios proving CAP-PFM-MTD-004; 6 bound to an existing test.

01 Standard relabelling rejects additional changesvalidationapinegativetest
Proves
BR-CAP-PFM-MTD-004-01
Preconditions
A registered contact field exists.
Steps
[ { "do": "Try overriding its label together with visibility, requirement, type or display changes.", "provenance": "test", "source": "services-platform:modules/metadata/tests/e2e/standard-field-label-overrides.e2e.spec.js#refuses a body making the field required as 400" } ]
Expected
Each request is rejected.
Data
A registered contact field exists.
Bound to
Source
services-platform:modules/metadata/tests/e2e/standard-field-label-overrides.e2e.spec.js#refuses a body making the field required as 400
02 Retired and nonstandard fields reject overridesedgeapinegativetest
Proves
BR-CAP-PFM-MTD-004-02
Preconditions
A labelled standard field is subsequently retired.
Steps
[ { "do": "Try relabelling custom, undescribed, missing and retired keys.", "provenance": "test", "source": "services-platform:modules/metadata/tests/integration/services/persistence/standard-field-label-overrides.integration.spec.js#refuses a new override on the retired field as a 404" } ]
Expected
Unavailable standard targets return not found and the existing retired-field override survives.
Data
A labelled standard field is subsequently retired.
Bound to
Source
services-platform:modules/metadata/tests/integration/services/persistence/standard-field-label-overrides.integration.spec.js#refuses a new override on the retired field as a 404
03 Labels stay within their boundsboundaryapinegativetest
Proves
BR-CAP-PFM-MTD-004-03
Preconditions
Override creation is available.
Steps
[ { "do": "Submit empty, whitespace, maximum-length and oversized labels.", "provenance": "test", "source": "services-platform:modules/metadata/tests/integration/services/persistence/standard-field-label-overrides.integration.spec.js#refuses a label one character longer than the longest allowed" } ]
Expected
Blank and oversized labels are rejected, while the exact maximum is accepted.
Data
Override creation is available.
Bound to
Source
services-platform:modules/metadata/tests/integration/services/persistence/standard-field-label-overrides.integration.spec.js#refuses a label one character longer than the longest allowed
04 Each workspace retains its own terminologyinvariantapitest
Proves
BR-CAP-PFM-MTD-004-04 INV-DOM-PFM-MTD-001-05
Preconditions
Two workspaces can describe the same type.
Steps
[ { "do": "Set independent labels and inspect both descriptions and the original registration.", "provenance": "test", "source": "services-platform:modules/metadata/tests/e2e/standard-field-label-overrides.e2e.spec.js#shows the other tenant the owner's label on the same field" } ]
Expected
Each local view remains independent and the owning declaration is unchanged.
Data
Two workspaces can describe the same type.
Bound to
services-platform:modules/metadata/tests/e2e/standard-field-label-overrides.e2e.spec.js#shows the other tenant the owner's label on the same field
Source
services-platform:modules/metadata/tests/e2e/standard-field-label-overrides.e2e.spec.js#shows the other tenant the owner's label on the same field
05 Removing an absent override reports no changetransitionapitest
Proves
BR-CAP-PFM-MTD-004-05
Preconditions
A live standard field lacks a local override.
Steps
[ { "do": "Request removal where no label override is stored.", "provenance": "test", "source": "services-platform:modules/metadata/tests/e2e/standard-field-label-overrides.e2e.spec.js#answers removed false for a field the tenant never overrode" } ]
Expected
The response returns the owner label and reports no removal.
Data
A live standard field lacks a local override.
Bound to
services-platform:modules/metadata/tests/e2e/standard-field-label-overrides.e2e.spec.js#answers removed false for a field the tenant never overrode
Source
services-platform:modules/metadata/tests/e2e/standard-field-label-overrides.e2e.spec.js#answers removed false for a field the tenant never overrode
06 A replacement label retains authorshipruleapitest
Proves
BR-CAP-PFM-MTD-004-06
Preconditions
An override already exists.
Steps
[ { "do": "Set another label.", "provenance": "test", "source": "services-platform:modules/metadata/tests/integration/services/persistence/standard-field-label-overrides.integration.spec.js#bumps the version on a second set, keeping the creator" } ]
Expected
The label changes, the creator stays and the version advances.
Data
An override already exists.
Bound to
Source
services-platform:modules/metadata/tests/integration/services/persistence/standard-field-label-overrides.integration.spec.js#bumps the version on a second set, keeping the creator
07 Clearing a local label updates the descriptioninteractionapiproposed
Proves
BR-CAP-PFM-MTD-004-04 BR-CAP-PFM-MTD-004-05 BR-CAP-PFM-MTD-002-01
Preconditions
A standard field has a workspace override.
Steps
[ { "do": "Read its description, remove the override and read it again from two workspaces.", "provenance": "proposed", "source": [ "services-platform:modules/metadata/tests/e2e/standard-field-label-overrides.e2e.spec.js#shows the other tenant the owner's label on the same field", "services-platform:modules/metadata/tests/e2e/standard-field-label-overrides.e2e.spec.js#answers removed false for a field the tenant never overrode", "services-platform:modules/metadata/tests/integration/services/describe/describe-object.integration.spec.js#lists every standard field before every custom one, with nothing interleaved" ] } ]
Expected
Compare original and displayed labels before and after removal.
Data
A standard field has a workspace override.
Source
services-platform:modules/metadata/tests/e2e/standard-field-label-overrides.e2e.spec.js#shows the other tenant the owner's label on the same field,services-platform:modules/metadata/tests/e2e/standard-field-label-overrides.e2e.spec.js#answers removed false for a field the tenant never overrode,services-platform:modules/metadata/tests/integration/services/describe/describe-object.integration.spec.js#lists every standard field before every custom one, with nothing interleaved

The Markdown files under specs/ in rhythmsoftware/rhythm-v2-docs are the canonical source of truth. This reader is a generated, read-only projection of them.