UISACQCOMP-231: Display system change label for version cards #1413
5 fail, 2 skipped, 592 pass in 4m 15s
Annotations
Check warning on line 0 in VersionHistoryPane should display version history cards
github-actions / Jest Unit Test Results
VersionHistoryPane should display version history cards (VersionHistoryPane should display version history cards) failed
artifacts/jest-junit/junit.xml
Raw output
TestingLibraryElementError: Found multiple elements with the text: stripes-acq-components.versionHistory.card.changed
Here are the matching elements:
<span>
stripes-acq-components.versionHistory.card.changed
<ul
class="list changedRecordsList listStyleBullets"
>
<li
class="changedRecord"
>
stripes-acq-components.fundDistribution.name
</li>
<li
class="changedRecord"
>
stripes-acq-components.fundDistribution.value
</li>
</ul>
</span>
<span>
stripes-acq-components.versionHistory.card.changed
<ul
class="list changedRecordsList listStyleBullets"
/>
</span>
(If this is intentional, then use the `*AllBy*` variant of the query (like `queryAllByText`, `getAllByText`, or `findAllByText`)).
<body>
<div>
<section
class="pane focusIndicator"
id="versions-history-pane-orderLineVersions"
style="flex: 0 0 20%;"
>
<div
aria-labelledby="paneHeaderversions-history-pane-orderLineVersions-pane-title"
class="paneHeader"
data-test-pane-header="true"
id="paneHeaderversions-history-pane-orderLineVersions"
role="region"
tabindex="-1"
>
<div
class="paneHeaderButtonsArea first"
>
<div
class="paneMenu"
>
<button
aria-label="stripes-components.closeItem"
class="iconButton medium paneHeaderCloseIcon PaneHeaderIconButton paneHeaderIconButton"
data-test-pane-header-dismiss-button="true"
icon="times"
type="button"
>
<span
class="iconButtonInner mediumOffset PaneHeaderIconButton__inner"
data-test-pane-header-dismiss-button="true"
>
<span>
Icon
</span>
</span>
</button>
</div>
</div>
<div
class="paneHeaderCenter"
>
<div
class="paneHeaderCenterInner"
id="paneHeaderversions-history-pane-orderLineVersions-pane-title"
>
<h2
class="paneTitle"
data-test-pane-header-title="true"
>
<span
class="paneTitleLabel"
>
stripes-acq-components.versionHistory.pane.header
</span>
</h2>
<p
class="paneSub"
data-test-pane-header-sub="true"
id="paneHeaderversions-history-pane-orderLineVersions-subtitle"
>
<span>
stripes-acq-components.versionHistory.pane.sub
</span>
</p>
</div>
</div>
</div>
<div
class="paneContent hasPadding"
id="versions-history-pane-orderLineVersions-content"
tabindex="-1"
>
<div
class="card default roundedBorder"
id="version-card-testId"
>
<div
class="header default"
data-test-card-header="true"
>
<span
class="headerStart"
data-test-card-header-start="true"
>
<b>
2022-11-10
</b>
</span>
<span
data-test-card-header-end="true"
>
<button
aria-label="clock"
aria-labelledby="select-version-testId-tooltip-text"
class="iconButton medium"
disabled=""
icon="clock"
id="select-version-testId"
type="button"
>
<span
class="iconButtonInner mediumOffset"
>
<span>
Icon
</span>
</span>
</button>
<span
class="sr-only"
data-test-tooltip-proximity-element="true"
>
<span
id="select-version-testId-tooltip-text"
role="tooltip"
>
stripes-acq-components.versionHistory.card.select.tooltip
</span>
</span>
</span>
</div>
<div
class="body versionCardBody"
data-test-card-body="true"
>
<span>
stripes-components.metaSection.source
</span>
<span>
<b>
stripes-acq-components.versionHistory.card.version.current
</b>
</span>
<span>
stripes-acq-components.versionHistory.card.changed
<ul
class="list changedRecordsList listStyleBullets"
>
<li
class="changedRecord"
>
stripes-acq-components.fundDistribution.name
</li>
<li
class="changedRecord"
>
stripes-acq-components.fundDistribution.value
</li>
</ul>
</span>
</div>
</div>
<div
class="card positive roundedBorder"
id="version-card-99fb699a-cdf1-11e9-a9d9-f2801f1b9aa1"
>
<div
class="header positive"
data-test-card-header="true"
>
<span
class="headerStart"
data-test-card-header-start="true"
>
<button
class="button link"
data-testid="version-card-title-button"
type="button"
>
<span
class="inner"
>
<b>
2022-11-10
</b>
</span>
</button>
</span>
<span
data-test-card-header-end="true"
>
<button
aria-label="clock"
aria-labelledby="select-version-99fb699a-cdf1-11e9-a9d9-f2801f1b9aa1-tooltip-text"
class="iconButton medium"
icon="clock"
id="select-version-99fb699a-cdf1-11e9-a9d9-f2801f1b9aa1"
type="button"
>
<span
class="iconButtonInner mediumOffset"
>
<span>
Icon
</span>
</span>
</button>
<span
class="sr-only"
data-test-tooltip-proximity-element="true"
>
<span
id="select-version-99fb699a-cdf1-11e9-a9d9-f2801f1b9aa1-tooltip-text"
role="tooltip"
>
stripes-acq-components.versionHistory.card.select.tooltip
</span>
</span>
</span>
</div>
<div
class="body versionCardBody"
data-test-card-body="true"
>
<span>
stripes-components.metaSection.source
</span>
<span>
stripes-acq-components.versionHistory.card.changed
<ul
class="list changedRecordsList listStyleBullets"
/>
</span>
</div>
</div>
</div>
</section>
</div>
</body>
at Object.getElementError (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/@testing-library/dom/dist/config.js:37:19)
at getElementError (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/@testing-library/dom/dist/query-helpers.js:25:35)
at getMultipleElementsFoundError (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/@testing-library/dom/dist/query-helpers.js:29:10)
at /home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/@testing-library/dom/dist/query-helpers.js:66:13
at getByText (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/@testing-library/dom/dist/query-helpers.js:111:19)
at Object.<anonymous> (/home/runner/work/stripes-acq-components/stripes-acq-components/lib/VersionHistory/VersionHistoryPane/VersionHistoryPane.test.js:96:19)
at Object.asyncJestTest (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/jest-jasmine2/build/jasmineAsyncInstall.js:106:37)
at /home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/jest-jasmine2/build/queueRunner.js:45:12
at new Promise (<anonymous>)
at mapper (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/jest-jasmine2/build/queueRunner.js:28:19)
at /home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/jest-jasmine2/build/queueRunner.js:75:41
at processTicksAndRejections (node:internal/process/task_queues:95:5)
github-actions / Jest Unit Test Results
VersionHistoryPane should display "System maintenance update" label if there is only system changes (VersionHistoryPane should display "System maintenance update" label if there is only system changes) failed
artifacts/jest-junit/junit.xml
Raw output
TestingLibraryElementError: Unable to find an element with the text: stripes-acq-components.versionHistory.card.systemChange. 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.
<body>
<div>
<section
class="pane focusIndicator"
id="versions-history-pane-orderLineVersions"
style="flex: 0 0 20%;"
>
<div
aria-labelledby="paneHeaderversions-history-pane-orderLineVersions-pane-title"
class="paneHeader"
data-test-pane-header="true"
id="paneHeaderversions-history-pane-orderLineVersions"
role="region"
tabindex="-1"
>
<div
class="paneHeaderButtonsArea first"
>
<div
class="paneMenu"
>
<button
aria-label="stripes-components.closeItem"
class="iconButton medium paneHeaderCloseIcon PaneHeaderIconButton paneHeaderIconButton"
data-test-pane-header-dismiss-button="true"
icon="times"
type="button"
>
<span
class="iconButtonInner mediumOffset PaneHeaderIconButton__inner"
data-test-pane-header-dismiss-button="true"
>
<span>
Icon
</span>
</span>
</button>
</div>
</div>
<div
class="paneHeaderCenter"
>
<div
class="paneHeaderCenterInner"
id="paneHeaderversions-history-pane-orderLineVersions-pane-title"
>
<h2
class="paneTitle"
data-test-pane-header-title="true"
>
<span
class="paneTitleLabel"
>
stripes-acq-components.versionHistory.pane.header
</span>
</h2>
<p
class="paneSub"
data-test-pane-header-sub="true"
id="paneHeaderversions-history-pane-orderLineVersions-subtitle"
>
<span>
stripes-acq-components.versionHistory.pane.sub
</span>
</p>
</div>
</div>
</div>
<div
class="paneContent hasPadding"
id="versions-history-pane-orderLineVersions-content"
tabindex="-1"
>
<div
class="card default roundedBorder"
id="version-card-testId"
>
<div
class="header default"
data-test-card-header="true"
>
<span
class="headerStart"
data-test-card-header-start="true"
>
<b>
2022-11-10
</b>
</span>
<span
data-test-card-header-end="true"
>
<button
aria-label="clock"
aria-labelledby="select-version-testId-tooltip-text"
class="iconButton medium"
disabled=""
icon="clock"
id="select-version-testId"
type="button"
>
<span
class="iconButtonInner mediumOffset"
>
<span>
Icon
</span>
</span>
</button>
<span
class="sr-only"
data-test-tooltip-proximity-element="true"
>
<span
id="select-version-testId-tooltip-text"
role="tooltip"
>
stripes-acq-components.versionHistory.card.select.tooltip
</span>
</span>
</span>
</div>
<div
class="body versionCardBody"
data-test-card-body="true"
>
<span>
stripes-components.metaSection.source
</span>
<span>
<b>
stripes-acq-components.versionHistory.card.version.current
</b>
</span>
<span>
stripes-acq-components.versionHistory.card.changed
stripes-acq-components.versionHistory.card.systemChange
</span>
</div>
</div>
<div
class="card positive roundedBorder"
id="version-card-99fb699a-cdf1-11e9-a9d9-f2801f1b9aa1"
>
<div
class="header positive"
data-test-card-header="true"
>
<span
class="headerStart"
data-test-card-header-start="true"
>
<button
class="button link"
data-testid="version-card-title-button"
type="button"
>
<span
class="inner"
>
<b>
2022-11-10
</b>
</span>
</button>
</span>
<span
data-test-card-header-end="true"
>
<button
aria-label="clock"
aria-labelledby="select-version-99fb699a-cdf1-11e9-a9d9-f2801f1b9aa1-tooltip-text"
class="iconButton medium"
icon="clock"
id="select-version-99fb699a-cdf1-11e9-a9d9-f2801f1b9aa1"
type="button"
>
<span
class="iconButtonInner mediumOffset"
>
<span>
Icon
</span>
</span>
</button>
<span
class="sr-only"
data-test-tooltip-proximity-element="true"
>
<span
id="select-version-99fb699a-cdf1-11e9-a9d9-f2801f1b9aa1-tooltip-text"
role="tooltip"
>
stripes-acq-components.versionHistory.card.select.tooltip
</span>
</span>
</span>
</div>
<div
class="body versionCardBody"
data-test-card-body="true"
>
<span>
stripes-components.metaSection.source
</span>
<span>
stripes-acq-components.versionHistory.card.changed
<ul
class="list changedRecordsList listStyleBullets"
/>
</span>
</div>
</div>
</div>
</section>
</div>
</body>
at Object.getElementError (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/@testing-library/dom/dist/config.js:37:19)
at /home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/@testing-library/dom/dist/query-helpers.js:90:38
at /home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/@testing-library/dom/dist/query-helpers.js:62:17
at getByText (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/@testing-library/dom/dist/query-helpers.js:111:19)
at Object.<anonymous> (/home/runner/work/stripes-acq-components/stripes-acq-components/lib/VersionHistory/VersionHistoryPane/VersionHistoryPane.test.js:113:19)
at Object.asyncJestTest (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/jest-jasmine2/build/jasmineAsyncInstall.js:106:37)
at /home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/jest-jasmine2/build/queueRunner.js:45:12
at new Promise (<anonymous>)
at mapper (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/jest-jasmine2/build/queueRunner.js:28:19)
at /home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/jest-jasmine2/build/queueRunner.js:75:41
at processTicksAndRejections (node:internal/process/task_queues:95:5)
github-actions / Jest Unit Test Results
VersionHistoryPane should display 'Original version' label for the first version (VersionHistoryPane should display 'Original version' label for the first version) failed
artifacts/jest-junit/junit.xml
Raw output
TestingLibraryElementError: Unable to find an element with the text: stripes-acq-components.versionHistory.card.version.original. 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.
<body>
<div>
<section
class="pane focusIndicator"
id="versions-history-pane-orderLineVersions"
style="flex: 0 0 20%;"
>
<div
aria-labelledby="paneHeaderversions-history-pane-orderLineVersions-pane-title"
class="paneHeader"
data-test-pane-header="true"
id="paneHeaderversions-history-pane-orderLineVersions"
role="region"
tabindex="-1"
>
<div
class="paneHeaderButtonsArea first"
>
<div
class="paneMenu"
>
<button
aria-label="stripes-components.closeItem"
class="iconButton medium paneHeaderCloseIcon PaneHeaderIconButton paneHeaderIconButton"
data-test-pane-header-dismiss-button="true"
icon="times"
type="button"
>
<span
class="iconButtonInner mediumOffset PaneHeaderIconButton__inner"
data-test-pane-header-dismiss-button="true"
>
<span>
Icon
</span>
</span>
</button>
</div>
</div>
<div
class="paneHeaderCenter"
>
<div
class="paneHeaderCenterInner"
id="paneHeaderversions-history-pane-orderLineVersions-pane-title"
>
<h2
class="paneTitle"
data-test-pane-header-title="true"
>
<span
class="paneTitleLabel"
>
stripes-acq-components.versionHistory.pane.header
</span>
</h2>
<p
class="paneSub"
data-test-pane-header-sub="true"
id="paneHeaderversions-history-pane-orderLineVersions-subtitle"
>
<span>
stripes-acq-components.versionHistory.pane.sub
</span>
</p>
</div>
</div>
</div>
<div
class="paneContent hasPadding"
id="versions-history-pane-orderLineVersions-content"
tabindex="-1"
>
<div
class="card positive roundedBorder"
id="version-card-99fb699a-cdf1-11e9-a9d9-f2801f1b9aa1"
>
<div
class="header positive"
data-test-card-header="true"
>
<span
class="headerStart"
data-test-card-header-start="true"
>
<button
class="button link"
data-testid="version-card-title-button"
type="button"
>
<span
class="inner"
>
<b>
2022-11-10
</b>
</span>
</button>
</span>
<span
data-test-card-header-end="true"
>
<button
aria-label="clock"
aria-labelledby="select-version-99fb699a-cdf1-11e9-a9d9-f2801f1b9aa1-tooltip-text"
class="iconButton medium"
icon="clock"
id="select-version-99fb699a-cdf1-11e9-a9d9-f2801f1b9aa1"
type="button"
>
<span
class="iconButtonInner mediumOffset"
>
<span>
Icon
</span>
</span>
</button>
<span
class="sr-only"
data-test-tooltip-proximity-element="true"
>
<span
id="select-version-99fb699a-cdf1-11e9-a9d9-f2801f1b9aa1-tooltip-text"
role="tooltip"
>
stripes-acq-components.versionHistory.card.select.tooltip
</span>
</span>
</span>
</div>
<div
class="body versionCardBody"
data-test-card-body="true"
>
<span>
stripes-components.metaSection.source
</span>
<span>
<b>
stripes-acq-components.versionHistory.card.version.current
</b>
</span>
<span>
stripes-acq-components.versionHistory.card.changed
<ul
class="list changedRecordsList listStyleBullets"
/>
</span>
</div>
</div>
</div>
</section>
</div>
</body>
at Object.getElementError (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/@testing-library/dom/dist/config.js:37:19)
at /home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/@testing-library/dom/dist/query-helpers.js:90:38
at /home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/@testing-library/dom/dist/query-helpers.js:62:17
at getByText (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/@testing-library/dom/dist/query-helpers.js:111:19)
at _callee$ (/home/runner/work/stripes-acq-components/stripes-acq-components/lib/VersionHistory/VersionHistoryPane/VersionHistoryPane.test.js:138:19)
at tryCatch (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/@babel/runtime/helpers/regeneratorRuntime.js:45:16)
at Generator.<anonymous> (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/@babel/runtime/helpers/regeneratorRuntime.js:133:17)
at Generator.next (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/@babel/runtime/helpers/regeneratorRuntime.js:74:21)
at asyncGeneratorStep (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:17)
at _next (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/@babel/runtime/helpers/asyncToGenerator.js:17:9)
at /home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/@babel/runtime/helpers/asyncToGenerator.js:22:7
at new Promise (<anonymous>)
at Object.<anonymous> (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/@babel/runtime/helpers/asyncToGenerator.js:14:12)
at Object.asyncJestTest (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/jest-jasmine2/build/jasmineAsyncInstall.js:106:37)
at /home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/jest-jasmine2/build/queueRunner.js:45:12
at new Promise (<anonymous>)
at mapper (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/jest-jasmine2/build/queueRunner.js:28:19)
at /home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/jest-jasmine2/build/queueRunner.js:75:41
at processTicksAndRejections (node:internal/process/task_queues:95:5)
Check warning on line 0 in VersionCard should display version history card with system update
github-actions / Jest Unit Test Results
VersionCard should display version history card with system update (VersionCard should display version history card with system update) failed
artifacts/jest-junit/junit.xml
Raw output
TestingLibraryElementError: Unable to find an element with the text: /versionChange/. 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.
<body>
<div>
<div
class="card positive roundedBorder"
id="version-card-testCardId"
>
<div
class="header positive"
data-test-card-header="true"
>
<span
class="headerStart"
data-test-card-header-start="true"
>
<button
class="button link"
data-testid="version-card-title-button"
type="button"
>
<span
class="inner"
>
<b>
12/12/2022
</b>
</span>
</button>
</span>
<span
data-test-card-header-end="true"
>
<button
aria-label="clock"
aria-labelledby="select-version-testCardId-tooltip-text"
class="iconButton medium"
icon="clock"
id="select-version-testCardId"
type="button"
>
<span
class="iconButtonInner mediumOffset"
>
<span>
Icon
</span>
</span>
</button>
<span
class="sr-only"
data-test-tooltip-proximity-element="true"
>
<span
id="select-version-testCardId-tooltip-text"
role="tooltip"
>
stripes-acq-components.versionHistory.card.select.tooltip
</span>
</span>
</span>
</div>
<div
class="body versionCardBody"
data-test-card-body="true"
>
<span>
Galt, John
</span>
<span>
stripes-acq-components.versionHistory.card.changed
stripes-acq-components.versionHistory.card.systemChange
</span>
</div>
</div>
</div>
</body>
at Object.getElementError (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/@testing-library/dom/dist/config.js:37:19)
at /home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/@testing-library/dom/dist/query-helpers.js:90:38
at /home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/@testing-library/dom/dist/query-helpers.js:62:17
at getByText (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/@testing-library/dom/dist/query-helpers.js:111:19)
at Object.<anonymous> (/home/runner/work/stripes-acq-components/stripes-acq-components/lib/VersionHistory/VersionCard/VersionCard.test.js:39:19)
at Object.asyncJestTest (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/jest-jasmine2/build/jasmineAsyncInstall.js:106:37)
at /home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/jest-jasmine2/build/queueRunner.js:45:12
at new Promise (<anonymous>)
at mapper (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/jest-jasmine2/build/queueRunner.js:28:19)
at /home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/jest-jasmine2/build/queueRunner.js:75:41
at processTicksAndRejections (node:internal/process/task_queues:95:5)
github-actions / Jest Unit Test Results
getFieldLabels should isSystemChange equal `true` if there are only systemChanges (getFieldLabels should isSystemChange equal `true` if there are only systemChanges) failed
artifacts/jest-junit/junit.xml
Raw output
Error: expect(received).toBeTruthy()
Received: false
at Object.<anonymous> (/home/runner/work/stripes-acq-components/stripes-acq-components/lib/VersionHistory/getFieldLabels.test.js:43:35)
at Object.asyncJestTest (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/jest-jasmine2/build/jasmineAsyncInstall.js:106:37)
at /home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/jest-jasmine2/build/queueRunner.js:45:12
at new Promise (<anonymous>)
at mapper (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/jest-jasmine2/build/queueRunner.js:28:19)
at /home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/jest-jasmine2/build/queueRunner.js:75:41
at processTicksAndRejections (node:internal/process/task_queues:95:5)