mirror of
https://github.com/Unleash/unleash.git
synced 2025-07-26 13:48:33 +02:00
chore: rename feature -> flag
This commit is contained in:
parent
08951fe1a3
commit
7200f5875f
@ -16,7 +16,7 @@ export const ArchiveFeatureChange: FC<IArchiveFeatureChange> = ({
|
||||
actions,
|
||||
}) => (
|
||||
<ChangeItemWrapper>
|
||||
<ArchiveBox>Archiving feature</ArchiveBox>
|
||||
<ArchiveBox>Archiving flag</ArchiveBox>
|
||||
{actions}
|
||||
</ChangeItemWrapper>
|
||||
);
|
||||
|
@ -70,7 +70,7 @@ test('Add single archive feature change to change request', async () => {
|
||||
|
||||
expect(screen.getByText('Archive feature flag')).toBeInTheDocument();
|
||||
await screen.findByText(
|
||||
'Archiving features with dependencies will also remove those dependencies.',
|
||||
'Archiving flags with dependencies will also remove those dependencies.',
|
||||
);
|
||||
const button = await screen.findByText('Add change to draft');
|
||||
|
||||
@ -100,7 +100,7 @@ test('Add multiple archive feature changes to change request', async () => {
|
||||
|
||||
await screen.findByText('Archive feature flags');
|
||||
await screen.findByText(
|
||||
'Archiving features with dependencies will also remove those dependencies.',
|
||||
'Archiving flags with dependencies will also remove those dependencies.',
|
||||
);
|
||||
const button = await screen.findByText('Add to change request');
|
||||
|
||||
@ -163,7 +163,7 @@ test('Show error message when multiple parents of orphaned children are archived
|
||||
);
|
||||
expect(
|
||||
screen.queryByText(
|
||||
'Archiving features with dependencies will also remove those dependencies.',
|
||||
'Archiving flags with dependencies will also remove those dependencies.',
|
||||
),
|
||||
).not.toBeInTheDocument();
|
||||
});
|
||||
@ -189,7 +189,7 @@ test('Show error message when 1 parent of orphaned children is archived', async
|
||||
);
|
||||
expect(
|
||||
screen.queryByText(
|
||||
'Archiving features with dependencies will also remove those dependencies.',
|
||||
'Archiving flags with dependencies will also remove those dependencies.',
|
||||
),
|
||||
).not.toBeInTheDocument();
|
||||
});
|
||||
|
@ -26,7 +26,7 @@ interface IFeatureArchiveDialogProps {
|
||||
const RemovedDependenciesAlert = () => {
|
||||
return (
|
||||
<Alert severity='warning' sx={{ m: (theme) => theme.spacing(2, 0) }}>
|
||||
Archiving features with dependencies will also remove those
|
||||
Archiving flags with dependencies will also remove those
|
||||
dependencies.
|
||||
</Alert>
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user