Skip to content

Add prop types

Add prop types #734

GitHub Actions / Jest Unit Test Results failed Feb 28, 2024 in 0s

1 fail, 1 skipped, 78 pass in 1m 16s

  1 files  ±0  10 suites  ±0   1m 16s ⏱️ -1s
80 tests ±0  78 ✔️ ±0  1 💤 ±0  1 ±0 
82 runs  ±0  80 ✔️ ±0  1 💤 ±0  1 ±0 

Results for commit cbc1769. ± Comparison against earlier commit e2f9c27.

Annotations

Check warning on line 0 in QueryBuilderModal should render field select by default passed as property

See this annotation in the file changed.

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

QueryBuilderModal should render field select by default passed as property (QueryBuilderModal should render field select by default passed as property) failed

artifacts/jest-junit/junit.xml
Raw output
TypeError: Cannot read properties of undefined (reading 'forEach')

<html>
  <head />
  <body
    style="padding-right: 0px;"
  >
    <div
      aria-hidden="true"
    >
      <div />
    </div>
    <div
      class="backdrop"
    />
    <div
      aria-modal="true"
      class="modalRoot entered"
      role="dialog"
      tabindex="-1"
    >
      <div
        class="modal large"
        label="[object Object]"
        role="document"
      >
        <div
          class="modalHeader"
        >
          <h1
            class="headline size-small margin-none font-weight-bold modalLabel"
            data-test-headline="true"
            id="modal7-label"
          >
            ui-plugin-query-builder.trigger
          </h1>
          <div
            class="modalControls"
          >
            <button
              aria-label="stripes-components.dismissModal"
              class="iconButton medium closeModal"
              icon="times"
              type="button"
            >
              <span
                class="iconButtonInner mediumOffset"
              >
                <span>
                  Icon
                </span>
              </span>
            </button>
          </div>
        </div>
        <div
          class="modalContent modalClass"
        >
          <h3
            class="headline size-medium margin-none font-weight-bold"
            data-test-headline="true"
          >
            ui-plugin-query-builder.modal.query
          </h3>
          <div
            class="queryArea"
          />
          <div
            class="header row"
          >
            <div
              class="col-sm-4 headerCell"
            >
              ui-plugin-query-builder.columns.field
            </div>
            <div
              class="col-sm-1 headerCell"
            >
              ui-plugin-query-builder.columns.action
            </div>
          </div>
          <fieldset
            class="repeatableField"
            data-test-repeatable-field="true"
          >
            <ul
              class="repeatableFieldList"
              data-test-repeatable-field-list="true"
            >
              <li
                class="repeatableFieldItem"
                data-test-repeatable-field-list-item="true"
              >
                <div
                  class="repeatableFieldItemContent"
                >
                  <div
                    class="row even row"
                    data-testid="row-0"
                  >
                    <div
                      class="col-sm-4 rowCell"
                    >
                      <div
                        style="position: relative; width: 100%;"
                      >
                        <div
                          aria-live="assertive"
                          aria-relevant="additions"
                          class="sr-only"
                        />
                        <div
                          class="selectionControlContainer"
                        >
                          <button
                            aria-expanded="true"
                            aria-haspopup="listbox"
                            aria-labelledby="selected-field-option-0-item"
                            aria-owns="sl-field-option-0"
                            class="selectionControl formControl"
                            id="field-option-0"
                            type="button"
                          >
                            <span
                              class="sr-only"
                            >
                              stripes-components.selection.controlLabel
                            </span>
                            <div
                              class="singleValue"
                              id="selected-field-option-0-item"
                            >
                              ui-plugin-query-builder.control.selection.placeholder
                            </div>
                          </button>
                          <div
                            class="selectionEndControls"
                          >
                            <div
                              class="textFieldIcon"
                            >
                              <span>
                                Icon
                              </span>
                            </div>
                          </div>
                        </div>
                        <div
                          role="alert"
                        />
                      </div>
                      <div
                        class="overlay"
                        style="position: absolute; transform: translate3d(NaNpx, NaNpx, 0); top: 0px; left: 0px; will-change: transform;"
                        x-placement="bottom"
                      >
                        <div
                          class="selec...
    at /home/runner/work/ui-plugin-query-builder/ui-plugin-query-builder/src/QueryBuilder/QueryBuilder/QueryBuilderModal/QueryBuilderModal.test.js:129:45
    at runWithExpensiveErrorDiagnosticsDisabled (/home/runner/work/ui-plugin-query-builder/ui-plugin-query-builder/node_modules/@testing-library/dom/dist/config.js:51:12)
    at checkCallback (/home/runner/work/ui-plugin-query-builder/ui-plugin-query-builder/node_modules/@testing-library/dom/dist/wait-for.js:127:77)
    at checkRealTimersCallback (/home/runner/work/ui-plugin-query-builder/ui-plugin-query-builder/node_modules/@testing-library/dom/dist/wait-for.js:119:16)
    at Timeout.task [as _onTimeout] (/home/runner/work/ui-plugin-query-builder/ui-plugin-query-builder/node_modules/jsdom/lib/jsdom/browser/Window.js:514:19)
    at listOnTimeout (node:internal/timers:569:17)
    at processTimers (node:internal/timers:512:7)