Test React Canary #603
Annotations
10 errors and 1 warning
useSWRInfinite › should update the getKey reference with the suspense mode:
test/use-swr-infinite.test.tsx#L1197
Unable to find an element with the text: data: A1,A2,A3. 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
<body>
<div>
loading
</div>
</body>
at waitForWrapper (node_modules/.pnpm/@testing-library+dom@9.2.0/node_modules/@testing-library/dom/dist/wait-for.js:166:27)
at node_modules/.pnpm/@testing-library+dom@9.2.0/node_modules/@testing-library/dom/dist/query-helpers.js:86:33
at Object.findByText (test/use-swr-infinite.test.tsx:1197:18)
|
useSWRInfinite - preload › preload the fetcher function with the suspense mode:
test/use-swr-infinite-preload.test.tsx#L119
Unable to find an element with the text: data:foo. 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
<body>
<div>
loading
</div>
</body>
at waitForWrapper (node_modules/.pnpm/@testing-library+dom@9.2.0/node_modules/@testing-library/dom/dist/wait-for.js:166:27)
at node_modules/.pnpm/@testing-library+dom@9.2.0/node_modules/@testing-library/dom/dist/query-helpers.js:86:33
at Object.findByText (test/use-swr-infinite-preload.test.tsx:119:18)
|
useSWR - preload › preload the fetcher function with the suspense mode:
test/use-swr-preload.test.tsx#L102
Unable to find an element with the text: data:foo. 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
<body>
<div>
loading
</div>
</body>
at waitForWrapper (node_modules/.pnpm/@testing-library+dom@9.2.0/node_modules/@testing-library/dom/dist/wait-for.js:166:27)
at node_modules/.pnpm/@testing-library+dom@9.2.0/node_modules/@testing-library/dom/dist/query-helpers.js:86:33
at Object.findByText (test/use-swr-preload.test.tsx:102:18)
|
useSWR - preload › avoid suspense waterfall by prefetching the resources:
test/use-swr-preload.test.tsx#L139
TestingLibraryElementError: Unable to find an element with the text: data:foo:bar. 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
<body>
<div>
loading
</div>
</body>
at Object.getElementError (node_modules/.pnpm/@testing-library+dom@9.2.0/node_modules/@testing-library/dom/dist/config.js:37:19)
at node_modules/.pnpm/@testing-library+dom@9.2.0/node_modules/@testing-library/dom/dist/query-helpers.js:76:38
at node_modules/.pnpm/@testing-library+dom@9.2.0/node_modules/@testing-library/dom/dist/query-helpers.js:52:17
at node_modules/.pnpm/@testing-library+dom@9.2.0/node_modules/@testing-library/dom/dist/query-helpers.js:95:19
at Object.getByText (test/use-swr-preload.test.tsx:139:12)
|
useSWR - concurrent rendering › should pause when changing the key inside a transition:
test/use-swr-concurrent-rendering.test.tsx#L61
TestingLibraryElementError: Unable to find an element with the text: isPending:0,data:swr-key-5573068. 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
<body>
<div>
<div>
isPending:
0
,
loading
</div>
</div>
</body>
at Object.getElementError (node_modules/.pnpm/@testing-library+dom@9.2.0/node_modules/@testing-library/dom/dist/config.js:37:19)
at node_modules/.pnpm/@testing-library+dom@9.2.0/node_modules/@testing-library/dom/dist/query-helpers.js:76:38
at node_modules/.pnpm/@testing-library+dom@9.2.0/node_modules/@testing-library/dom/dist/query-helpers.js:52:17
at node_modules/.pnpm/@testing-library+dom@9.2.0/node_modules/@testing-library/dom/dist/query-helpers.js:95:19
at Object.getByText (test/use-swr-concurrent-rendering.test.tsx:61:12)
|
useSWR - suspense › should render fallback:
test/use-swr-suspense.test.tsx#L37
Unable to find an element with the text: SWR. 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
<body>
<div>
<div>
fallback
</div>
</div>
</body>
at waitForWrapper (node_modules/.pnpm/@testing-library+dom@9.2.0/node_modules/@testing-library/dom/dist/wait-for.js:166:27)
at node_modules/.pnpm/@testing-library+dom@9.2.0/node_modules/@testing-library/dom/dist/query-helpers.js:86:33
at Object.findByText (test/use-swr-suspense.test.tsx:37:18)
|
useSWR - suspense › should render multiple SWR fallbacks:
test/use-swr-suspense.test.tsx#L71
TestingLibraryElementError: Unable to find an element with the text: 3. 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
<body>
<div>
<div>
fallback
</div>
</div>
</body>
at Object.getElementError (node_modules/.pnpm/@testing-library+dom@9.2.0/node_modules/@testing-library/dom/dist/config.js:37:19)
at node_modules/.pnpm/@testing-library+dom@9.2.0/node_modules/@testing-library/dom/dist/query-helpers.js:76:38
at node_modules/.pnpm/@testing-library+dom@9.2.0/node_modules/@testing-library/dom/dist/query-helpers.js:52:17
at node_modules/.pnpm/@testing-library+dom@9.2.0/node_modules/@testing-library/dom/dist/query-helpers.js:95:19
at Object.getByText (test/use-swr-suspense.test.tsx:71:12)
|
useSWR - suspense › should work for non-promises:
test/use-swr-suspense.test.tsx#L88
Unable to find an element with the text: hello. 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
<body>
<div>
<div>
fallback
</div>
</div>
</body>
at waitForWrapper (node_modules/.pnpm/@testing-library+dom@9.2.0/node_modules/@testing-library/dom/dist/wait-for.js:166:27)
at node_modules/.pnpm/@testing-library+dom@9.2.0/node_modules/@testing-library/dom/dist/query-helpers.js:86:33
at Object.findByText (test/use-swr-suspense.test.tsx:88:18)
|
useSWR - suspense › should throw errors:
test/use-swr-suspense.test.tsx#L117
Unable to find an element with the text: error boundary. 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
<body>
<div>
<div>
fallback
</div>
</div>
</body>
at waitForWrapper (node_modules/.pnpm/@testing-library+dom@9.2.0/node_modules/@testing-library/dom/dist/wait-for.js:166:27)
at node_modules/.pnpm/@testing-library+dom@9.2.0/node_modules/@testing-library/dom/dist/query-helpers.js:86:33
at Object.findByText (test/use-swr-suspense.test.tsx:117:18)
|
useSWR - suspense › should pause when key changes:
test/use-swr-suspense.test.tsx#L206
Unable to find an element with the text: data: swr-key-1098469. 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
<body>
<div>
<div>
fallback
</div>
</div>
</body>
at waitForWrapper (node_modules/.pnpm/@testing-library+dom@9.2.0/node_modules/@testing-library/dom/dist/wait-for.js:166:27)
at node_modules/.pnpm/@testing-library+dom@9.2.0/node_modules/@testing-library/dom/dist/query-helpers.js:86:33
at Object.findByText (test/use-swr-suspense.test.tsx:206:18)
|
test
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|