Skip to content

UIU-1191 - Include Retrieval service point column in csv exports. #3240

UIU-1191 - Include Retrieval service point column in csv exports.

UIU-1191 - Include Retrieval service point column in csv exports. #3240

GitHub Actions / Jest Unit Test Results failed Dec 13, 2024 in 0s

1 fail, 799 pass in 1m 52s

       1 files       62 suites   1m 52s ⏱️
   800 tests    799 ✔️ 0 💤 1
1 109 runs  1 108 ✔️ 0 💤 1

Results for commit c381745.

Annotations

Check warning on line 0 in RequestsRoute RequestsRoute should trigger "exportCsv"

See this annotation in the file changed.

@github-actions github-actions / Jest Unit Test Results

1 out of 2 runs failed: RequestsRoute RequestsRoute should trigger "exportCsv" (RequestsRoute RequestsRoute should trigger "exportCsv")

artifacts/jest-junit/junit.xml
Raw output
TypeError: Cannot read properties of undefined (reading 'retrievalServicePointName')
    at retrievalServicePointName (/home/runner/work/ui-requests/ui-requests/src/routes/RequestsRoute.js:1005:23)
    at Array.forEach (<anonymous>)
    at RequestsRoute.forEach (/home/runner/work/ui-requests/ui-requests/src/routes/RequestsRoute.js:970:12)
    at RequestsRoute.buildRecords [as exportData] (/home/runner/work/ui-requests/ui-requests/src/routes/RequestsRoute.js:916:31)
Error: expect(jest.fn()).toHaveBeenCalled()

Expected number of calls: >= 1
Received number of calls:    0

Ignored nodes: comments, script, style
<html>
  <head />
  <body
    tabindex="-1"
  >
    <div>
      <div
        data-test-request-instances="true"
      >
        <div>
          <span />
          <div
            id="input-request-search"
          />
          <div
            aria-hidden="true"
            data-testid="searchAndSort"
          />
          <p>
            getHelperResourcePath: 
            circulation/requests/testID1
          </p>
          <div>
            <div>
              <span>
                RequestsFilter
              </span>
              <button
                type="button"
              >
                onClear
              </button>
            </div>
          </div>
          <div>
            <button
              type="button"
            >
              onChangePatron
            </button>
            <button
              type="button"
            >
              onCloseNewRecord
            </button>
            <button
              type="button"
            >
              addRequestFields
            </button>
            <button
              type="button"
            >
              onFilterChange
            </button>
            <button
              type="button"
            >
              Create request
            </button>
          </div>
          <section
            aria-labelledby="menu-section-24-label"
            class="menuSection"
            data-test-menu-section="true"
            id="menu-section-24"
          >
            <h1
              class="headline size-small margin-none isFaded font-weight-bold menuSection__label"
              data-test-headline="true"
              data-test-menu-section-label="true"
              id="menu-section-24-label"
            >
              ui-requests.actions.label
            </h1>
            <div>
              <button
                data-button-type="dropdownItem"
                id="clickable-newrequest"
                to="/users/notes/new?layer=create"
                type="button"
              >
                <span>
                  stripes-smart-components.new
                </span>
              </button>
            </div>
            <button
              data-button-type="dropdownItem"
              data-testid="exportExpiredHoldShelfToCsvButton"
              id="exportExpiredHoldsToCsvPaneHeaderBtn"
              type="button"
            >
              <span>
                ui-requests.exportExpiredHoldShelfToCsv
                <span>
                  undefined
                </span>
              </span>
            </button>
            <div>
              <button
                type="button"
              >
                PrintButton
              </button>
              ui-requests.printPickSlips
              <span>
                undefined
              </span>
            </div>
            <div>
              <button
                type="button"
              >
                PrintButton
              </button>
              ui-requests.printPickSlipsSelected
              <span>
                undefined
              </span>
            </div>
            <div>
              <button
                type="button"
              >
                PrintButton
              </button>
              ui-requests.printSearchSlips
              <span>
                undefined
              </span>
            </div>
          </section>
          <div
            panetitleref="[object Object]"
          />
          <div>
            <input
              aria-label="[object Object]"
              data-testid="selectRequestCheckbox"
              type="checkbox"
            />
            ui-requests.requests.requestDate
            ui-requests.requests.title
            ui-requests.requests.year
            ui-requests.requests.itemBarcode
            ui-requests.requests.callNumber
            ui-requests.requests.type
            ui-requests.requests.status
            ui-requests.requests.queuePosition
            ui-requests.requests.servicePoint
            ui-requests.requests.requester
            ui-requests.requests.requesterBarcode
            ui-requests.requests.retrievalServicePoint
            ui-requests.requests.singlePrint
            ui-requests.requests.proxy
            ui-requests.requests.copies
            ui-requests.requests.printed
          </div>
          <div>
            <input
              data-testid="rowCheckbox"
              type="checkbox"
            />
            itemBarcode
            <div>
              <div />
            </div>
            <button
              data-testid="singlePrintButton"
              type="button"
            >
              Print
            </button>
            requesterBarcode
            <span>
              No value
            </span>
            <div>
              <a
                href="viewPath/view/requestId?instanceId=12345&foo=bar"
              />
            </div>
            effectiveCallNumber
          </div>
        </div>
      </div>
      <div
        data-testid="pickSlipsPrintTemplate"
      >
        PrintContent
      </div>
      <div>
        PrintContent
      </div>
      <div
        data-testid="searchSlipsPrintTemplate"
      >
        PrintContent
      </div>
    </div>
  </body>
</html>
    at toHaveBeenCalled (/home/runner/work/ui-requests/ui-requests/src/routes/RequestsRoute.test.js:635:27)
    at runWithExpensiveErrorDiagnosticsDisabled (/home/runner/work/ui-requests/ui-requests/node_modules/@testing-library/react/node_modules/@testing-library/dom/dist/config.js:47:12)
    at checkCallback (/home/runner/work/ui-requests/ui-requests/node_modules/@testing-library/react/node_modules/@testing-library/dom/dist/wait-for.js:124:77)
    at checkRealTimersCallback (/home/runner/work/ui-requests/ui-requests/node_modules/@testing-library/react/node_modules/@testing-library/dom/dist/wait-for.js:118:16)
    at Timeout.task [as _onTimeout] (/home/runner/work/ui-requests/ui-requests/node_modules/jest-environment-jsdom/node_modules/jsdom/lib/jsdom/browser/Window.js:520:19)
    at listOnTimeout (node:internal/timers:569:17)
    at processTimers (node:internal/timers:512:7)