From fa7bc2ee6bf2ce0c08d0187d00095954abb1e8e9 Mon Sep 17 00:00:00 2001 From: Sebastian Malton Date: Wed, 24 May 2023 14:07:49 -0400 Subject: [PATCH] chore: Fixup previous namespace-select-filter unit tests Signed-off-by: Sebastian Malton --- .../namespace-select-filter.test.tsx.snap | 2014 +++++++++++++++++ .../namespace-select-filter/component.tsx | 3 + .../namespace-select-filter.test.tsx | 54 +- .../namespace-select-filter.test.tsx.snap | 1698 -------------- 4 files changed, 2045 insertions(+), 1724 deletions(-) create mode 100644 packages/core/src/renderer/components/namespace-select-filter/__snapshots__/namespace-select-filter.test.tsx.snap delete mode 100644 packages/core/src/renderer/components/namespaces/__snapshots__/namespace-select-filter.test.tsx.snap 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 new file mode 100644 index 0000000000..b8662b5247 --- /dev/null +++ b/packages/core/src/renderer/components/namespace-select-filter/__snapshots__/namespace-select-filter.test.tsx.snap @@ -0,0 +1,2014 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[` once the subscribe resolves renders 1`] = ` + +
+
+ + +`; + +exports[` once the subscribe resolves when clicked renders 1`] = ` + +
+
+ + +`; + +exports[` once the subscribe resolves when clicked when 'test-2' is clicked renders 1`] = ` + +
+
+ + +`; + +exports[` once the subscribe resolves when clicked when 'test-2' is clicked when clicked again renders 1`] = ` + +
+
+ + +`; + +exports[` once the subscribe resolves when clicked when 'test-2' is clicked when clicked again when 'test-1' is clicked renders 1`] = ` + +
+
+ + +`; + +exports[` once the subscribe resolves when clicked when 'test-2' is clicked when clicked again when 'test-1' is clicked when clicked again, then holding down multi select key when 'test-3' is clicked renders 1`] = ` + +
+
+ + +`; diff --git a/packages/core/src/renderer/components/namespace-select-filter/component.tsx b/packages/core/src/renderer/components/namespace-select-filter/component.tsx index 56c45cea5a..379232b581 100644 --- a/packages/core/src/renderer/components/namespace-select-filter/component.tsx +++ b/packages/core/src/renderer/components/namespace-select-filter/component.tsx @@ -43,6 +43,7 @@ const NamespaceSelectFilterMenu = observer(({ id, model }: Dependencies & Namesp value={model.filterText.get()} onChange={(event) => model.filterText.set(event.target.value)} onClick={model.menu.open} + data-testid="namespace-select-filter-input" />