Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ufo22940268/d004b0a4fa9be9ef28a81acee74b852d to your computer and use it in GitHub Desktop.
Save ufo22940268/d004b0a4fa9be9ef28a81acee74b852d to your computer and use it in GitHub Desktop.
TestingLibraryElementError: Unable to find an element by: [data-tn="mlsSearchFilters-descWithCodeTypeaheadCheckbox"]
<body>
<div>
<div
aria-expanded="false"
aria-haspopup="listbox"
aria-labelledby="downshift-0-label"
class="uc-descWithCodeTypeahead"
data-tn="mlsSearchFilters-descWithCodeTypeahead"
role="combobox"
>
<label
class="uc-descWithCodeTypeahead-label textIntent-body--strong"
for="downshift-0-input"
id="downshift-0-label"
>
<div
class="uc-descWithCodeTypeahead-labelText"
>
test
</div>
<span
class="uc-descWithCodeTypeahead-icon uc-descWithCodeTypeahead-magnifyingGlass"
>
<svg
class="cx-btn-icon"
>
<use
xlink:href="/cx-icons/4/cx-icons.cdn.svg#cx-icon-magnifyingGlass_16x16"
/>
</svg>
</span>
<input
aria-autocomplete="list"
aria-labelledby="downshift-0-label"
autocomplete="off"
class="cx-textField uc-descWithCodeTypeahead-textInput"
data-tn="mlsSearchFilters-descWithCodeTypeaheadInput"
id="downshift-0-input"
spellcheck="false"
value=""
/>
<button
aria-haspopup="true"
aria-label="open menu"
class="uc-descWithCodeTypeahead-button uc-descWithCodeTypeahead-icon cx-nakedBtn"
data-tn="mlsSearchFilters-descWithCodeTypeaheadButton"
data-toggle="true"
role="button"
type="button"
>
<svg
class="cx-btn-icon"
>
<use
xlink:href="/cx-icons/4/cx-icons.cdn.svg#cx-icon-chevronDown_16x16"
/>
</svg>
</button>
</label>
</div>
</div>
</body>
at Object.getElementError (/Users/cc/WebstormProjects/uc-frontend/apps/search-mls-filters-modal/node_modules/.pnpm/urbancompass.jfrog.io/@testing-library/dom/7.26.4/node_modules/@testing-library/dom/dist/config.js:37:19)
at /Users/cc/WebstormProjects/uc-frontend/apps/search-mls-filters-modal/node_modules/.pnpm/urbancompass.jfrog.io/@testing-library/dom/7.26.4/node_modules/@testing-library/dom/dist/query-helpers.js:90:38
at /Users/cc/WebstormProjects/uc-frontend/apps/search-mls-filters-modal/node_modules/.pnpm/urbancompass.jfrog.io/@testing-library/dom/7.26.4/node_modules/@testing-library/dom/dist/query-helpers.js:125:15
at Object.<anonymous> (/Users/cc/WebstormProjects/uc-frontend/apps/search-mls-filters-modal/src/mlses/sf/sf_bareis-component/formik/ConnectedBareisTypeaheadSubfilter/ConnectedBareisTypeaheadSubfilter.test.tsx:875:31)
at Object.asyncJestTest (/Users/cc/WebstormProjects/uc-frontend/apps/search-mls-filters-modal/node_modules/.pnpm/urbancompass.jfrog.io/jest-jasmine2/26.6.2_ts-node@9.0.0/node_modules/jest-jasmine2/build/jasmineAsyncInstall.js:106:37)
at /Users/cc/WebstormProjects/uc-frontend/apps/search-mls-filters-modal/node_modules/.pnpm/urbancompass.jfrog.io/jest-jasmine2/26.6.2_ts-node@9.0.0/node_modules/jest-jasmine2/build/queueRunner.js:45:12
at new Promise (<anonymous>)
at mapper (/Users/cc/WebstormProjects/uc-frontend/apps/search-mls-filters-modal/node_modules/.pnpm/urbancompass.jfrog.io/jest-jasmine2/26.6.2_ts-node@9.0.0/node_modules/jest-jasmine2/build/queueRunner.js:28:19)
at /Users/cc/WebstormProjects/uc-frontend/apps/search-mls-filters-modal/node_modules/.pnpm/urbancompass.jfrog.io/jest-jasmine2/26.6.2_ts-node@9.0.0/node_modules/jest-jasmine2/build/queueRunner.js:75:41
at processTicksAndRejections (internal/process/task_queues.js:97:5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment