docs: update changelog and setup docs #555
Annotations
4 errors
|
build
Process completed with exit code 1.
|
|
src/ui/onboardingModal/TokenInputForm.test.tsx > TokenInputForm > should call callback when submit button is pressed:
plugin/src/ui/onboardingModal/TokenInputForm.test.tsx#L88
TestingLibraryElementError: Found multiple elements with the role "button"
Here are the matching elements:
Ignored nodes: comments, script, style
<button
class="react-aria-Button"
data-rac=""
data-react-aria-pressable="true"
id="react-aria-«r19»"
tabindex="0"
type="button"
>
Paste from clipboard
Paste from clipboard
</button>
Ignored nodes: comments, script, style
<button
class="mod-cta"
data-disabled="true"
data-rac=""
data-react-aria-pressable="true"
disabled=""
id="react-aria-«r1b»"
type="submit"
>
Save
</button>
(If this is intentional, then use the `*AllBy*` variant of the query (like `queryAllByText`, `getAllByText`, or `findAllByText`)).
Ignored nodes: comments, script, style
<body>
<div>
<div
class="todoist-onboarding-token-form"
>
<div
class="react-aria-TextField"
data-rac=""
>
<label
class="react-aria-Label"
for="react-aria-«r14»"
id="react-aria-«r15»"
>
API Token
</label>
<div
class="react-aria-Group"
data-rac=""
role="group"
>
<input
aria-labelledby="react-aria-«r15»"
class="react-aria-Input"
data-rac=""
id="react-aria-«r14»"
tabindex="0"
title=""
type="text"
value=""
/>
<div
class="obsidian-icon token-validation-in-progress"
data-icon-size="m"
/>
</div>
</div>
<div
class="controls"
>
<button
class="react-aria-Button"
data-rac=""
data-react-aria-pressable="true"
id="react-aria-«r19»"
tabindex="0"
type="button"
>
Paste from clipboard
Paste from clipboard
</button>
<button
class="mod-cta"
data-disabled="true"
data-rac=""
data-react-aria-pressable="true"
disabled=""
id="react-aria-«r1b»"
type="submit"
>
Save
</button>
</div>
</div>
</div>
</body>
❯ Object.getElementError node_modules/@testing-library/dom/dist/config.js:37:19
❯ getElementError node_modules/@testing-library/dom/dist/query-helpers.js:20:35
❯ getMultipleElementsFoundError node_modules/@testing-library/dom/dist/query-helpers.js:23:10
❯ node_modules/@testing-library/dom/dist/query-helpers.js:55:13
❯ node_modules/@testing-library/dom/dist/query-helpers.js:95:19
❯ src/ui/onboardingModal/TokenInputForm.test.tsx:88:27
|
|
src/ui/onboardingModal/TokenInputForm.test.tsx > TokenInputForm > should enable button if API test accepts token:
plugin/src/ui/onboardingModal/TokenInputForm.test.tsx#L68
TestingLibraryElementError: Found multiple elements with the role "button"
Here are the matching elements:
Ignored nodes: comments, script, style
<button
class="react-aria-Button"
data-rac=""
data-react-aria-pressable="true"
id="react-aria-«r10»"
tabindex="0"
type="button"
>
Paste from clipboard
Paste from clipboard
</button>
Ignored nodes: comments, script, style
<button
class="mod-cta"
data-rac=""
data-react-aria-pressable="true"
id="react-aria-«r12»"
tabindex="0"
type="submit"
>
Save
</button>
(If this is intentional, then use the `*AllBy*` variant of the query (like `queryAllByText`, `getAllByText`, or `findAllByText`)).
Ignored nodes: comments, script, style
<body>
<div>
<div
class="todoist-onboarding-token-form"
>
<div
class="react-aria-TextField"
data-rac=""
>
<label
class="react-aria-Label"
for="react-aria-«rr»"
id="react-aria-«rs»"
>
API Token
</label>
<div
class="react-aria-Group"
data-rac=""
role="group"
>
<input
aria-labelledby="react-aria-«rs»"
class="react-aria-Input"
data-rac=""
id="react-aria-«rr»"
tabindex="0"
title=""
type="text"
value="abcdef"
/>
<div
class="obsidian-icon token-validation-success"
data-icon-size="m"
/>
</div>
</div>
<div
class="controls"
>
<button
class="react-aria-Button"
data-rac=""
data-react-aria-pressable="true"
id="react-aria-«r10»"
tabindex="0"
type="button"
>
Paste from clipboard
Paste from clipboard
</button>
<button
class="mod-cta"
data-rac=""
data-react-aria-pressable="true"
id="react-aria-«r12»"
tabindex="0"
type="submit"
>
Save
</button>
</div>
</div>
</div>
</body>
Ignored nodes: comments, script, style
<html>
<head />
<body>
<div>
<div
class="todoist-onboarding-token-form"
>
<div
class="react-aria-TextField"
data-rac=""
>
<label
class="react-aria-Label"
for="react-aria-«rr»"
id="react-aria-«rs»"
>
API Token
</label>
<div
class="react-aria-Group"
data-rac=""
role="group"
>
<input
aria-labelledby="react-aria-«rs»"
class="react-aria-Input"
data-rac=""
id="react-aria-«rr»"
tabindex="0"
title=""
type="text"
value="abcdef"
/>
<div
class="obsidian-icon token-validation-success"
data-icon-size="m"
/>
</div>
</div>
<div
class="controls"
>
<button
class="react-aria-Button"
data-rac=""
data-react-aria-pressable="true"
id="react-aria-«r10»"
tabindex="0"
type="button"
>
Paste from clipboard
Paste from clipboard
</button>
<button
class="mod-cta"
data-rac=""
data-react-aria-pressable="true"
id="react-aria-«r12»"
tabindex="0"
type="submit"
>
Save
</button>
</div>
</div>
</div>
</body>
</html>
❯ waitForWrapper node_modules/@testing-library/dom/dist/wait-for.js:163:27
❯ src/ui/onboardingModal/TokenInputForm.test.tsx:68:11
|
|
src/ui/onboardingModal/TokenInputForm.test.tsx > TokenInputForm > should initially have the button be disabled:
plugin/src/ui/onboardingModal/TokenInputForm.test.tsx#L17
TestingLibraryElementError: Found multiple elements with the role "button"
Here are the matching elements:
Ignored nodes: comments, script, style
<button
class="react-aria-Button"
data-rac=""
data-react-aria-pressable="true"
id="react-aria-«r5»"
tabindex="0"
type="button"
>
Paste from clipboard
Paste from clipboard
</button>
Ignored nodes: comments, script, style
<button
class="mod-cta"
data-disabled="true"
data-rac=""
data-react-aria-pressable="true"
disabled=""
id="react-aria-«r7»"
type="submit"
>
Save
</button>
(If this is intentional, then use the `*AllBy*` variant of the query (like `queryAllByText`, `getAllByText`, or `findAllByText`)).
Ignored nodes: comments, script, style
<body>
<div>
<div
class="todoist-onboarding-token-form"
>
<div
class="react-aria-TextField"
data-rac=""
>
<label
class="react-aria-Label"
for="react-aria-«r0»"
id="react-aria-«r1»"
>
API Token
</label>
<div
class="react-aria-Group"
data-rac=""
role="group"
>
<input
aria-labelledby="react-aria-«r1»"
class="react-aria-Input"
data-rac=""
id="react-aria-«r0»"
tabindex="0"
title=""
type="text"
value=""
/>
<div
class="obsidian-icon token-validation-in-progress"
data-icon-size="m"
/>
</div>
</div>
<div
class="controls"
>
<button
class="react-aria-Button"
data-rac=""
data-react-aria-pressable="true"
id="react-aria-«r5»"
tabindex="0"
type="button"
>
Paste from clipboard
Paste from clipboard
</button>
<button
class="mod-cta"
data-disabled="true"
data-rac=""
data-react-aria-pressable="true"
disabled=""
id="react-aria-«r7»"
type="submit"
>
Save
</button>
</div>
</div>
</div>
</body>
❯ Object.getElementError node_modules/@testing-library/dom/dist/config.js:37:19
❯ getElementError node_modules/@testing-library/dom/dist/query-helpers.js:20:35
❯ getMultipleElementsFoundError node_modules/@testing-library/dom/dist/query-helpers.js:23:10
❯ node_modules/@testing-library/dom/dist/query-helpers.js:55:13
❯ node_modules/@testing-library/dom/dist/query-helpers.js:95:19
❯ src/ui/onboardingModal/TokenInputForm.test.tsx:17:27
|