feat: Frontend basic #153
main.yml
on: pull_request
build-nextjs
/
nextjs-build
44s
unit-test-frontend
/
nextjs-unit-tests
16s
build-gocert
/
go-build
go-lint
/
lint
go-vet
/
go-vet
unit-test-gocert
/
go-unit-tests
Annotations
4 errors
src/app/page.test.tsx > HomePage:
ui/src/app/page.test.tsx#L7
TestingLibraryElementError: Unable to find an accessible element with the role "heading" and name "Welcome to GoCert"
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>
Welcome to GoCert
</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 "tr"
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.
|
build-nextjs / nextjs-build
Process completed with exit code 1.
|