fix(deps): update react ecosystem #14694
test.yml
on: pull_request
Test
12m 57s
Lint
3m 14s
Build
3m 7s
Annotations
2 errors and 1 warning
src/app/settings/views/Scripts/ScriptsUpload/ScriptsUpload.test.tsx > ScriptsUpload > accepts files of any mimetype:
src/app/settings/views/Scripts/ScriptsUpload/ScriptsUpload.test.tsx#L76
TestingLibraryElementError: Unable to find an element with the text: foo.sh (2000 bytes) ready for upload.. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.
Ignored nodes: comments, script, style
<body>
<div>
<div
class="u-nudge-down"
>
<div
class="row"
>
<div
class="scripts-upload"
role="presentation"
tabindex="0"
>
<input
aria-label="File upload area"
style="border: 0px; clip: rect(0px, 0px, 0px, 0px); clip-path: inset(50%); height: 1px; margin: 0px -1px -1px 0px; overflow: hidden; padding: 0px; position: absolute; width: 1px; white-space: nowrap;"
tabindex="-1"
type="file"
/>
<p
class="u-no-margin--bottom"
>
Drag 'n' drop a script here ('.sh' file ext required), or click to select a file
</p>
</div>
</div>
<div
class="row"
>
<form
class=""
>
<section
class="content-section"
>
<div
class="row"
>
<div
class="col-12"
>
<div
class="content-section__body"
>
<p>
./foo.sh (2000 bytes) ready for upload.
</p>
</div>
<footer
class="content-section__footer"
>
<div
class="formik-form-buttons"
data-testid="buttons-wrapper"
>
<button
class="p-button--base formik-form-buttons__button"
data-testid="cancel-action"
type="button"
>
Cancel
</button>
<button
class="formik-form-buttons__button p-action-button p-button--positive"
type="submit"
>
Upload script
</button>
</div>
</footer>
</div>
</div>
</section>
</form>
</div>
</div>
</div>
</body>
❯ Object.getElementError node_modules/@testing-library/react/node_modules/@testing-library/dom/dist/config.js:37:19
❯ node_modules/@testing-library/react/node_modules/@testing-library/dom/dist/query-helpers.js:76:38
❯ node_modules/@testing-library/react/node_modules/@testing-library/dom/dist/query-helpers.js:52:17
❯ node_modules/@testing-library/react/node_modules/@testing-library/dom/dist/query-helpers.js:95:19
❯ src/app/settings/views/Scripts/ScriptsUpload/ScriptsUpload.test.tsx:76:16
|
Test
Process completed with exit code 1.
|
Test
No files were found with the provided path: coverage. No artifacts will be uploaded.
|