From ec1b88b609cc7670bf523d88c21cdefcc9bf91d8 Mon Sep 17 00:00:00 2001
From: Sebastian Malton
Date: Wed, 24 May 2023 15:14:58 -0400
Subject: [PATCH] chore: Add more test for namespace-select-filter to cover new
behaviour
Signed-off-by: Sebastian Malton
---
.../namespace-select-filter.test.tsx.snap | 4210 ++++++++++++++++-
.../namespace-select-filter/component.tsx | 2 +
.../namespace-select-filter.test.tsx | 193 +-
3 files changed, 4361 insertions(+), 44 deletions(-)
diff --git a/packages/core/src/renderer/components/namespace-select-filter/__snapshots__/namespace-select-filter.test.tsx.snap b/packages/core/src/renderer/components/namespace-select-filter/__snapshots__/namespace-select-filter.test.tsx.snap
index b8662b5247..b06a45557f 100644
--- a/packages/core/src/renderer/components/namespace-select-filter/__snapshots__/namespace-select-filter.test.tsx.snap
+++ b/packages/core/src/renderer/components/namespace-select-filter/__snapshots__/namespace-select-filter.test.tsx.snap
@@ -35,6 +35,7 @@ exports[` once the subscribe resolves renders 1`] = `
once the subscribe resolves when clicked rend
once the subscribe resolves when clicked rend
>
once the subscribe resolves when clicked rend
layers
-
+
Select only test-1
once the subscribe resolves when clicked rend
>
once the subscribe resolves when clicked rend
layers
-
+
Select only test-10
once the subscribe resolves when clicked rend
>
once the subscribe resolves when clicked rend
layers
-
+
Select only test-11
once the subscribe resolves when clicked rend
>
once the subscribe resolves when clicked rend
layers
-
+
Select only test-12
once the subscribe resolves when clicked rend
>
once the subscribe resolves when clicked rend
layers
-
+
Select only test-13
once the subscribe resolves when clicked rend
>
once the subscribe resolves when clicked rend
layers
-
+
Select only test-2
once the subscribe resolves when clicked rend
>
once the subscribe resolves when clicked rend
layers
-
+
Select only test-3
once the subscribe resolves when clicked rend
>
once the subscribe resolves when clicked rend
layers
-
+
Select only test-4
once the subscribe resolves when clicked rend
>
once the subscribe resolves when clicked rend
layers
-
+
Select only test-5
once the subscribe resolves when clicked rend
>
once the subscribe resolves when clicked rend
layers
-
+
Select only test-6
once the subscribe resolves when clicked rend
>
once the subscribe resolves when clicked rend
layers
-
+
Select only test-7
once the subscribe resolves when clicked rend
>
once the subscribe resolves when clicked rend
layers
-
+
Select only test-8
once the subscribe resolves when clicked rend
>
once the subscribe resolves when clicked rend
layers
-
+
Select only test-9
once the subscribe resolves when clicked when
once the subscribe resolves when clicked when
once the subscribe resolves when clicked when
>
once the subscribe resolves when clicked when
layers
-
+
Select only test-2
once the subscribe resolves when clicked when
>
once the subscribe resolves when clicked when
layers
-
+
Select only test-1
once the subscribe resolves when clicked when
>
once the subscribe resolves when clicked when
layers
-
+
Select only test-10
once the subscribe resolves when clicked when
>
once the subscribe resolves when clicked when
layers
-
+
Select only test-11
once the subscribe resolves when clicked when
>
once the subscribe resolves when clicked when
layers
-
+
Select only test-12
once the subscribe resolves when clicked when
>
once the subscribe resolves when clicked when
layers
-
+
Select only test-13
once the subscribe resolves when clicked when
>
once the subscribe resolves when clicked when
layers
-
+
Select only test-3
once the subscribe resolves when clicked when
>
once the subscribe resolves when clicked when
layers
-
+
Select only test-4
once the subscribe resolves when clicked when
>
once the subscribe resolves when clicked when
layers
-
+
Select only test-5
once the subscribe resolves when clicked when
>
once the subscribe resolves when clicked when
layers
-
+
Select only test-6
once the subscribe resolves when clicked when
>
once the subscribe resolves when clicked when
layers
-
+
Select only test-7
once the subscribe resolves when clicked when
>
once the subscribe resolves when clicked when
layers
-
+
Select only test-8
once the subscribe resolves when clicked when
>
once the subscribe resolves when clicked when
layers
-
+
Select only test-9
once the subscribe resolves when clicked when
once the subscribe resolves when clicked when
once the subscribe resolves when clicked when
>
once the subscribe resolves when clicked when
layers
-
+
Select only test-1
once the subscribe resolves when clicked when
>
once the subscribe resolves when clicked when
layers
-
+
Select only test-2
once the subscribe resolves when clicked when
>
once the subscribe resolves when clicked when
layers
-
+
Select only test-10
once the subscribe resolves when clicked when
>
once the subscribe resolves when clicked when
layers
-
+
Select only test-11
once the subscribe resolves when clicked when
>
once the subscribe resolves when clicked when
layers
-
+
Select only test-12
once the subscribe resolves when clicked when
>
once the subscribe resolves when clicked when
layers
-
+
Select only test-13
once the subscribe resolves when clicked when
>
once the subscribe resolves when clicked when
layers
-
+
Select only test-3
once the subscribe resolves when clicked when
>
once the subscribe resolves when clicked when
layers
-
+
Select only test-4
once the subscribe resolves when clicked when
>
once the subscribe resolves when clicked when
layers
-
+
Select only test-5
once the subscribe resolves when clicked when
>
once the subscribe resolves when clicked when
layers
-
+
Select only test-6
once the subscribe resolves when clicked when
>
once the subscribe resolves when clicked when
layers
-
+
Select only test-7
once the subscribe resolves when clicked when
>
once the subscribe resolves when clicked when
layers
-
+
Select only test-8
once the subscribe resolves when clicked when
>
once the subscribe resolves when clicked when
layers
-
+
Select only test-9
once the subscribe resolves when clicked when
+
+
+
+
+
+
+ -
+
+ All Namespaces
+
+
+ -
+
+
+ layers
+
+
+
+ Select only test-1
+
+
+ test-1
+
+
+
+ check
+
+
+
+ Remove test-1 from selection
+
+
+ -
+
+
+ layers
+
+
+
+ Select only test-10
+
+
+ test-10
+
+
+
+ check
+
+
+
+ Remove test-10 from selection
+
+
+ -
+
+
+ layers
+
+
+
+ Select only test-11
+
+
+ test-11
+
+
+
+ check
+
+
+
+ Remove test-11 from selection
+
+
+ -
+
+
+ layers
+
+
+
+ Select only test-12
+
+
+ test-12
+
+
+
+ check
+
+
+
+ Remove test-12 from selection
+
+
+ -
+
+
+ layers
+
+
+
+ Select only test-13
+
+
+ test-13
+
+
+
+ check
+
+
+
+ Remove test-13 from selection
+
+
+ -
+
+
+ layers
+
+
+
+ Select only test-2
+
+
+ test-2
+
+
+
+ check
+
+
+
+ Remove test-2 from selection
+
+
+ -
+
+
+ layers
+
+
+
+ Select only test-3
+
+
+ test-3
+
+
+
+ check
+
+
+
+ Remove test-3 from selection
+
+
+ -
+
+
+ layers
+
+
+
+ Select only test-4
+
+
+ test-4
+
+
+
+ check
+
+
+
+ Remove test-4 from selection
+
+
+ -
+
+
+ layers
+
+
+
+ Select only test-5
+
+
+ test-5
+
+
+
+ check
+
+
+
+ Remove test-5 from selection
+
+
+ -
+
+
+ layers
+
+
+
+ Select only test-6
+
+
+ test-6
+
+
+
+ check
+
+
+
+ Remove test-6 from selection
+
+
+ -
+
+
+ layers
+
+
+
+ Select only test-7
+
+
+ test-7
+
+
+
+ check
+
+
+
+ Remove test-7 from selection
+
+
+ -
+
+
+ layers
+
+
+
+ Select only test-8
+
+
+ test-8
+
+
+
+ check
+
+
+
+ Remove test-8 from selection
+
+
+ -
+
+
+ layers
+
+
+
+ Select only test-9
+
+
+ test-9
+
+
+
+ check
+
+
+
+ Remove test-9 from selection
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ -
+
+ All Namespaces
+
+
+ -
+
+
+ layers
+
+
+
+ Select only test-1
+
+
+ test-1
+
+
+
+ check
+
+
+
+ Remove test-1 from selection
+
+
+ -
+
+
+ layers
+
+
+
+ Select only test-10
+
+
+ test-10
+
+
+
+ check
+
+
+
+ Remove test-10 from selection
+
+
+ -
+
+
+ layers
+
+
+
+ Select only test-11
+
+
+ test-11
+
+
+
+ check
+
+
+
+ Remove test-11 from selection
+
+
+ -
+
+
+ layers
+
+
+
+ Select only test-12
+
+
+ test-12
+
+
+
+ check
+
+
+
+ Remove test-12 from selection
+
+
+ -
+
+
+ layers
+
+
+
+ Select only test-13
+
+
+ test-13
+
+
+
+ check
+
+
+
+ Remove test-13 from selection
+
+
+ -
+
+
+ layers
+
+
+
+ Select only test-2
+
+
+ test-2
+
+
+
+ add_box
+
+
+
+ Add test-2 to selection
+
+
+ -
+
+
+ layers
+
+
+
+ Select only test-3
+
+
+ test-3
+
+
+
+ check
+
+
+
+ Remove test-3 from selection
+
+
+ -
+
+
+ layers
+
+
+
+ Select only test-4
+
+
+ test-4
+
+
+
+ check
+
+
+
+ Remove test-4 from selection
+
+
+ -
+
+
+ layers
+
+
+
+ Select only test-5
+
+
+ test-5
+
+
+
+ check
+
+
+
+ Remove test-5 from selection
+
+
+ -
+
+
+ layers
+
+
+
+ Select only test-6
+
+
+ test-6
+
+
+
+ check
+
+
+
+ Remove test-6 from selection
+
+
+ -
+
+
+ layers
+
+
+
+ Select only test-7
+
+
+ test-7
+
+
+
+ check
+
+
+
+ Remove test-7 from selection
+
+
+ -
+
+
+ layers
+
+
+
+ Select only test-8
+
+
+ test-8
+
+
+
+ check
+
+
+
+ Remove test-8 from selection
+
+
+ -
+
+
+ layers
+
+
+
+ Select only test-9
+
+
+ test-9
+
+
+
+ check
+
+
+
+ Remove test-9 from selection
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ -
+
+ All Namespaces
+
+
+ -
+
+
+ layers
+
+
+
+ Select only test-1
+
+
+ test-1
+
+
+
+ check
+
+
+
+ Remove test-1 from selection
+
+
+ -
+
+
+ layers
+
+
+
+ Select only test-10
+
+
+ test-10
+
+
+
+ check
+
+
+
+ Remove test-10 from selection
+
+
+ -
+
+
+ layers
+
+
+
+ Select only test-11
+
+
+ test-11
+
+
+
+ check
+
+
+
+ Remove test-11 from selection
+
+
+ -
+
+
+ layers
+
+
+
+ Select only test-12
+
+
+ test-12
+
+
+
+ check
+
+
+
+ Remove test-12 from selection
+
+
+ -
+
+
+ layers
+
+
+
+ Select only test-13
+
+
+ test-13
+
+
+
+ check
+
+
+
+ Remove test-13 from selection
+
+
+ -
+
+
+ layers
+
+
+
+ Select only test-2
+
+
+ test-2
+
+
+
+ add_box
+
+
+
+ Add test-2 to selection
+
+
+ -
+
+
+ layers
+
+
+
+ Select only test-3
+
+
+ test-3
+
+
+
+ add_box
+
+
+
+ Add test-3 to selection
+
+
+ -
+
+
+ layers
+
+
+
+ Select only test-4
+
+
+ test-4
+
+
+
+ check
+
+
+
+ Remove test-4 from selection
+
+
+ -
+
+
+ layers
+
+
+
+ Select only test-5
+
+
+ test-5
+
+
+
+ check
+
+
+
+ Remove test-5 from selection
+
+
+ -
+
+
+ layers
+
+
+
+ Select only test-6
+
+
+ test-6
+
+
+
+ check
+
+
+
+ Remove test-6 from selection
+
+
+ -
+
+
+ layers
+
+
+
+ Select only test-7
+
+
+ test-7
+
+
+
+ check
+
+
+
+ Remove test-7 from selection
+
+
+ -
+
+
+ layers
+
+
+
+ Select only test-8
+
+
+ test-8
+
+
+
+ check
+
+
+
+ Remove test-8 from selection
+
+
+ -
+
+
+ layers
+
+
+
+ Select only test-9
+
+
+ test-9
+
+
+
+ check
+
+
+
+ Remove test-9 from selection
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ -
+
+ All Namespaces
+
+
+ -
+
+
+ layers
+
+
+
+ Select only test-1
+
+
+ test-1
+
+
+
+ check
+
+
+
+ Remove test-1 from selection
+
+
+ -
+
+
+ layers
+
+
+
+ Select only test-10
+
+
+ test-10
+
+
+
+ check
+
+
+
+ Remove test-10 from selection
+
+
+ -
+
+
+ layers
+
+
+
+ Select only test-11
+
+
+ test-11
+
+
+
+ check
+
+
+
+ Remove test-11 from selection
+
+
+ -
+
+
+ layers
+
+
+
+ Select only test-12
+
+
+ test-12
+
+
+
+ check
+
+
+
+ Remove test-12 from selection
+
+
+ -
+
+
+ layers
+
+
+
+ Select only test-13
+
+
+ test-13
+
+
+
+ check
+
+
+
+ Remove test-13 from selection
+
+
+ -
+
+
+ layers
+
+
+
+ Select only test-2
+
+
+ test-2
+
+
+
+ check
+
+
+
+ Remove test-2 from selection
+
+
+ -
+
+
+ layers
+
+
+
+ Select only test-3
+
+
+ test-3
+
+
+
+ add_box
+
+
+
+ Add test-3 to selection
+
+
+ -
+
+
+ layers
+
+
+
+ Select only test-4
+
+
+ test-4
+
+
+
+ check
+
+
+
+ Remove test-4 from selection
+
+
+ -
+
+
+ layers
+
+
+
+ Select only test-5
+
+
+ test-5
+
+
+
+ check
+
+
+
+ Remove test-5 from selection
+
+
+ -
+
+
+ layers
+
+
+
+ Select only test-6
+
+
+ test-6
+
+
+
+ check
+
+
+
+ Remove test-6 from selection
+
+
+ -
+
+
+ layers
+
+
+
+ Select only test-7
+
+
+ test-7
+
+
+
+ check
+
+
+
+ Remove test-7 from selection
+
+
+ -
+
+
+ layers
+
+
+
+ Select only test-8
+
+
+ test-8
+
+
+
+ check
+
+
+
+ Remove test-8 from selection
+
+
+ -
+
+
+ layers
+
+
+
+ Select only test-9
+
+
+ test-9
+
+
+
+ check
+
+
+
+ Remove test-9 from selection
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ -
+
+ All Namespaces
+
+
+ -
+
+
+ layers
+
+
+
+ Select only test-1
+
+
+ test-1
+
+
+
+ check
+
+
+
+ Remove test-1 from selection
+
+
+ -
+
+
+ layers
+
+
+
+ Select only test-10
+
+
+ test-10
+
+
+
+ check
+
+
+
+ Remove test-10 from selection
+
+
+ -
+
+
+ layers
+
+
+
+ Select only test-11
+
+
+ test-11
+
+
+
+ check
+
+
+
+ Remove test-11 from selection
+
+
+ -
+
+
+ layers
+
+
+
+ Select only test-12
+
+
+ test-12
+
+
+
+ check
+
+
+
+ Remove test-12 from selection
+
+
+ -
+
+
+ layers
+
+
+
+ Select only test-13
+
+
+ test-13
+
+
+
+ check
+
+
+
+ Remove test-13 from selection
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ -
+
+ All Namespaces
+
+
+ -
+
+
+ layers
+
+
+
+ Select only test-1
+
+
+ test-1
+
+
+
+ check
+
+
+
+ Remove test-1 from selection
+
+
+ -
+
+
+ layers
+
+
+
+ Select only test-10
+
+
+ test-10
+
+
+
+ check
+
+
+
+ Remove test-10 from selection
+
+
+ -
+
+
+ layers
+
+
+
+ Select only test-11
+
+
+ test-11
+
+
+
+ check
+
+
+
+ Remove test-11 from selection
+
+
+ -
+
+
+ layers
+
+
+
+ Select only test-12
+
+
+ test-12
+
+
+
+ check
+
+
+
+ Remove test-12 from selection
+
+
+ -
+
+
+ layers
+
+
+
+ Select only test-13
+
+
+ test-13
+
+
+
+ check
+
+
+
+ Remove test-13 from selection
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ -
+
+ All Namespaces
+
+
+ -
+
+
+ layers
+
+
+
+ Select only test-1
+
+
+ test-1
+
+
+
+ check
+
+
+
+ Remove test-1 from selection
+
+
+ -
+
+
+ layers
+
+
+
+ Select only test-10
+
+
+ test-10
+
+
+
+ check
+
+
+
+ Remove test-10 from selection
+
+
+ -
+
+
+ layers
+
+
+
+ Select only test-11
+
+
+ test-11
+
+
+
+ check
+
+
+
+ Remove test-11 from selection
+
+
+ -
+
+
+ layers
+
+
+
+ Select only test-12
+
+
+ test-12
+
+
+
+ check
+
+
+
+ Remove test-12 from selection
+
+
+ -
+
+
+ layers
+
+
+
+ Select only test-13
+
+
+ test-13
+
+
+
+ check
+
+
+
+ Remove test-13 from selection
+
+
+ -
+
+
+ layers
+
+
+
+ Select only test-2
+
+
+ test-2
+
+
+
+ check
+
+
+
+ Remove test-2 from selection
+
+
+ -
+
+
+ layers
+
+
+
+ Select only test-3
+
+
+ test-3
+
+
+
+ check
+
+
+
+ Remove test-3 from selection
+
+
+ -
+
+
+ layers
+
+
+
+ Select only test-4
+
+
+ test-4
+
+
+
+ check
+
+
+
+ Remove test-4 from selection
+
+
+ -
+
+
+ layers
+
+
+
+ Select only test-5
+
+
+ test-5
+
+
+
+ check
+
+
+
+ Remove test-5 from selection
+
+
+ -
+
+
+ layers
+
+
+
+ Select only test-6
+
+
+ test-6
+
+
+
+ check
+
+
+
+ Remove test-6 from selection
+
+
+ -
+
+
+ layers
+
+
+
+ Select only test-7
+
+
+ test-7
+
+
+
+ check
+
+
+
+ Remove test-7 from selection
+
+
+ -
+
+
+ layers
+
+
+
+ Select only test-8
+
+
+ test-8
+
+
+
+ check
+
+
+
+ Remove test-8 from selection
+
+
+ -
+
+
+ layers
+
+
+
+ Select only test-9
+
+
+ test-9
+
+
+
+ check
+
+
+
+ Remove test-9 from selection
+
+
+
+
+
+
+
+
+
+