chore: move signing keys page to Publisher layout #4645
pr.yml
on: pull_request
run-image
2m 8s
run-dotrun
2m 23s
run-cypress
3m 51s
lint-python
6s
lint-scss
4s
lint-js
58s
test-python
6s
test-js
2m 18s
check-inclusive-naming
7s
Annotations
2 errors
test-js
Process completed with exit code 1.
|
static/js/publisher/pages/SigningKeys/__tests__/SigningKeys.test.tsx > SigningKeys > shows a create signing key form when 'Create new signing key' button clicked:
static/js/publisher/pages/SigningKeys/__tests__/SigningKeys.test.tsx#L51
TestingLibraryElementError: Unable to find an accessible element with the role "textbox" and name "Signing key name"
Here are the accessible roles:
heading:
Name "Signing keys":
<h1
class="p-heading--4"
/>
--------------------------------------------------
searchbox:
Name "Signing keys":
<input
autocomplete="off"
class="p-search-box__input"
id="search"
name="search"
placeholder="Search keys"
required=""
type="search"
value="signing key-1"
/>
--------------------------------------------------
button:
Name "Clear filter":
<button
class="p-button p-search-box__reset"
type="reset"
/>
Name "Search":
<button
class="p-button p-search-box__button"
type="submit"
/>
--------------------------------------------------
link:
Name "Create new signing key":
<a
class="p-button--positive"
data-discover="true"
href="/admin/undefined/signing-keys/create"
/>
--------------------------------------------------
paragraph:
Name "":
<p />
--------------------------------------------------
Ignored nodes: comments, script, style
<body>
<div>
<div
class="u-fixed-width"
>
<h1
class="p-heading--4"
>
Signing keys
</h1>
</div>
<div
class="row"
>
<div
class="col-6"
>
<div
class="p-search-box"
>
<label
class="u-off-screen"
for="search"
>
Signing keys
</label>
<input
autocomplete="off"
class="p-search-box__input"
id="search"
name="search"
placeholder="Search keys"
required=""
type="search"
value="signing key-1"
/>
<button
class="p-button p-search-box__reset"
type="reset"
>
<i
class="p-icon--close"
>
Clear filter
</i>
</button>
<button
class="p-button p-search-box__button"
type="submit"
>
<i
class="p-icon--search"
>
Search
</i>
</button>
</div>
</div>
<div
class="u-align--right col-6"
>
<a
class="p-button--positive"
data-discover="true"
href="/admin/undefined/signing-keys/create"
>
Create new signing key
</a>
</div>
</div>
<div
class="u-fixed-width u-flex-column u-flex-grow"
>
<p>
<i
class="u-animation--spin p-icon--spinner"
/>
Fetching signing keys...
</p>
</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
❯ static/js/publisher/pages/SigningKeys/__tests__/SigningKeys.test.tsx:51:14
|