Skip to content

Commit

Permalink
Fix [UI] add the 'data-testid' for 'Add volume' and 'Add node selecto…
Browse files Browse the repository at this point in the history
…r' buttons (#2087)
  • Loading branch information
ilan7empest authored Dec 4, 2023
1 parent 7f79925 commit 867413e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ const JobWizardResources = ({ formState, frontendSpec, stepIsActive }) => {
<div className="form-row form-table-title">Node selection</div>
<div className="form-row">
<FormKeyValueTable
actionButtonId="add-node-selector"
addNewItemLabel="Add node selector"
exitEditModeTriggerItem={stepIsActive}
fieldsPath={`${RESOURCES_STEP}.nodeSelectorTable`}
Expand Down
3 changes: 2 additions & 1 deletion src/elements/FormVolumesTable/FormVolumesTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ const FormVolumesTable = ({ disabled, exitEditModeTriggerItem, fieldsPath, formS
hidden={editingItem?.ui?.isNew}
fields={fields}
fieldsPath={fieldsPath}
id="add-volume"
label="Add volume"
onClick={(...addRowArgs) =>
addNewRow(...addRowArgs, {
Expand All @@ -111,7 +112,7 @@ const FormVolumesTable = ({ disabled, exitEditModeTriggerItem, fieldsPath, formS

FormVolumesTable.defaultProps = {
disabled: false,
exitEditModeTriggerItem: null,
exitEditModeTriggerItem: null
}

FormVolumesTable.propTypes = {
Expand Down

0 comments on commit 867413e

Please sign in to comment.