Skip to content

Commit

Permalink
exclude Custom component from visibility test
Browse files Browse the repository at this point in the history
  • Loading branch information
nkylstad committed Jan 6, 2025
1 parent 4a5378a commit 149ffb5
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions frontend/packages/ux-editor/src/data/formItemConfig.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,14 @@ describe('formItemConfig', () => {
confOnScreenComponents,
];
const allAvailableComponents = allAvailableLists.flat();
const excludedComponents = [ComponentType.Payment, ComponentType.Subform, ComponentType.Summary2];
const excludedComponents = [
ComponentType.Custom,
ComponentType.Payment,
ComponentType.Subform,
ComponentType.Summary2,
];

/** Test that all components, except Payment, Subform and Summary2 (since behind featureFlag), are available in one of the visible lists */
/** Test that all components, except Custom, Payment, Subform and Summary2 (since behind featureFlag), are available in one of the visible lists */
it.each(
Object.values(ComponentType).filter(
(componentType) => !excludedComponents.includes(componentType),
Expand Down

0 comments on commit 149ffb5

Please sign in to comment.