Skip to content

Commit

Permalink
BZ-27534: feat: Add input property for testId
Browse files Browse the repository at this point in the history
 - Adding a new input property that uniquely identifies items
 - Enhances the testing capabilities
  • Loading branch information
dakshana-j authored and murdore committed Jul 11, 2024
1 parent f2365b6 commit e0b3e2b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/Input/Input.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@
on:focusout={onFocusOut}
on:input={onInput}
on:paste={onPaste}
data-pw={properties.dataPw}
class="
{properties.actionInput ? 'action-input' : ''}
"
Expand Down
1 change: 1 addition & 0 deletions src/lib/Input/properties.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export type InputProperties = {
autoComplete: AutoCompleteType;
name: string;
textTransformers: TextTransformer[];
dataPw?: string;
};

export const defaultInputProperties: InputProperties = {
Expand Down

0 comments on commit e0b3e2b

Please sign in to comment.