🍪 Cookie Jar v3.1.0 Release - Production Ready #13
integration-tests.yml
on: pull_request
Client Integration Tests
2m 38s
Annotations
10 errors
|
__tests__/hooks/enhanced-error-handling.test.tsx > Enhanced Error Handling Tests > useEnhancedNFTValidation Error Scenarios > handles contract validation timeout:
client/__tests__/hooks/enhanced-error-handling.test.tsx#L284
AssertionError: the given combination of arguments (null and string) is invalid for this assertion. You can use an array, a map, an object, a set, a string, or a weakset instead of a string
Ignored nodes: comments, script, style
<html>
<head />
<body>
<div />
</body>
</html>
❯ __tests__/hooks/enhanced-error-handling.test.tsx:284:38
❯ runWithExpensiveErrorDiagnosticsDisabled ../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/config.js:47:12
❯ checkCallback ../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/wait-for.js:124:77
❯ Timeout.checkRealTimersCallback ../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/wait-for.js:118:16
|
|
__tests__/hooks/enhanced-error-handling.test.tsx > Enhanced Error Handling Tests > useEnhancedNFTValidation Error Scenarios > handles malicious contract detection:
client/__tests__/hooks/enhanced-error-handling.test.tsx#L266
AssertionError: expected undefined to be true // Object.is equality
Ignored nodes: comments, script, style
<html>
<head />
<body>
<div />
</body>
</html>
- Expected:
true
+ Received:
undefined
❯ __tests__/hooks/enhanced-error-handling.test.tsx:266:41
❯ runWithExpensiveErrorDiagnosticsDisabled ../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/config.js:47:12
❯ checkCallback ../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/wait-for.js:124:77
❯ Timeout.checkRealTimersCallback ../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/wait-for.js:118:16
|
|
__tests__/hooks/enhanced-error-handling.test.tsx > Enhanced Error Handling Tests > useNFTMetadata Error Scenarios > handles excessive metadata size:
client/__tests__/hooks/enhanced-error-handling.test.tsx#L236
AssertionError: expected 10000 to be less than or equal to 100
Ignored nodes: comments, script, style
<html>
<head />
<body>
<div />
</body>
</html>
❯ __tests__/hooks/enhanced-error-handling.test.tsx:236:40
❯ runWithExpensiveErrorDiagnosticsDisabled ../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/config.js:47:12
❯ checkCallback ../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/wait-for.js:124:77
❯ Timeout.checkRealTimersCallback ../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/wait-for.js:118:16
|
|
__tests__/hooks/enhanced-error-handling.test.tsx > Enhanced Error Handling Tests > useNFTMetadata Error Scenarios > handles missing contract metadata:
client/__tests__/hooks/enhanced-error-handling.test.tsx#L212
AssertionError: the given combination of arguments (null and string) is invalid for this assertion. You can use an array, a map, an object, a set, a string, or a weakset instead of a string
Ignored nodes: comments, script, style
<html>
<head />
<body>
<div />
</body>
</html>
❯ __tests__/hooks/enhanced-error-handling.test.tsx:212:38
❯ runWithExpensiveErrorDiagnosticsDisabled ../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/config.js:47:12
❯ checkCallback ../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/wait-for.js:124:77
❯ Timeout.checkRealTimersCallback ../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/wait-for.js:118:16
|
|
__tests__/hooks/enhanced-error-handling.test.tsx > Enhanced Error Handling Tests > useNFTMetadata Error Scenarios > handles malformed metadata gracefully:
client/__tests__/hooks/enhanced-error-handling.test.tsx#L197
AssertionError: expected 'javascript:alert("xss")' to be '' // Object.is equality
Ignored nodes: comments, script, style
<html>
<head />
<body>
<div />
</body>
</html>
- Expected
+ Received
+ javascript:alert("xss")
❯ __tests__/hooks/enhanced-error-handling.test.tsx:197:44
❯ runWithExpensiveErrorDiagnosticsDisabled ../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/config.js:47:12
❯ checkCallback ../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/wait-for.js:124:77
❯ Timeout.checkRealTimersCallback ../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/wait-for.js:118:16
|
|
__tests__/components/ProtocolGateSelector.test.tsx > ProtocolGateSelector > Configuration State Management > resets configuration when switching methods:
client/__tests__/components/ProtocolGateSelector.test.tsx#L384
TestingLibraryElementError: Unable to find an element by: [data-testid="method-unlock"]
Ignored nodes: comments, script, style
<body>
<div>
<div
data-testid="protocol-gate-selector"
>
<h2>
Access Control Method
</h2>
<p>
Choose how users will prove eligibility to access this jar
</p>
<div
data-testid="method-grid"
>
<div
class=""
data-testid="method-allowlist"
style="cursor: pointer; border: 1px solid gray; padding: 16px; margin: 8px; border-radius: 8px;"
>
<div
data-testid="allowlist-badge"
>
Simple
</div>
<h3
data-testid="allowlist-name"
>
Allowlist
</h3>
<p
data-testid="allowlist-description"
>
Pre-approved addresses can access funds
</p>
<div
data-testid="allowlist-pros"
>
<p>
Pros:
</p>
<ul>
<li>
Direct control
</li>
<li>
Gas efficient
</li>
<li>
Simple to manage
</li>
</ul>
</div>
<div
data-testid="allowlist-cons"
>
<p>
Considerations:
</p>
<ul>
<li>
Manual management
</li>
<li>
Not scalable
</li>
<li>
Requires updates
</li>
</ul>
</div>
<div
data-testid="allowlist-best-for"
>
<p>
Best for:
</p>
<ul>
<li>
Small teams
</li>
<li>
Known participants
</li>
<li>
High control needs
</li>
</ul>
</div>
</div>
<div
class="selected"
data-testid="method-nft"
style="cursor: pointer; border: 2px solid orange; padding: 16px; margin: 8px; border-radius: 8px;"
>
<div
data-testid="nft-badge"
>
Popular
</div>
<h3
data-testid="nft-name"
>
NFT Collection
</h3>
<p
data-testid="nft-description"
>
NFT holders from specific collections can access
</p>
<div
data-testid="nft-pros"
>
<p>
Pros:
</p>
<ul>
<li>
Scalable
</li>
<li>
Tradeable access
</li>
<li>
Automated
</li>
</ul>
</div>
<div
data-testid="nft-cons"
>
<p>
Considerations:
</p>
<ul>
<li>
Gas for validation
</li>
<li>
NFT dependency
</li>
<li>
Market volatility
</li>
</ul>
</div>
<div
data-testid="nft-best-for"
>
<p>
Best for:
</p>
<ul>
<li>
NFT communities
</li>
<li>
Token-gated access
</li>
<li>
Tradeable membership
</li>
</ul>
</div>
</div>
<div
class=""
data-testid="method-poap"
style="cursor: pointer; border: 1px solid gray; padding: 16px; margin: 8px; border-radius: 8px;"
>
<div
data-testid="poap-badge"
>
|
|
__tests__/components/ProtocolGateSelector.test.tsx > ProtocolGateSelector > Method Information Display > shows pros and cons for decision making:
client/__tests__/components/ProtocolGateSelector.test.tsx#L346
TestingLibraryElementError: Found multiple elements with the text: Event-based
Here are the matching elements:
Ignored nodes: comments, script, style
<div
data-testid="poap-badge"
>
Event-based
</div>
Ignored nodes: comments, script, style
<li>
Event-based
</li>
(If this is intentional, then use the `*AllBy*` variant of the query (like `queryAllByText`, `getAllByText`, or `findAllByText`)).
Ignored nodes: comments, script, style
<body>
<div>
<div
data-testid="protocol-gate-selector"
>
<h2>
Access Control Method
</h2>
<p>
Choose how users will prove eligibility to access this jar
</p>
<div
data-testid="method-grid"
>
<div
class="selected"
data-testid="method-allowlist"
style="cursor: pointer; border: 2px solid orange; padding: 16px; margin: 8px; border-radius: 8px;"
>
<div
data-testid="allowlist-badge"
>
Simple
</div>
<h3
data-testid="allowlist-name"
>
Allowlist
</h3>
<p
data-testid="allowlist-description"
>
Pre-approved addresses can access funds
</p>
<div
data-testid="allowlist-pros"
>
<p>
Pros:
</p>
<ul>
<li>
Direct control
</li>
<li>
Gas efficient
</li>
<li>
Simple to manage
</li>
</ul>
</div>
<div
data-testid="allowlist-cons"
>
<p>
Considerations:
</p>
<ul>
<li>
Manual management
</li>
<li>
Not scalable
</li>
<li>
Requires updates
</li>
</ul>
</div>
<div
data-testid="allowlist-best-for"
>
<p>
Best for:
</p>
<ul>
<li>
Small teams
</li>
<li>
Known participants
</li>
<li>
High control needs
</li>
</ul>
</div>
</div>
<div
class=""
data-testid="method-nft"
style="cursor: pointer; border: 1px solid gray; padding: 16px; margin: 8px; border-radius: 8px;"
>
<div
data-testid="nft-badge"
>
Popular
</div>
<h3
data-testid="nft-name"
>
NFT Collection
</h3>
<p
data-testid="nft-description"
>
NFT holders from specific collections can access
</p>
<div
data-testid="nft-pros"
>
<p>
Pros:
</p>
<ul>
<li>
Scalable
</li>
<li>
Tradeable access
</li>
<li>
Automated
</li>
</ul>
</div>
<div
data-testid="nft-cons"
>
<p>
Considerations:
</p>
<ul>
<li>
Gas for validation
</li>
<li>
NFT dependency
</li>
<li>
Market volatility
</li>
</ul>
</div>
<div
data-testid="nft-best-for"
>
<p>
Best for:
</p>
<ul>
<li>
NFT communities
</li>
<li>
Token-gated access
</li>
<li>
Tradeable membership
|
|
__tests__/components/ProtocolGateSelector.test.tsx > ProtocolGateSelector > shows correct configuration for each method:
client/__tests__/components/ProtocolGateSelector.test.tsx#L284
TestingLibraryElementError: Unable to find an element by: [data-testid="method-unlock"]
Ignored nodes: comments, script, style
<body>
<div>
<div
data-testid="protocol-gate-selector"
>
<h2>
Access Control Method
</h2>
<p>
Choose how users will prove eligibility to access this jar
</p>
<div
data-testid="method-grid"
>
<div
class=""
data-testid="method-allowlist"
style="cursor: pointer; border: 1px solid gray; padding: 16px; margin: 8px; border-radius: 8px;"
>
<div
data-testid="allowlist-badge"
>
Simple
</div>
<h3
data-testid="allowlist-name"
>
Allowlist
</h3>
<p
data-testid="allowlist-description"
>
Pre-approved addresses can access funds
</p>
<div
data-testid="allowlist-pros"
>
<p>
Pros:
</p>
<ul>
<li>
Direct control
</li>
<li>
Gas efficient
</li>
<li>
Simple to manage
</li>
</ul>
</div>
<div
data-testid="allowlist-cons"
>
<p>
Considerations:
</p>
<ul>
<li>
Manual management
</li>
<li>
Not scalable
</li>
<li>
Requires updates
</li>
</ul>
</div>
<div
data-testid="allowlist-best-for"
>
<p>
Best for:
</p>
<ul>
<li>
Small teams
</li>
<li>
Known participants
</li>
<li>
High control needs
</li>
</ul>
</div>
</div>
<div
class=""
data-testid="method-nft"
style="cursor: pointer; border: 1px solid gray; padding: 16px; margin: 8px; border-radius: 8px;"
>
<div
data-testid="nft-badge"
>
Popular
</div>
<h3
data-testid="nft-name"
>
NFT Collection
</h3>
<p
data-testid="nft-description"
>
NFT holders from specific collections can access
</p>
<div
data-testid="nft-pros"
>
<p>
Pros:
</p>
<ul>
<li>
Scalable
</li>
<li>
Tradeable access
</li>
<li>
Automated
</li>
</ul>
</div>
<div
data-testid="nft-cons"
>
<p>
Considerations:
</p>
<ul>
<li>
Gas for validation
</li>
<li>
NFT dependency
</li>
<li>
Market volatility
</li>
</ul>
</div>
<div
data-testid="nft-best-for"
>
<p>
Best for:
</p>
<ul>
<li>
NFT communities
</li>
<li>
Token-gated access
</li>
<li>
Tradeable membership
</li>
</ul>
</div>
</div>
<div
class="selected"
data-testid="method-poap"
style="cursor: pointer; border: 2px solid orange; padding: 16px; margin: 8px; border-radius: 8px;"
>
<div
data-testid="poap-badge"
>
|
|
__tests__/components/NFTGateInput.test.tsx:
client/__tests__/components/NFTGateInput.test.tsx#L52
Error: Cannot find module '@/hooks/useNftValidation'
Require stack:
- /home/runner/work/cookie-jar/cookie-jar/client/__tests__/components/NFTGateInput.test.tsx
❯ __tests__/components/NFTGateInput.test.tsx:52:42
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'MODULE_NOT_FOUND', requireStack: [ '/home/runner/work/cookie-jar/cookie-jar/client/__tests__/components/NFTGateInput.test.tsx' ] }
|
|
__tests__/components/EnhancedNFTGateInput.test.tsx:
client/__tests__/components/EnhancedNFTGateInput.test.tsx#L62
Error: Cannot find module '@/hooks/useNftValidation'
Require stack:
- /home/runner/work/cookie-jar/cookie-jar/client/__tests__/components/EnhancedNFTGateInput.test.tsx
❯ __tests__/components/EnhancedNFTGateInput.test.tsx:62:42
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'MODULE_NOT_FOUND', requireStack: [ '/home/runner/work/cookie-jar/cookie-jar/client/__tests__/components/EnhancedNFTGateInput.test.tsx' ] }
|
Artifacts
Produced during runtime
| Name | Size | Digest | |
|---|---|---|---|
|
integration-test-results
Expired
|
2.85 KB |
sha256:de52f056c723dc960c8bd3989aca6a7e26586105f08dfe4d5a9ef8f59187fef6
|
|