Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Summary of all failing tests
- FAIL packages/esm-patient-chart-app/src/visit/visits-widget/past-visits-components/visits-table/visits-table.test.tsx (14.897 s)
- ● EncounterList › renders a tabular overview of the patient's clinical encounters
- TestingLibraryElementError: Unable to find an accessible element with the role "row" and name `/18-Jan-2022, 04:25\s+PM Facility Visit Admission/i`
- Here are the accessible roles:
- region:
- Name "data table toolbar":
- <section
- aria-label="data table toolbar"
- class="cds--table-toolbar"
- />
- --------------------------------------------------
- button:
- Name "Filter by encounter type:":
- <button
- aria-disabled="false"
- aria-expanded="false"
- aria-haspopup="listbox"
- aria-labelledby="downshift-0-label downshift-0-toggle-button"
- class="cds--list-box__field"
- id="downshift-0-toggle-button"
- title="All"
- type="button"
- />
- Name "Clear search input":
- <button
- aria-label="Clear search input"
- class="cds--search-close cds--search-close--hidden"
- title="Clear search input"
- type="button"
- />
- Name "Expand all rows":
- <button
- aria-label="Expand all rows"
- class="cds--table-expand__button"
- type="button"
- />
- Name "Expand current row":
- <button
- aria-label="Expand current row"
- class="cds--table-expand__button"
- type="button"
- />
- Name "Encounter table actions menu":
- <button
- aria-expanded="false"
- aria-haspopup="true"
- aria-label="Encounter table actions menu"
- class="cds--overflow-menu cds--overflow-menu--lg"
- data-floating-menu-container="true"
- type="button"
- />
- Name "Expand current row":
- <button
- aria-label="Expand current row"
- class="cds--table-expand__button"
- type="button"
- />
- Name "Encounter table actions menu":
- <button
- aria-expanded="false"
- aria-haspopup="true"
- aria-label="Encounter table actions menu"
- class="cds--overflow-menu cds--overflow-menu--lg"
- data-floating-menu-container="true"
- type="button"
- />
- Name "Expand current row":
- <button
- aria-label="Expand current row"
- class="cds--table-expand__button"
- type="button"
- />
- Name "Encounter table actions menu":
- <button
- aria-expanded="false"
- aria-haspopup="true"
- aria-label="Encounter table actions menu"
- class="cds--overflow-menu cds--overflow-menu--lg"
- data-floating-menu-container="true"
- type="button"
- />
- Name "Previous page":
- <button
- aria-labelledby="tooltip-8"
- class="cds--btn--icon-only cds--pagination__button cds--pagination__button--backward cds--pagination__button--no-index cds--btn cds--btn--md cds--btn--ghost cds--btn--disabled"
- disabled=""
- tabindex="0"
- type="button"
- />
- Name "Next page":
- <button
- aria-labelledby="tooltip-10"
- class="cds--btn--icon-only cds--pagination__button cds--pagination__button--forward cds--pagination__button--no-index cds--btn cds--btn--md cds--btn--ghost cds--btn--disabled"
- disabled=""
- tabindex="0"
- type="button"
- />
- --------------------------------------------------
- img:
- Name "Open menu":
- <svg
- aria-label="Open menu"
- fill="currentColor"
- focusable="false"
- height="16"
- name="chevron--down"
- preserveAspectRatio="xMidYMid meet"
- role="img"
- viewBox="0 0 16 16"
- width="16"
- xmlns="http://www.w3.org/2000/svg"
- />
- Name "Open and close list of options":
- <svg
- aria-label="Open and close list of options"
- class="cds--overflow-menu__icon"
- fill="currentColor"
- focusable="false"
- height="16"
- preserveAspectRatio="xMidYMid meet"
- role="img"
- viewBox="0 0 32 32"
- width="16"
- xmlns="http://www.w3.org/2000/svg"
- />
- Name "Open and close list of options":
- <svg
- aria-label="Open and close list of options"
- class="cds--overflow-menu__icon"
- fill="currentColor"
- focusable="false"
- height="16"
- preserveAspectRatio="xMidYMid meet"
- role="img"
- viewBox="0 0 32 32"
- width="16"
- xmlns="http://www.w3.org/2000/svg"
- />
- Name "Open and close list of options":
- <svg
- aria-label="Open and close list of options"
- class="cds--overflow-menu__icon"
- fill="currentColor"
- focusable="false"
- height="16"
- preserveAspectRatio="xMidYMid meet"
- role="img"
- viewBox="0 0 32 32"
- width="16"
- xmlns="http://www.w3.org/2000/svg"
- />
- --------------------------------------------------
- listbox:
- Name "Filter by encounter type:":
- <div
- aria-labelledby="downshift-0-label"
- class="cds--list-box__menu"
- id="downshift-0-menu"
- role="listbox"
- tabindex="-1"
- />
- --------------------------------------------------
- search:
- Name "Filter table":
- <div
- aria-labelledby="1-search"
- class="cds--search cds--search--lg search cds--toolbar-search-container-active cds--toolbar-search-container-expandable"
- role="search"
- />
- --------------------------------------------------
- searchbox:
- Name "Filter table":
- <input
- autocomplete="off"
- class="cds--search-input"
- id="1"
- placeholder="Search this list"
- role="searchbox"
- tabindex="0"
- type="text"
- value=""
- />
- --------------------------------------------------
- table:
- Name "":
- <table
- class="cds--data-table cds--data-table--lg cds--data-table--zebra cds--data-table--visible-overflow-menu"
- />
- --------------------------------------------------
- rowgroup:
- Name "":
- <thead />
- Name "":
- <tbody
- aria-live="polite"
- />
- --------------------------------------------------
- row:
- Name "Date & time Visit type Encounter type Provider":
- <tr />
- Name "18-Jan-2022, 09:55 PM Facility Visit Admission -- Open and close list of options":
- <tr
- class="cds--parent-row"
- data-parent-row="true"
- />
- Name "":
- <tr
- class="cds--expandable-row hiddenRow"
- data-child-row="true"
- />
- Name "03-Aug-2021, 06:17 AM Facility Visit Visit Note User One Open and close list of options":
- <tr
- class="cds--parent-row"
- data-parent-row="true"
- />
- Name "":
- <tr
- class="cds--expandable-row hiddenRow"
- data-child-row="true"
- />
- Name "05-Jul-2021, 03:37 PM Facility Visit Consultation Dennis The Doctor Open and close list of options":
- <tr
- class="cds--parent-row"
- data-parent-row="true"
- />
- Name "":
- <tr
- class="cds--expandable-row hiddenRow"
- data-child-row="true"
- />
- --------------------------------------------------
- columnheader:
- Name "":
- <th
- class="cds--table-expand"
- id="expand"
- scope="col"
- />
- Name "Date & time":
- <th
- class="tableHeader"
- scope="col"
- />
- Name "Visit type":
- <th
- class="tableHeader"
- scope="col"
- />
- Name "Encounter type":
- <th
- class="tableHeader"
- scope="col"
- />
- Name "Provider":
- <th
- class="tableHeader"
- scope="col"
- />
- Name "":
- <th
- class="cds--table-expand"
- id="expand"
- scope="col"
- />
- --------------------------------------------------
- cell:
- Name "":
- <td
- class="cds--table-expand"
- headers="expand"
- />
- Name "18-Jan-2022, 09:55 PM":
- <td />
- Name "Facility Visit":
- <td />
- Name "Admission":
- <td />
- Name "--":
- <td />
- Name "Open and close list of options":
- <td
- class="cds--table-column-menu"
- />
- Name "":
- <td
- colspan="6"
- />
- Name "":
- <td
- class="cds--table-expand"
- headers="expand"
- />
- Name "03-Aug-2021, 06:17 AM":
- <td />
- Name "Facility Visit":
- <td />
- Name "Visit Note":
- <td />
- Name "User One":
- <td />
- Name "Open and close list of options":
- <td
- class="cds--table-column-menu"
- />
- Name "":
- <td
- colspan="6"
- />
- Name "":
- <td
- class="cds--table-expand"
- headers="expand"
- />
- Name "05-Jul-2021, 03:37 PM":
- <td />
- Name "Facility Visit":
- <td />
- Name "Consultation":
- <td />
- Name "Dennis The Doctor":
- <td />
- Name "Open and close list of options":
- <td
- class="cds--table-column-menu"
- />
- Name "":
- <td
- colspan="6"
- />
- --------------------------------------------------
- combobox:
- Name "Items per page:":
- <select
- class="cds--select-input"
- id="cds-pagination-select-id-11"
- />
- Name "Page number, of 1 pages":
- <select
- class="cds--select-input"
- id="cds-pagination-select-id-11-right"
- />
- --------------------------------------------------
- option:
- Name "20":
- <option
- class="cds--select-option"
- value="20"
- />
- Name "1":
- <option
- class="cds--select-option"
- value="1"
- />
- --------------------------------------------------
- Ignored nodes: comments, script, style
- <body>
- <div>
- <div
- class="tableContainer cds--data-table-container"
- >
- <section
- aria-label="data table toolbar"
- class="cds--table-toolbar"
- >
- <div
- class="cds--toolbar-content"
- >
- <div
- class="filterContainer"
- >
- <div
- class="cds--dropdown__wrapper cds--list-box__wrapper cds--dropdown__wrapper--inline cds--list-box__wrapper--inline"
- >
- <label
- class="cds--label"
- for="downshift-0-toggle-button"
- id="downshift-0-label"
- >
- Filter by encounter type:
- </label>
- <div
- class="cds--dropdown cds--dropdown--inline cds--dropdown--lg cds--list-box cds--list-box--lg"
- id="serviceFilter"
- >
- <button
- aria-disabled="false"
- aria-expanded="false"
- aria-haspopup="listbox"
- aria-labelledby="downshift-0-label downshift-0-toggle-button"
- class="cds--list-box__field"
- id="downshift-0-toggle-button"
- title="All"
- type="button"
- >
- <span
- class="cds--list-box__label"
- >
- All
- </span>
- <div
- class="cds--list-box__menu-icon"
- >
- <svg
- aria-label="Open menu"
- fill="currentColor"
- focusable="false"
- height="16"
- name="chevron--down"
- preserveAspectRatio="xMidYMid meet"
- role="img"
- viewBox="0 0 16 16"
- width="16"
- xmlns="http://www.w3.org/2000/svg"
- >
- <path
- d="M8 11L3 6 3.7 5.3 8 9.6 12.3 5.3 13 6z"
- />
- <title>
- Open menu
- </title>
- </svg>
- </div>
- </button>
- <div
- aria-labelledby="downshift-0-label"
- class="cds--list-box__menu"
- id="downshift-0-menu"
- role="listbox"
- tabindex="-1"
- />
- </div>
- </div>
- </div>
- <div
- aria-labelledby="1-search"
- class="cds--search cds--search--lg search cds--toolbar-search-container-active cds--toolbar-search-container-expandable"
- role="search"
- >
- <div
- class="cds--search-magnifier"
- >
- <svg
- aria-hidden="true"
- class="cds--search-magnifier-icon"
- fill="currentColor"
- focusable="false"
- height="16"
- preserveAspectRatio="xMidYMid meet"
- viewBox="0 0 16 16"
- width="16"
- xmlns="http://www.w3.org/2000/svg"
- >
- <path
- d="M15,14.3L10.7,10c1.9-2.3,1.6-5.8-0.7-7.7S4.2,0.7,2.3,3S0.7,8.8,3,10.7c2,1.7,5,1.7,7,0l4.3,4.3L15,14.3z M2,6.5 C2,4,4,2,6.5,2S11,4,11,6.5S9,11,6.5,11S2,9,2,6.5z"
- />
- </svg>
- </div>
- <label
- class="cds--label"
- for="1"
- id="1-search"
- >
- Filter table
- </label>
- <input
- autocomplete="off"
- class="cds--search-input"
- id="1"
- placeholder="Search this list"
- role="searchbox"
- tabindex="0"
- type="text"
- value=""
- />
- <button
- aria-label="Clear search input"
- class="cds--search-close cds--search-close--hidden"
- title="Clear search input"
- type="button"
- >
- <svg
- aria-hidden="true"
- fill="currentColor"
- focusable="false"
- height="16"
- preserveAspectRatio="xMidYMid meet"
- viewBox="0 0 32 32"
- width="16"
- xmlns="http://www.w3.org/2000/svg"
- >
- <path
- d="M24 9.4L22.6 8 16 14.6 9.4 8 8 9.4 14.6 16 8 22.6 9.4 24 16 17.4 22.6 24 24 22.6 17.4 16 24 9.4z"
- />
- </svg>
- </button>
- </div>
- </div>
- </section>
- <div
- class="c...
- 77 | ];
- 78 | expectedTableRows.forEach((row) => {
- > 79 | expect(screen.getByRole('row', { name: new RegExp(row, 'i') })).toBeInTheDocument();
- | ^
- 80 | });
- 81 |
- 82 | expect(screen.getByRole('button', { name: /previous page/i })).toBeInTheDocument();
- at Object.getElementError (node_modules/@testing-library/dom/dist/config.js:40:19)
- at node_modules/@testing-library/dom/dist/query-helpers.js:90:38
- at node_modules/@testing-library/dom/dist/query-helpers.js:62:17
- at node_modules/@testing-library/dom/dist/query-helpers.js:111:19
- at getByRole (packages/esm-patient-chart-app/src/visit/visits-widget/past-visits-components/visits-table/visits-table.test.tsx:79:21)
- at Array.forEach (<anonymous>)
- at Object.forEach (packages/esm-patient-chart-app/src/visit/visits-widget/past-visits-components/visits-table/visits-table.test.tsx:78:23)
- FAIL packages/esm-patient-programs-app/src/programs/programs-form.test.tsx (16.261 s)
- ● ProgramsForm › updates a program enrollment
- expect(jest.fn()).toHaveBeenCalledWith(...expected)
- - Expected
- + Received
- "8ba6c08f-66d9-4a18-a233-5f658b1755bf",
- - ObjectContaining {"dateCompleted": "2020-05-05T00:00:00+00:00", "dateEnrolled": "2020-01-16T00:00:00+00:00", "location": "aff27d58-a15c-49a6-9beb-d30dcfc0c66e", "patient": "8673ee4f-e2ab-4077-ba55-4980f408773e", "program": "64f950e6-1b07-4ac0-8e7e-f3e148f3463f"},
- + {"dateCompleted": "2020-05-05T00:00:00+05:30", "dateEnrolled": "2020-01-16T05:30:00+05:30", "location": "aff27d58-a15c-49a6-9beb-d30dcfc0c66e", "patient": "8673ee4f-e2ab-4077-ba55-4980f408773e", "program": "64f950e6-1b07-4ac0-8e7e-f3e148f3463f"},
- {},
- Number of calls: 1
- 119 |
- 120 | expect(mockUpdateProgramEnrollment).toHaveBeenCalledTimes(1);
- > 121 | expect(mockUpdateProgramEnrollment).toHaveBeenCalledWith(
- | ^
- 122 | mockEnrolledProgramsResponse[0].uuid,
- 123 | expect.objectContaining({
- 124 | dateEnrolled: '2020-01-16T00:00:00+00:00',
- at Object.toHaveBeenCalledWith (packages/esm-patient-programs-app/src/programs/programs-form.test.tsx:121:41)
- FAIL packages/esm-patient-conditions-app/src/conditions/conditions-form.test.tsx (20.291 s)
- ● Conditions Form › renders a success toast notification upon successfully recording a condition
- expect(jest.fn()).toHaveBeenCalledWith(...expected)
- Expected: ObjectContaining {"clinicalStatus": "active", "conceptId": "139084AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "display": "Headache", "endDate": null, "onsetDateTime": "2020-12-20T00:00:00+00:00", "patientId": "8673ee4f-e2ab-4077-ba55-4980f408773e"}
- Received
- 1: {"clinicalStatus": "active", "conceptId": "139084AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "display": "Headache", "endDate": null, "onsetDateTime": "2020-12-20T00:00:00+05:30", "patientId": "8673ee4f-e2ab-4077-ba55-4980f408773e", "userId": undefined}
- 2: {"clinicalStatus": "active", "conceptId": "139084AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "display": "Headache", "endDate": null, "onsetDateTime": "2020-12-20T00:00:00+05:30", "patientId": "8673ee4f-e2ab-4077-ba55-4980f408773e", "userId": undefined}
- Number of calls: 2
- 155 | await user.click(submitButton);
- 156 |
- > 157 | expect(mockCreateCondition).toHaveBeenCalledWith(
- | ^
- 158 | expect.objectContaining({
- 159 | clinicalStatus: 'active',
- 160 | conceptId: '139084AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA',
- at Object.toHaveBeenCalledWith (packages/esm-patient-conditions-app/src/conditions/conditions-form.test.tsx:157:33)
- Test Suites: 3 failed, 1 skipped, 56 passed, 59 of 60 total
- Tests: 3 failed, 7 skipped, 157 passed, 167 total
- Snapshots: 0 total
- Time: 45.062 s
- Ran all test suites.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement