Create Tests #2
Annotations
2 errors
|
tests/App.test.tsx > App > renders the location list and selected city:
tests/App.test.tsx#L20
TestingLibraryElementError: Unable to find an element with the text: Selected city: sørumsand. 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>
<section
id="center"
>
<div>
Location list
</div>
<div>
Selected city:
Sørumsand
</div>
</section>
<section
id="spacer"
/>
</div>
</body>
❯ Object.getElementError node_modules/@testing-library/dom/dist/config.js:37:19
❯ node_modules/@testing-library/dom/dist/query-helpers.js:76:38
❯ node_modules/@testing-library/dom/dist/query-helpers.js:52:17
❯ node_modules/@testing-library/dom/dist/query-helpers.js:95:19
❯ tests/App.test.tsx:20:19
|
|
lint-and-format
Process completed with exit code 1.
|