Skip to content

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lupusA committed Jan 7, 2024
1 parent 041fbd7 commit 3d06c70
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/forms/OptionalDirectory.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export function OptionalDirectory(component, label, name, props = {}) {
size="sm"
name={name}
value={stateProperty(component, name)}
data-testid={'control-' + name}
onChange={component.handleChange}{...props}></FormControl>
{window.kopiaUI &&
<Button size="sm" onClick={() => window.kopiaUI.selectDirectory(onDirectorySelected)}>
Expand Down
1 change: 1 addition & 0 deletions src/forms/RequiredDirectory.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export function RequiredDirectory(component, label, name, props = {}) {
name={name}
isInvalid={stateProperty(component, name, null) === ''}
value={stateProperty(component, name)}
data-testid={'control-' + name}
onChange={component.handleChange}{...props}></FormControl>
{window.kopiaUI &&
<Button size="sm" onClick={() => window.kopiaUI.selectDirectory(onDirectorySelected)}>
Expand Down

0 comments on commit 3d06c70

Please sign in to comment.