From 34713974eda83c44123972d40555efbef5e36e05 Mon Sep 17 00:00:00 2001 From: Sebastian Malton Date: Tue, 10 Jan 2023 11:51:15 -0500 Subject: [PATCH] Fix edit-namespace-from-new-tab tests - Get proper syncing of allowed resource to happen Signed-off-by: Sebastian Malton --- .../edit-namespace-from-new-tab.test.tsx.snap | 1332 +++++++++++++++-- .../test-utils/application-builder.tsx | 92 +- .../components/item-object-list/content.tsx | 3 +- 3 files changed, 1263 insertions(+), 164 deletions(-) diff --git a/src/features/cluster/namespaces/__snapshots__/edit-namespace-from-new-tab.test.tsx.snap b/src/features/cluster/namespaces/__snapshots__/edit-namespace-from-new-tab.test.tsx.snap index bb96520568..e6f210f033 100644 --- a/src/features/cluster/namespaces/__snapshots__/edit-namespace-from-new-tab.test.tsx.snap +++ b/src/features/cluster/namespaces/__snapshots__/edit-namespace-from-new-tab.test.tsx.snap @@ -7,7 +7,7 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam id="terminal-init" />
- +
- 0 items + 1 item
-
- Item list is empty +
+
+
+
+
+
+ +
+
+ default +
+
+
+
+ <unknown> +
+
+ - +
+ +
+
+
+
@@ -705,7 +772,7 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam id="terminal-init" />
- +
- 0 items + 1 item
-
- Item list is empty +
+
+
+
+
+
+ +
+
+ default +
+
+
+
+ <unknown> +
+
+ - +
+ +
+
+
+
@@ -1408,7 +1542,7 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam id="terminal-init" />
- +
- 0 items + 1 item
-
- Item list is empty +
+
+
+
+
+
+ +
+
+ default +
+
+
+
+ <unknown> +
+
+ - +
+ +
+
+
+
@@ -2180,7 +2381,7 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam id="terminal-init" />
- +
- 0 items + 1 item
-
- Item list is empty +
+
+
+
+
+
+ +
+
+ default +
+
+
+
+ <unknown> +
+
+ - +
+ +
+
+
+
@@ -2930,7 +3198,7 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam id="terminal-init" />
- +
- 0 items + 1 item
-
- Item list is empty +
+
+
+
+
+
+ +
+
+ default +
+
+
+
+ <unknown> +
+
+ - +
+ +
+
+
+
@@ -3752,7 +4087,7 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam id="terminal-init" />
- +
- 0 items + 1 item
-
- Item list is empty +
+
+
+
+
+
+ +
+
+ default +
+
+
+
+ <unknown> +
+
+ - +
+ +
+
+
+
@@ -4576,7 +4978,7 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam id="terminal-init" />
- +
- 0 items + 1 item
-
- Item list is empty +
+
+
+
+
+
+ +
+
+ default +
+
+
+
+ <unknown> +
+
+ - +
+ +
+
+
+
@@ -5362,7 +5831,7 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam id="terminal-init" />
- +
- 0 items + 1 item
-
- Item list is empty +
+
+
+
+
+
+ +
+
+ default +
+
+
+
+ <unknown> +
+
+ - +
+ +
+
+
+
@@ -6086,7 +6622,7 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam class="Spinner singleColor" data-testid="saving-edit-resource-from-tab-for-some-first-tab-id" /> - + Applying...