Skip to content

Commit

Permalink
chore: rename toggle to flag
Browse files Browse the repository at this point in the history
  • Loading branch information
sjaanus committed Nov 26, 2024
1 parent fc5d9c5 commit b201a9e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions frontend/src/component/project/Project/Import/Import.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export const ImportArea: FC<{
}
elseShow={
<StyledTextField
label='Exported features'
label='Exported feature flags'
variant='outlined'
onChange={(event) => setImportPayload(event.target.value)}
value={importPayload}
Expand Down

0 comments on commit b201a9e

Please sign in to comment.