feat: Allow changing network name before submitting a "Add network" FE-1183 #300
Annotations
1 warning
Run Jest Tests:
packages/app/src/systems/Network/components/NetworkSelector/NetworkSelector.test.tsx#L41
TestingLibraryElementError: Unable to find an accessible element with the role "menuitem" and name "fuel_network-dropdown-item-2"
Here are the accessible roles:
button:
Name "Selected Network":
<button
aria-expanded="false"
aria-haspopup="true"
aria-label="Selected Network"
aria-pressed="false"
class="fuel_Button fuel_Button__size-xs__fLsHLj fuel_Button__cv__ddcnwq fuel_Button-ieUfsTY-css fuel_Dropdown-trigger"
data-state="closed"
id="react-aria-:r3:"
role="button"
type="button"
/>
--------------------------------------------------
img:
Name "Icon ChevronDown":
<i
aria-label="Icon ChevronDown"
class="fuel_Icon fuel_Icon-idhzjXW-css"
role="img"
/>
--------------------------------------------------
Ignored nodes: comments, script, style
<body>
<div>
<div
style="position: fixed; z-index: 9999; top: 16px; left: 16px; right: 16px; bottom: 16px; pointer-events: none;"
/>
<div
class="fuel_Box-flex fuel_Box-flex-ijmViGi-css"
>
<div
class="fuel_Dropdown"
>
<button
aria-expanded="false"
aria-haspopup="true"
aria-label="Selected Network"
aria-pressed="false"
class="fuel_Button fuel_Button__size-xs__fLsHLj fuel_Button__cv__ddcnwq fuel_Button-ieUfsTY-css fuel_Dropdown-trigger"
data-state="closed"
id="react-aria-:r3:"
role="button"
type="button"
>
<span
class="fuel_Text fuel_Text__fontSize-base__kIvyIm fuel_Text-ibRtlWC-css"
>
●
</span>
Local
<i
aria-label="Icon ChevronDown"
class="fuel_Icon fuel_Icon-idhzjXW-css"
role="img"
>
<svg
aria-hidden="true"
class="fuel_Icon fuel_Icon-ChevronDown"
fill="transparent"
focusable="false"
height="16"
stroke-width="1.5"
width="16"
>
<use
xlink:href="[object Object]#ChevronDown"
/>
</svg>
<span
style="position: absolute; border: 0px; width: 1px; height: 1px; padding: 0px; margin: -1px; overflow: hidden; clip: rect(0px, 0px, 0px, 0px); white-space: nowrap; word-wrap: normal;"
>
Icon ChevronDown
</span>
</i>
</button>
</div>
</div>
<div
data-testid="location-display"
>
/
</div>
</div>
</body>
at Object.getElementError (../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/config.js:37:19)
at ../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/query-helpers.js:76:38
at ../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/query-helpers.js:52:17
at ../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/query-helpers.js:95:19
at Object.<anonymous> (src/systems/Network/components/NetworkSelector/NetworkSelector.test.tsx:41:25)
|
Loading