Repository URL to install this package:
|
Version:
3.4.2 ▾
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`@skava/forms - plugins should
- provide default props
- provide the plugins
- render the plugin
- pick the correct plugin
- provide custom serialization
- call validate
1`] = `
<form
aria-invalid={false}
className="sc-bdVaJa bDWFJH"
id="form-0"
method="POST"
onSubmit={[Function]}
>
<div
autoComplete="test"
className="sc-ifAKCX gyqhYp"
>
<label
className="sc-bxivhb cVtgmD"
htmlFor="1-input"
>
Default State Label *
</label>
<input
aria-invalid={false}
aria-label="Default State Label"
autoComplete="test"
className="sc-htpNat hfsrtI"
data-qa="qa-test"
disabled={false}
id="1-input"
maxLength={254}
minLength={4}
onBlur={[Function]}
onChange={[Function]}
onFocus={[Function]}
pattern="(.*)"
placeholder="test..."
required={true}
type="test"
value=""
/>
<span
className="sc-bZQynM dtxfii"
/>
<span
className="sc-EHOje hIVSUt"
id="1-input-error"
role="alert"
/>
</div>
<button
className="sc-bwzfXH uTxCW"
onClick={[Function]}
type="submit"
>
Continue
</button>
</form>
`;
exports[`@skava/forms - plugins should be able to a render a plugin directly 1`] = `
<div
autoComplete="test"
className="sc-ifAKCX gyqhYp"
>
<label
className="sc-bxivhb cVtgmD"
htmlFor="2-input"
>
Test *
</label>
<input
aria-invalid={false}
aria-label="Test"
autoComplete="test"
className="sc-htpNat hfsrtI"
data-qa="qa-test"
disabled={false}
id="2-input"
maxLength={254}
minLength={4}
onBlur={[Function]}
onChange={[Function]}
onFocus={[Function]}
pattern="(.*)"
placeholder="test..."
required={true}
type="test"
value=""
/>
<span
className="sc-bZQynM dtxfii"
/>
<span
className="sc-EHOje hIVSUt"
id="2-input-error"
role="alert"
/>
</div>
`;