From 978015510a5d1398dde59b8fb3990e07549a404c Mon Sep 17 00:00:00 2001 From: Sebastian Malton Date: Wed, 10 May 2023 14:36:23 -0400 Subject: [PATCH] chore: Add some behavioural tests for custom columns for custom resources Signed-off-by: Sebastian Malton --- .../view-with-extra-columns.test.ts.snap | 663 ++++++++++++++++++ .../view-with-extra-columns.test.ts | 123 ++++ .../catalog/custom-category-columns.ts | 2 +- .../custom-resources/crd-resources.tsx | 13 +- .../components/item-object-list/content.tsx | 4 +- .../item-object-list/list-layout.tsx | 4 +- .../renderer/components/table/table-cell.tsx | 66 +- .../specifics/custom-resource-definition.ts | 20 +- .../list-layout/src/list-layout-column.ts | 7 +- 9 files changed, 815 insertions(+), 87 deletions(-) create mode 100644 packages/core/src/features/custom-resources/__snapshots__/view-with-extra-columns.test.ts.snap create mode 100644 packages/core/src/features/custom-resources/view-with-extra-columns.test.ts diff --git a/packages/core/src/features/custom-resources/__snapshots__/view-with-extra-columns.test.ts.snap b/packages/core/src/features/custom-resources/__snapshots__/view-with-extra-columns.test.ts.snap new file mode 100644 index 0000000000..250ff548ab --- /dev/null +++ b/packages/core/src/features/custom-resources/__snapshots__/view-with-extra-columns.test.ts.snap @@ -0,0 +1,663 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Viewing Custom Resources with extra columns renders 1`] = ` +
+
+
+
+
+ +
+ + + close + + +
+ Close +
+
+
+
+
+
+
+
+