User datasets, general styling and layouts, getting query started, and various filtering and sorting #756
Annotations
3 errors
|
Run yarn test --coverage:
packages/openneuro-app/src/scripts/users/__tests__/user-routes.spec.tsx#L63
TestingLibraryElementError: Unable to find an element with the text: John Doe's Datasets. 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
class="container"
>
<header
class="_userHeader_e89d8e"
>
<img
alt="John Doe"
class="_avatar_e89d8e"
src="https://dummyimage.com/200x200/000/fff"
/>
<h2
class="_username_e89d8e"
>
John Doe
</h2>
</header>
</div>
<div
class="_usercontainer_e89d8e container"
>
<section
class="_userSidebar_e89d8e"
>
<div
class="_userCard_81181e"
>
<ul>
<li>
<i
class="fa fa-building"
/>
Unknown Institution
</li>
<li>
<i
class="fas fa-map-marker-alt"
/>
Unknown
</li>
<li>
<i
class="fas fa-envelope"
/>
<a
href="mailto:john.doe@example.com"
rel="noopener noreferrer"
target="_blank"
>
john.doe@example.com
</a>
</li>
<li
class="_orcid_81181e"
>
<i
aria-hidden="true"
class="fab fa-orcid"
/>
<a
aria-label="ORCID profile of John Doe"
href="https://orcid.org/0000-0000-0000-0000"
rel="noopener noreferrer"
target="_blank"
>
0000-0000-0000-0000
</a>
</li>
</ul>
</div>
<div
class="_userAccountTabLinks_c3ba25"
>
<ul
class=" _userAccountTabLinks_c3ba25"
style="--active-offset: 0px;"
>
<li>
<a
aria-current="page"
class="_active_c3ba25"
href="/"
>
User Datasets
</a>
</li>
<li>
<a
class=""
data-testid="user-notifications-tab"
href="/notifications"
>
User Notifications
</a>
</li>
<li>
<a
class=""
href="/account"
>
Account Info
</a>
</li>
</ul>
</div>
</section>
<section
class="_userViews_e89d8e"
>
<p>
Loading datasets...
</p>
</section>
</div>
</div>
</body>
❯ Object.getElementError .yarn/cache/@testing-library-dom-npm-9.3.4-cfb609c4fc-510da752ea.zip/node_modules/@testing-library/dom/dist/config.js:37:19
❯ .yarn/cache/@testing-library-dom-npm-9.3.4-cfb609c4fc-510da752ea.zip/node_modules/@testing-library/dom/dist/query-helpers.js:76:38
❯ .yarn/cache/@testing-library-dom-npm-9.3.4-cfb609c4fc-510da752ea.zip/node_modules/@testing-library/dom/dist/query-helpers.js:52:17
❯ .yarn/cache/@testing-library-dom-npm-9.3.4-cfb609c4fc-510da752ea.zip/node_modules/@testing-library/dom/dist/query-helpers.js:95:19
❯ packages/openneuro-app/src/scripts/users/__tests__/user-routes.spec.tsx:63:19
|
Run yarn test --coverage
Process completed with exit code 1.
|
Loading