From b201a9e608fd9239be7d78f2bccd1d7c6a133c41 Mon Sep 17 00:00:00 2001 From: sjaanus Date: Tue, 26 Nov 2024 09:44:40 +0200 Subject: [PATCH] chore: rename toggle to flag --- frontend/src/component/project/Project/Import/Import.test.tsx | 4 ++-- .../project/Project/Import/configure/ConfigurationStage.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/component/project/Project/Import/Import.test.tsx b/frontend/src/component/project/Project/Import/Import.test.tsx index 11512a4e41d9..f6ed505f5dfb 100644 --- a/frontend/src/component/project/Project/Import/Import.test.tsx +++ b/frontend/src/component/project/Project/Import/Import.test.tsx @@ -59,7 +59,7 @@ test('Import happy path', async () => { const codeEditorLabel = screen.getByText('Code editor'); codeEditorLabel.click(); - const editor = screen.getByLabelText('Exported features'); + const editor = screen.getByLabelText('Exported feature flags'); expect(editor.textContent).toBe('{}'); screen.getByText('Validate').click(); @@ -92,7 +92,7 @@ test('Block when importing non json content', async () => { const codeEditorLabel = screen.getByText('Code editor'); codeEditorLabel.click(); - const editor = await screen.findByLabelText('Exported features'); + const editor = await screen.findByLabelText('Exported feature flags'); await userEvent.type(editor, 'invalid non json'); const validateButton = screen.getByText('Validate'); diff --git a/frontend/src/component/project/Project/Import/configure/ConfigurationStage.tsx b/frontend/src/component/project/Project/Import/configure/ConfigurationStage.tsx index 791d0fb608f1..77e485d8e979 100644 --- a/frontend/src/component/project/Project/Import/configure/ConfigurationStage.tsx +++ b/frontend/src/component/project/Project/Import/configure/ConfigurationStage.tsx @@ -121,7 +121,7 @@ export const ImportArea: FC<{ } elseShow={ setImportPayload(event.target.value)} value={importPayload}