-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
web-wallet: Update
@testing-library/svelte
to v5.x
Resolves #1875
- Loading branch information
1 parent
50251da
commit edcec15
Showing
38 changed files
with
7,389 additions
and
7,596 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
97 changes: 47 additions & 50 deletions
97
web-wallet/src/lib/components/__tests__/__snapshots__/AddressPicker.spec.js.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,63 +1,60 @@ | ||
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html | ||
|
||
exports[`AddressPicker > renders the AddressPicker component 1`] = ` | ||
<div> | ||
<div | ||
class="address-picker" | ||
> | ||
<div | ||
class="address-picker" | ||
aria-expanded="false" | ||
aria-haspopup="true" | ||
class="address-picker__trigger" | ||
role="button" | ||
tabindex="0" | ||
> | ||
<div | ||
aria-expanded="false" | ||
aria-haspopup="true" | ||
class="address-picker__trigger" | ||
role="button" | ||
tabindex="0" | ||
<button | ||
class="dusk-button dusk-button--type--button dusk-button--variant--secondary dusk-button--size--normal dusk-icon-button" | ||
disabled="" | ||
type="button" | ||
> | ||
<button | ||
class="dusk-button dusk-button--type--button dusk-button--variant--secondary dusk-button--size--normal dusk-icon-button" | ||
disabled="" | ||
type="button" | ||
<svg | ||
class="dusk-icon dusk-icon--size--normal dusk-button__icon" | ||
role="graphics-symbol" | ||
viewBox="0 0 24 24" | ||
> | ||
<svg | ||
class="dusk-icon dusk-icon--size--normal dusk-button__icon" | ||
role="graphics-symbol" | ||
viewBox="0 0 24 24" | ||
> | ||
<path | ||
d="M21,9L17,5V8H10V10H17V13M7,11L3,15L7,19V16H14V14H7V11Z" | ||
/> | ||
</svg> | ||
</button> | ||
<path | ||
d="M21,9L17,5V8H10V10H17V13M7,11L3,15L7,19V16H14V14H7V11Z" | ||
/> | ||
</svg> | ||
<p | ||
class="address-picker__current-address" | ||
</button> | ||
<p | ||
class="address-picker__current-address" | ||
> | ||
2087290d3dc213d43e493f03f5435f99 | ||
</p> | ||
<button | ||
aria-label="Copy Address" | ||
class="dusk-button dusk-button--type--button dusk-button--variant--secondary dusk-button--size--normal dusk-icon-button address-picker__copy-address-button" | ||
type="button" | ||
> | ||
<svg | ||
class="dusk-icon dusk-icon--size--normal dusk-button__icon" | ||
role="graphics-symbol" | ||
viewBox="0 0 24 24" | ||
> | ||
2087290d3dc213d43e493f03f5435f99 | ||
</p> | ||
<path | ||
d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z" | ||
/> | ||
</svg> | ||
<button | ||
aria-label="Copy Address" | ||
class="dusk-button dusk-button--type--button dusk-button--variant--secondary dusk-button--size--normal dusk-icon-button address-picker__copy-address-button" | ||
type="button" | ||
> | ||
<svg | ||
class="dusk-icon dusk-icon--size--normal dusk-button__icon" | ||
role="graphics-symbol" | ||
viewBox="0 0 24 24" | ||
> | ||
<path | ||
d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z" | ||
/> | ||
</svg> | ||
</button> | ||
</div> | ||
</button> | ||
</div> | ||
</div> | ||
`; |
18 changes: 8 additions & 10 deletions
18
web-wallet/src/lib/components/__tests__/__snapshots__/AppAnchorButton.spec.js.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,12 @@ | ||
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html | ||
|
||
exports[`AppAnchorButton > should render an \`AnchorButton\` with the base path prepended to the \`href\` attribute, if the \`href\` represents an absolute URL 1`] = ` | ||
<div> | ||
<a | ||
aria-disabled="false" | ||
class="dusk-anchor dusk-anchor-button dusk-anchor-button--variant--primary dusk-anchor-button--size--normal foo bar" | ||
href="/some-base-path/setup" | ||
id="some-id" | ||
> | ||
</a> | ||
</div> | ||
<a | ||
aria-disabled="false" | ||
class="dusk-anchor dusk-anchor-button dusk-anchor-button--variant--primary dusk-anchor-button--size--normal foo bar" | ||
href="/some-base-path/setup" | ||
id="some-id" | ||
> | ||
</a> | ||
`; |
16 changes: 7 additions & 9 deletions
16
web-wallet/src/lib/components/__tests__/__snapshots__/AppImage.spec.js.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html | ||
|
||
exports[`AppImage > should render an HTML image forwarding all attributes but with the base path prepended to the \`src\` if it's an absolute URL 1`] = ` | ||
<div> | ||
<img | ||
alt="Some alternative text" | ||
class="foo bar" | ||
height="600" | ||
src="/some-base-path/images/some-image.jpg" | ||
width="800" | ||
/> | ||
</div> | ||
<img | ||
alt="Some alternative text" | ||
class="foo bar" | ||
height="600" | ||
src="/some-base-path/images/some-image.jpg" | ||
width="800" | ||
/> | ||
`; |
Oops, something went wrong.