feat: Frontend basic #152
main.yml
on: pull_request
build-nextjs
/
nextjs-build
49s
unit-test-frontend
/
nextjs-unit-tests
19s
unit-test-gocert
/
go-unit-tests
17s
go-vet
/
go-vet
20s
go-lint
/
lint
14s
build-gocert
/
go-build
14s
Annotations
3 errors and 1 warning
src/app/page.test.tsx > Page:
ui/src/app/page.test.tsx#L7
TestingLibraryElementError: Unable to find an accessible element with the role "heading" and name "Hello from the Frontend"
There are no accessible roles. But there might be some inaccessible roles. If you wish to access them, then set the `hidden` option to `true`. Learn more about this here: https://testing-library.com/docs/dom-testing-library/api-queries#byrole
Ignored nodes: comments, script, style
<body>
<div>
<div>
Home
</div>
</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
❯ src/app/page.test.tsx:7:19
|
src/app/certificate_requests/row.test.tsx > Certificate Requests Table Row:
ui/src/app/certificate_requests/row.test.tsx#L7
TestingLibraryElementError: Unable to find an accessible element with the role "table"
Here are the accessible roles:
row:
Name "1 CN: example.com SAN: example.com, 127.0.0.1, 1.2.3.4.5.56 outstanding Sign Reject Delete CSR":
<tr
data-test-model-uuid="2f995dee-392e-4459-8eb9-839c501590af"
/>
--------------------------------------------------
cell:
Name "1":
<td
class=""
data-test-column="id"
/>
Name "CN: example.com SAN: example.com, 127.0.0.1, 1.2.3.4.5.56":
<td
class="u-overflow--visible"
data-test-column="details"
/>
Name "outstanding":
<td
class=""
data-test-column="status"
/>
Name "Sign Reject":
<td
class=""
data-test-column="action"
/>
Name "Delete CSR":
<td
class=""
data-test-column="delete"
/>
--------------------------------------------------
paragraph:
Name "":
<p />
Name "":
<p />
--------------------------------------------------
button:
Name "Sign":
<button />
Name "Reject":
<button />
Name "Delete CSR":
<button />
--------------------------------------------------
Ignored nodes: comments, script, style
<body>
<div>
<tr
data-test-model-uuid="2f995dee-392e-4459-8eb9-839c501590af"
>
<td
class=""
data-test-column="id"
>
1
</td>
<td
class="u-overflow--visible"
data-test-column="details"
>
<p>
CN: example.com
</p>
<p>
SAN: example.com, 127.0.0.1, 1.2.3.4.5.56
</p>
</td>
<td
class=""
data-test-column="status"
>
outstanding
</td>
<td
class=""
data-test-column="action"
>
<button>
Sign
</button>
<button>
Reject
</button>
</td>
<td
class=""
data-test-column="delete"
>
<button>
Delete CSR
</button>
</td>
</tr>
</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
❯ src/app/certificate_requests/row.test.tsx:7:19
|
unit-test-frontend / nextjs-unit-tests
Process completed with exit code 1.
|
rock-build / build-rock
Rockcraft revision not provided. Installing from stable
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
frontend-static-files
Expired
|
256 KB |
|
rock
Expired
|
14.7 MB |
|