Skip to content

Commit c5d1dc8

Browse files
committed
feat: add name attributes to ToggleResolveScopedVariables components
1 parent a5a6acc commit c5d1dc8

File tree

4 files changed

+3
-1
lines changed

4 files changed

+3
-1
lines changed

src/Pages/Applications/DevtronApps/Details/AppConfigurations/MainContent/ConfigDryRun.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ const ConfigDryRun = ({
131131
)}
132132

133133
<ToggleResolveScopedVariables
134+
name="resolve-scoped-variables-dry-run-view"
134135
handleToggleScopedVariablesView={handleToggleResolveScopedVariables}
135136
resolveScopedVariables={resolveScopedVariables}
136137
isDisabled={!!errorInfo}

src/Pages/Applications/DevtronApps/Details/AppConfigurations/MainContent/ConfigToolbar.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,7 @@ const ConfigToolbar = ({
313313
<InvalidYAMLTippyWrapper parsingError={parsingError} restoreLastSavedYAML={restoreLastSavedYAML}>
314314
<div>
315315
<ToggleResolveScopedVariables
316+
name="resolve-scoped-variables"
316317
resolveScopedVariables={resolveScopedVariables}
317318
handleToggleScopedVariablesView={handleToggleScopedVariablesView}
318319
isDisabled={isDisabled}

src/Pages/Shared/ConfigMapSecret/ConfigMapSecretDryRun.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@ export const ConfigMapSecretDryRun = ({
224224
)}
225225
<div className="dc__border-right-n1 dc__align-self-stretch mt-2 mb-2" />
226226
<ToggleResolveScopedVariables
227+
name="resolve-scoped-variables-dry-run-view"
227228
resolveScopedVariables={resolveScopedVariables}
228229
handleToggleScopedVariablesView={handleToggleScopedVariablesView}
229230
isDisabled={areScopeVariablesResolving}

src/stories/Switch.stories.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ type Story = StoryObj<typeof meta>
8383
const COMMON_SWITCH_TEMPLATE: Story = {
8484
args: {
8585
name: 'switch-story',
86-
dataTestId: 'switch-story',
8786
variant: 'positive',
8887
size: ComponentSizeType.medium,
8988
isDisabled: false,

0 commit comments

Comments
 (0)