From 60912a96fe65ae1257663fb8453bc1348dd6ebde Mon Sep 17 00:00:00 2001 From: Alex Andreev Date: Sun, 23 Oct 2022 09:08:54 +0300 Subject: [PATCH] Testing changing visibility flag Signed-off-by: Alex Andreev --- src/extensions/registries/modal-registry.ts | 2 +- .../cluster-modal-items.test.tsx.snap | 1026 ++++++++--------- .../cluster/cluster-modal-items.test.tsx | 90 +- .../cluster-modals/cluster-modals.tsx | 7 +- 4 files changed, 587 insertions(+), 538 deletions(-) diff --git a/src/extensions/registries/modal-registry.ts b/src/extensions/registries/modal-registry.ts index fb9f99c634..7b31aa1152 100644 --- a/src/extensions/registries/modal-registry.ts +++ b/src/extensions/registries/modal-registry.ts @@ -10,6 +10,6 @@ import type { IComputedValue } from "mobx"; export interface ClusterModalRegistration { id: string; Component: React.ComponentType; - visible?: IComputedValue; + visible: IComputedValue; } diff --git a/src/features/cluster/__snapshots__/cluster-modal-items.test.tsx.snap b/src/features/cluster/__snapshots__/cluster-modal-items.test.tsx.snap index f4efc1e286..344ed10635 100644 --- a/src/features/cluster/__snapshots__/cluster-modal-items.test.tsx.snap +++ b/src/features/cluster/__snapshots__/cluster-modal-items.test.tsx.snap @@ -1,6 +1,518 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`cluster modal elements given custom cluster modal available renders 1`] = ` +exports[` elements originated from cluster modal registration given custom component for cluster view not available renders 1`] = ` +
+
+
+
+