From c37c86f7a0b4089076ee8ff009f6d2ce4d7496b2 Mon Sep 17 00:00:00 2001 From: Tymoteusz Czech <2625371+Tymek@users.noreply.github.com> Date: Mon, 5 Aug 2024 11:52:49 +0200 Subject: [PATCH] fix: show api token on playground (#7753) Fix CR condition preventing API token from showing up --- .../PlaygroundConnectionFieldset.test.tsx | 3 +++ .../PlaygroundConnectionFieldset.tsx | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/component/playground/Playground/PlaygroundForm/PlaygroundConnectionFieldset/PlaygroundConnectionFieldset.test.tsx b/frontend/src/component/playground/Playground/PlaygroundForm/PlaygroundConnectionFieldset/PlaygroundConnectionFieldset.test.tsx index b7b7c16ec7..cd1500c5f8 100644 --- a/frontend/src/component/playground/Playground/PlaygroundForm/PlaygroundConnectionFieldset/PlaygroundConnectionFieldset.test.tsx +++ b/frontend/src/component/playground/Playground/PlaygroundForm/PlaygroundConnectionFieldset/PlaygroundConnectionFieldset.test.tsx @@ -119,6 +119,9 @@ test( 'combobox', ); + expect(tokenInput).toHaveValue( + 'default:development.964a287e1b728cb5f4f3e0120df92cb5', + ); expect(projectInput).toBeDisabled(); expect(environmentInput).toBeDisabled(); await within(projectAutocomplete).findByText('Default'); diff --git a/frontend/src/component/playground/Playground/PlaygroundForm/PlaygroundConnectionFieldset/PlaygroundConnectionFieldset.tsx b/frontend/src/component/playground/Playground/PlaygroundForm/PlaygroundConnectionFieldset/PlaygroundConnectionFieldset.tsx index 1ae3008cff..a62c66343e 100644 --- a/frontend/src/component/playground/Playground/PlaygroundForm/PlaygroundConnectionFieldset/PlaygroundConnectionFieldset.tsx +++ b/frontend/src/component/playground/Playground/PlaygroundForm/PlaygroundConnectionFieldset/PlaygroundConnectionFieldset.tsx @@ -242,7 +242,7 @@ export const PlaygroundConnectionFieldset: FC<