bland-teacher-17190
10/27/2021, 1:18 PMgreen-football-43791
10/27/2021, 3:17 PMdatahub-web-react
and running yarn install
/ yarn test
from there?green-football-43791
10/27/2021, 3:18 PMbland-teacher-17190
10/27/2021, 5:59 PMyarn install
/`yarn test` under datahub-web-react
, but this time the tests all pass. I did have to install yarn 1.22.15
, though, because I didn't have yarn installed on my system before.bland-teacher-17190
10/27/2021, 5:59 PM> Task :datahub-web-react:yarnTest
FAIL src/app/entity/tag/__tests__/TagProfile.test.tsx (18.245 s)
● TagProfile › renders stats
TestingLibraryElementError: Unable to find an element by: [data-testid="stats-DATASET"]
<body>
<div>
<div
class="ant-message"
>
<div />
</div>
</div>
<div>
<div
class="sc-dlnjwi ccElLy"
>
<div
class="ant-card ant-card-bordered"
>
<div
class="ant-card-head"
>
<div
class="ant-card-head-wrapper"
>
<div
class="ant-card-head-title"
>
<div
class="sc-fujyAs kMqbjE"
>
<div>
<div>
<span
class="ant-typography sc-eCApnc gByhvf"
>
Tag
</span>
<h1
class="ant-typography sc-iCoGMd hGIgQS"
>
abc-sample-tag
</h1>
</div>
<div>
<div>
<span
class="ant-typography sc-jSFjdj jiTnqi"
>
Created by
</span>
</div>
</div>
</div>
<div
class="sc-pNWdM cVEqqs"
>
<span
class="ant-typography sc-gKAaRy bVdZDq"
>
Applied to
</span>
<div>
<span
class="ant-typography sc-kEqXSa hBaExz"
>
Loading...
</span>
</div>
</div>
</div>
</div>
</div>
</div>
<div
class="ant-card-body"
>
<div
class="ant-typography"
style="color: rgb(140, 140, 140); font-size: 13px;"
>
<strong>
Description
</strong>
</div>
<span
class="ant-typography"
>
sample tag description
</span>
</div>
</div>
</div>
</div>
</body>
59 | await waitFor(() => expect(queryByText('Loading')).not.toBeInTheDocument());
60 |
> 61 | expect(getByTestId('stats-DATASET')).toBeInTheDocument();
| ^
62 | expect(getByTestId('stats-CORP_USER')).toBeInTheDocument();
63 | expect(queryByText('1 Datasets')).toBeInTheDocument();
64 | expect(queryByText('2 Users')).toBeInTheDocument();
at Object.getElementError (node_modules/@testing-library/dom/dist/config.js:37:19)
at node_modules/@testing-library/dom/dist/query-helpers.js:90:38
at node_modules/@testing-library/dom/dist/query-helpers.js:62:17
at getByTestId (node_modules/@testing-library/dom/dist/query-helpers.js:111:19)
at Object.<anonymous> (src/app/entity/tag/__tests__/TagProfile.test.tsx:61:16)
green-football-43791
10/27/2021, 6:06 PMgreen-football-43791
10/27/2021, 6:06 PMbland-teacher-17190
10/27/2021, 6:23 PMgradlew build
failed again, same errorgreen-football-43791
10/27/2021, 6:27 PMgreen-football-43791
10/27/2021, 6:27 PMgreen-football-43791
10/27/2021, 6:27 PM1.22.10
green-football-43791
10/27/2021, 6:27 PM16.4.2
green-football-43791
10/27/2021, 6:27 PMbland-teacher-17190
10/27/2021, 6:57 PMbuild
directories were owned by root
, so my previous gradlew clean
were not successful. After I changed the ownership to my non-root user, gradle got past this error. Now I have a "sqlite3 version too old" error, but at least it's solvable. Thanks for your help!green-football-43791
10/27/2021, 7:04 PM