mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-12-18 03:17:12 +00:00
Test Fixes (#25276)
* fixes masked-input component throwing error when there is no value * removes copy button assertions from masked input test * reverts masked input assertion removal and updates test selectors
This commit is contained in:
@@ -74,8 +74,9 @@ export default class MaskedInputComponent extends Component {
|
||||
|
||||
get copyValue() {
|
||||
// Value must be a string to be copied
|
||||
if (typeof this.args.value === 'string') return this.args.value;
|
||||
if (typeof this.args.value === 'object') return JSON.stringify(this.args.value);
|
||||
return this.args.value.toString();
|
||||
const { value } = this.args;
|
||||
if (!value || typeof value === 'string') return value;
|
||||
if (typeof value === 'object') return JSON.stringify(value);
|
||||
return value.toString();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user