Merge pull request #178 from 0xsequence/improve-token-approval-check #54
Annotations
9 errors and 1 warning
src/react/ui/modals/BuyModal/hooks/__tests__/useBuyCollectable.test.tsx > useBuyCollectable > should handle success callback and invalidate queries:
packages/sdk/src/react/ui/modals/BuyModal/hooks/__tests__/useBuyCollectable.test.tsx#L341
AssertionError: expected "spy" to be called with arguments: [ { queryKey: [ 'listings' ] } ]
Received:
Number of calls: 0
❯ src/react/ui/modals/BuyModal/hooks/__tests__/useBuyCollectable.test.tsx:341:33
|
src/react/ui/modals/BuyModal/modals/__tests__/Modal1155.test.tsx > ERC1155QuantityModal > should render quantity input correctly:
packages/sdk/src/react/ui/modals/BuyModal/modals/__tests__/Modal1155.test.tsx#L93
TestingLibraryElementError: Unable to find an element with the text: 1. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.
Ignored nodes: comments, script, style
<div
class="fyvr11l8 fyvr11o4"
>
<span
class="fyvr11r3 fyvr11ik fyvr11ko fyvr11jo fyvr11j4 fyvr12kl _1qxj1ib9"
>
Total Price
</span>
<div
class="fyvr11l8 fyvr11ow fyvr11cg"
>
<div
class="fyvr11l8 fyvr11ow fyvr11cg"
>
<span
class="fyvr11r3 fyvr11ik fyvr11ko fyvr11jo fyvr11j4 fyvr12kl _1qxj1ib9"
>
Loading...
</span>
</div>
</div>
</div>
❯ Object.getElementError ../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/config.js:37:19
❯ ../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/query-helpers.js:76:38
❯ ../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/query-helpers.js:52:17
❯ ../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/query-helpers.js:95:19
❯ src/react/ui/modals/BuyModal/modals/__tests__/Modal1155.test.tsx:93:33
|
src/react/ui/modals/BuyModal/modals/__tests__/Modal1155.test.tsx > ERC1155QuantityModal > should update total price when quantity changes:
packages/sdk/src/react/ui/modals/BuyModal/modals/__tests__/Modal1155.test.tsx#L145
TestingLibraryElementError: Unable to find an element with the text: 2. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.
Ignored nodes: comments, script, style
<div
class="fyvr11l8 fyvr11o4"
>
<span
class="fyvr11r3 fyvr11ik fyvr11ko fyvr11jo fyvr11j4 fyvr12kl _1qxj1ib9"
>
Total Price
</span>
<div
class="fyvr11l8 fyvr11ow fyvr11cg"
>
<div
class="fyvr11l8 fyvr11ow fyvr11cg"
>
<span
class="fyvr11r3 fyvr11ik fyvr11ko fyvr11jo fyvr11j4 fyvr12kl _1qxj1ib9"
>
Loading...
</span>
</div>
</div>
</div>
Ignored nodes: comments, script, style
<html>
<head />
<body
data-scroll-locked="1"
style="pointer-events: none;"
>
<span
aria-hidden="true"
data-aria-hidden="true"
data-radix-focus-guard=""
style="opacity: 0; position: fixed; pointer-events: none; outline-color: none; outline-style: none; outline-width: initial;"
tabindex="0"
/>
<div
aria-hidden="true"
data-aria-hidden="true"
/>
<div
aria-hidden="true"
class="modal_dialogOverlay__1ypl6nt0 fyvr1m0 fyvr1o8 fyvr1qg fyvr1so fyvr11vl fyvr11m0 fyvr11rs"
data-aria-hidden="true"
data-state="open"
style="pointer-events: auto;"
/>
<div
aria-describedby="radix-:r5:"
aria-labelledby="radix-:r4:"
class="modal_dialogContent_narrow__1ypl6nt2 modal_dialogContentBase__1ypl6nt1 fyvr11hg fyvr11i4 fyvr11g4 fyvr11gs fyvr11l8 fyvr11ul fyvr11m0 fyvr11rs"
data-state="open"
id="radix-:r3:"
role="dialog"
style="pointer-events: auto;"
tabindex="-1"
>
<div
class="fyvr11l8 fyvr11n4 fyvr11ow fyvr11mc fyvr11co fyvr11m4"
>
<span
class="fyvr11r3 fyvr11is fyvr11ko fyvr11jo fyvr11jk fyvr11ks fyvr12g fyvr12k9 _1qxj1ib9"
id="radix-:r4:"
>
Select Quantity
</span>
<div
class="fyvr11l8 fyvr11mc fyvr11co"
>
<div
class="styles_quantityInputWrapper__50g4m90"
>
<label
class="fyvr11lc _43lu9r4 _43lu9r5 _43lu9r0 fyvr11p4 fyvr11mc fyvr11ck fyvr11l8"
for="quantity"
>
<div
class="fyvr11mc fyvr11e4 fyvr11l8"
>
<span
class="fyvr11r3 fyvr11ik fyvr11k4 fyvr11k0 fyvr11jc fyvr12k9 _1qxj1ib9"
>
Enter quantity
</span>
</div>
<div
class="fyvr12g"
>
<div
class="_1acm19y1 _1acm19y0 fyvr11hc fyvr11i0 fyvr11g0 fyvr11go fyvr1zk fyvr111o fyvr11lk fyvr11ow fyvr11sl fyvr12k9 fyvr1h4 fyvr11cg _1acm19y5 _1acm19y8 _1acm19y4 fyvr11hc fyvr11i0 fyvr11g0 fyvr11go"
>
<input
autocomplete="off"
autocorrect="off"
class="fyvr1z8 fyvr12g _1acm19ya _1acm19y9 fyvr1z4 fyvr1118 fyvr1vc fyvr1xg fyvr12ox fyvr12or fyvr11l4 fyvr11sl fyvr12k9 fyvr12i9 fyvr12g fyvr164 _1acm19yc _1qxj1ib9 _1qxj1ibc _1qxj1ib2 fyvr11r3 fyvr11iw fyvr11kg fyvr11jw fyvr11jg"
decimals="0"
id="quantity"
inputmode="decimal"
maxlength="79"
minlength="1"
name="quantity"
pattern="^[0-9]*[.,]?[0-9]*$"
placeholder="0"
spellcheck="false"
type="text"
value="2"
/>
<div
class="fyvr11l8 fyvr11ow fyvr11cc fyvr11a8"
>
<button
class="fyvr11lk fyvr11jk fyvr134 fyvr11ms fyvr11w3 _140wn8ni _140wn8n0 fyvr11q0 fyvr11qg fyvr11rh fyvr11ow fyvr12i9 fyvr11ra fyvr11l8 _4efw240 _140wn8nv _140wn8nd fyvr12nf fyvr12o9 fyvr12o7 _140wn8n10 _140wn8nw _
|
src/react/ui/modals/BuyModal/modals/__tests__/Modal1155.test.tsx > ERC1155QuantityModal > should calculate total price correctly:
packages/sdk/src/react/ui/modals/BuyModal/modals/__tests__/Modal1155.test.tsx#L221
TestingLibraryElementError: Unable to find an element with the text: 1. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.
Ignored nodes: comments, script, style
<div
class="fyvr11l8 fyvr11o4"
>
<span
class="fyvr11r3 fyvr11ik fyvr11ko fyvr11jo fyvr11j4 fyvr12kl _1qxj1ib9"
>
Total Price
</span>
<div
class="fyvr11l8 fyvr11ow fyvr11cg"
>
<div
class="fyvr11l8 fyvr11ow fyvr11cg"
>
<span
class="fyvr11r3 fyvr11ik fyvr11ko fyvr11jo fyvr11j4 fyvr12kl _1qxj1ib9"
>
Loading...
</span>
</div>
</div>
</div>
Ignored nodes: comments, script, style
<html>
<head />
<body
data-scroll-locked="1"
style="pointer-events: none;"
>
<span
aria-hidden="true"
data-aria-hidden="true"
data-radix-focus-guard=""
style="opacity: 0; position: fixed; pointer-events: none; outline-color: none; outline-style: none; outline-width: initial;"
tabindex="0"
/>
<div
aria-hidden="true"
data-aria-hidden="true"
/>
<div
aria-hidden="true"
class="modal_dialogOverlay__1ypl6nt0 fyvr1m0 fyvr1o8 fyvr1qg fyvr1so fyvr11vl fyvr11m0 fyvr11rs"
data-aria-hidden="true"
data-state="open"
style="pointer-events: auto;"
/>
<div
aria-describedby="radix-:rb:"
aria-labelledby="radix-:ra:"
class="modal_dialogContent_narrow__1ypl6nt2 modal_dialogContentBase__1ypl6nt1 fyvr11hg fyvr11i4 fyvr11g4 fyvr11gs fyvr11l8 fyvr11ul fyvr11m0 fyvr11rs"
data-state="open"
id="radix-:r9:"
role="dialog"
style="pointer-events: auto;"
tabindex="-1"
>
<div
class="fyvr11l8 fyvr11n4 fyvr11ow fyvr11mc fyvr11co fyvr11m4"
>
<span
class="fyvr11r3 fyvr11is fyvr11ko fyvr11jo fyvr11jk fyvr11ks fyvr12g fyvr12k9 _1qxj1ib9"
id="radix-:ra:"
>
Select Quantity
</span>
<div
class="fyvr11l8 fyvr11mc fyvr11co"
>
<div
class="styles_quantityInputWrapper__50g4m90"
>
<label
class="fyvr11lc _43lu9r4 _43lu9r5 _43lu9r0 fyvr11p4 fyvr11mc fyvr11ck fyvr11l8"
for="quantity"
>
<div
class="fyvr11mc fyvr11e4 fyvr11l8"
>
<span
class="fyvr11r3 fyvr11ik fyvr11k4 fyvr11k0 fyvr11jc fyvr12k9 _1qxj1ib9"
>
Enter quantity
</span>
</div>
<div
class="fyvr12g"
>
<div
class="_1acm19y1 _1acm19y0 fyvr11hc fyvr11i0 fyvr11g0 fyvr11go fyvr1zk fyvr111o fyvr11lk fyvr11ow fyvr11sl fyvr12k9 fyvr1h4 fyvr11cg _1acm19y5 _1acm19y8 _1acm19y4 fyvr11hc fyvr11i0 fyvr11g0 fyvr11go"
>
<input
autocomplete="off"
autocorrect="off"
class="fyvr1z8 fyvr12g _1acm19ya _1acm19y9 fyvr1z4 fyvr1118 fyvr1vc fyvr1xg fyvr12ox fyvr12or fyvr11l4 fyvr11sl fyvr12k9 fyvr12i9 fyvr12g fyvr164 _1acm19yc _1qxj1ib9 _1qxj1ibc _1qxj1ib2 fyvr11r3 fyvr11iw fyvr11kg fyvr11jw fyvr11jg"
decimals="0"
id="quantity"
inputmode="decimal"
maxlength="79"
minlength="1"
name="quantity"
pattern="^[0-9]*[.,]?[0-9]*$"
placeholder="0"
spellcheck="false"
type="text"
value="1"
/>
<div
class="fyvr11l8 fyvr11ow fyvr11cc fyvr11a8"
>
<button
class="fyvr11lk fyvr11jk fyvr134 fyvr11ms fyvr11w3 _140wn8ni _140wn8n0 fyvr11q0 fyvr11qg fyvr11rh fyvr11ow fyvr12i9 fyvr11ra fyvr11l8 _4efw240 _140wn8nu _140wn8nc fyvr12n9 fyvr12nx _140wn8n10 _140wn8nw _1qxj1ib9
|
src/react/ui/modals/_internal/components/currencyOptionsSelect/__tests__/index.test.tsx > CurrencyOptionsSelect > should render loading skeleton when currencies are loading:
packages/sdk/src/react/ui/modals/_internal/components/currencyOptionsSelect/__tests__/index.test.tsx#L37
TypeError: vi.mocked(...).mockReturnValueOnce is not a function
❯ src/react/ui/modals/_internal/components/currencyOptionsSelect/__tests__/index.test.tsx:37:35
|
src/react/ui/modals/_internal/components/currencyOptionsSelect/__tests__/index.test.tsx > CurrencyOptionsSelect > should set first currency as default when currencies load:
packages/sdk/src/react/ui/modals/_internal/components/currencyOptionsSelect/__tests__/index.test.tsx#L55
AssertionError: expected null to deeply equal { chainId: 1, …(11) }
- Expected:
{
"chainId": 1,
"contractAddress": "0x0000000000000000000000000000000000000000",
"createdAt": "2025-02-18T09:13:57.325Z",
"decimals": 18,
"defaultChainCurrency": false,
"exchangeRate": 1800,
"imageUrl": "https://example.com/eth.png",
"name": "Ethereum",
"nativeCurrency": true,
"status": "active",
"symbol": "ETH",
"updatedAt": "2025-02-18T09:13:57.325Z",
}
+ Received:
null
❯ src/react/ui/modals/_internal/components/currencyOptionsSelect/__tests__/index.test.tsx:55:35
|
src/react/ui/modals/_internal/components/currencyOptionsSelect/__tests__/index.test.tsx > CurrencyOptionsSelect > should set second currency as default when secondCurrencyAsDefault is true:
packages/sdk/src/react/ui/modals/_internal/components/currencyOptionsSelect/__tests__/index.test.tsx#L68
AssertionError: expected null to deeply equal { chainId: 1, …(11) }
- Expected:
{
"chainId": 1,
"contractAddress": "0x1234567890123456789012345678901234567890",
"createdAt": "2025-02-18T09:13:57.325Z",
"decimals": 6,
"defaultChainCurrency": true,
"exchangeRate": 1,
"imageUrl": "https://example.com/usdc.png",
"name": "USD Coin",
"nativeCurrency": false,
"status": "active",
"symbol": "USDC",
"updatedAt": "2025-02-18T09:13:57.325Z",
}
+ Received:
null
❯ src/react/ui/modals/_internal/components/currencyOptionsSelect/__tests__/index.test.tsx:68:35
|
src/react/ui/modals/_internal/components/currencyOptionsSelect/__tests__/index.test.tsx > CurrencyOptionsSelect > should update selected currency when user selects a different option:
packages/sdk/src/react/ui/modals/_internal/components/currencyOptionsSelect/__tests__/index.test.tsx#L85
TestingLibraryElementError: Unable to find an accessible element with the role "combobox"
There are no accessible roles. But there might be some inaccessible roles. If you wish to access them, then set the `hidden` option to `true`. Learn more about this here: https://testing-library.com/docs/dom-testing-library/api-queries#byrole
Ignored nodes: comments, script, style
<body>
<div>
<div
data-testid="skeleton"
>
Loading...
</div>
</div>
</body>
❯ Object.getElementError ../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/config.js:37:19
❯ ../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/query-helpers.js:76:38
❯ ../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/query-helpers.js:52:17
❯ ../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/query-helpers.js:95:19
❯ src/react/ui/modals/_internal/components/currencyOptionsSelect/__tests__/index.test.tsx:85:24
|
Build
Process completed with exit code 1.
|
Build
Cache not found for keys: Linux-pnpm-store-1b6dd330c213a0d9371e53d255a10a96a6325aaff1e5094513f86af058364fbc, Linux-pnpm-store-
|