Skip to content

update bulk action tests #1860

update bulk action tests

update bulk action tests #1860

GitHub Actions / Jest Unit Test Results failed Dec 7, 2023 in 0s

3 fail, 1 skipped, 164 pass in 2m 44s

    1 files  ±0    26 suites  ±0   2m 44s ⏱️ -3s
168 tests  - 3  164 ✔️  - 2  1 💤 ±0  3  - 1 
171 runs   - 3  167 ✔️  - 2  1 💤 ±0  3  - 1 

Results for commit 639f169. ± Comparison against earlier commit fad517e.

Annotations

Check warning on line 0 in PreviewAccordion should render preview accordion with users on initial step

See this annotation in the file changed.

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

PreviewAccordion should render preview accordion with users on initial step (PreviewAccordion should render preview accordion with users on initial step) failed

artifacts/jest-junit/junit.xml
Raw output
TestingLibraryElementError: Unable to find an element with the text: username. 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="accordion hasSeparator"
      data-test-accordion-section="true"
      id="accordion_3"
    >
      <div
        class="headerWrapper"
        tabindex="-1"
      >
        <div
          class="header default"
        >
          <h3
            class="headline size-medium margin-none font-weight-bold block"
            data-test-headline="true"
          >
            <button
              aria-controls="accordion3"
              aria-expanded="true"
              class="defaultCollapseButton"
              id="accordion-toggle-button-accordion_3"
              type="button"
            >
              <span
                class="headerInner"
              >
                <span
                  class="defaultHeaderIcon"
                >
                  <span>
                    Icon
                  </span>
                </span>
                <div
                  class="labelArea"
                >
                  ui-bulk-edit.list.preview.titleChanged
                </div>
              </span>
            </button>
          </h3>
        </div>
      </div>
      <div
        class="content-wrap expanded"
        style="z-index: 1;"
      >
        <div
          aria-labelledby="accordion-toggle-button-accordion_3"
          class="content-region expanded"
          data-test-accordion-wrapper="true"
          id="accordion3"
          role="region"
        >
          <div
            class="row"
          >
            <div
              class="col-xs-12"
            >
              <table>
                <thead>
                  <tr />
                </thead>
                <tbody>
                  <tr />
                  <tr />
                </tbody>
              </table>
            </div>
          </div>
        </div>
      </div>
    </section>
  </div>
</body>
    at Object.getElementError (/home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/@testing-library/react/node_modules/@testing-library/dom/dist/config.js:37:19)
    at /home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/@testing-library/react/node_modules/@testing-library/dom/dist/query-helpers.js:90:38
    at /home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/@testing-library/react/node_modules/@testing-library/dom/dist/query-helpers.js:62:17
    at getByText (/home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/@testing-library/react/node_modules/@testing-library/dom/dist/query-helpers.js:111:19)
    at forEach (/home/runner/work/ui-bulk-edit/ui-bulk-edit/src/components/BulkEditList/BulkEditListResult/Preview/PreviewAccordion/PreviewAccordion.test.js:117:21)
    at Array.forEach (<anonymous>)
    at Object.<anonymous> (/home/runner/work/ui-bulk-edit/ui-bulk-edit/src/components/BulkEditList/BulkEditListResult/Preview/PreviewAccordion/PreviewAccordion.test.js:116:25)
    at Object.asyncJestTest (/home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/jest-jasmine2/build/jasmineAsyncInstall.js:106:37)
    at /home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/jest-jasmine2/build/queueRunner.js:45:12
    at new Promise (<anonymous>)
    at mapper (/home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/jest-jasmine2/build/queueRunner.js:28:19)
    at /home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/jest-jasmine2/build/queueRunner.js:75:41
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

Check warning on line 0 in PreviewAccordion should render preview accordion with inventory items

See this annotation in the file changed.

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

PreviewAccordion should render preview accordion with inventory items (PreviewAccordion should render preview accordion with inventory items) failed

artifacts/jest-junit/junit.xml
Raw output
TestingLibraryElementError: Unable to find an element with the text: true. 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="accordion hasSeparator"
      data-test-accordion-section="true"
      id="accordion_4"
    >
      <div
        class="headerWrapper"
        tabindex="-1"
      >
        <div
          class="header default"
        >
          <h3
            class="headline size-medium margin-none font-weight-bold block"
            data-test-headline="true"
          >
            <button
              aria-controls="accordion4"
              aria-expanded="true"
              class="defaultCollapseButton"
              id="accordion-toggle-button-accordion_4"
              type="button"
            >
              <span
                class="headerInner"
              >
                <span
                  class="defaultHeaderIcon"
                >
                  <span>
                    Icon
                  </span>
                </span>
                <div
                  class="labelArea"
                >
                  ui-bulk-edit.list.preview.titleChanged
                </div>
              </span>
            </button>
          </h3>
        </div>
      </div>
      <div
        class="content-wrap expanded"
        style="z-index: 1;"
      >
        <div
          aria-labelledby="accordion-toggle-button-accordion_4"
          class="content-region expanded"
          data-test-accordion-wrapper="true"
          id="accordion4"
          role="region"
        >
          <div
            class="row"
          >
            <div
              class="col-xs-12"
            >
              <table>
                <thead>
                  <tr />
                </thead>
                <tbody>
                  <tr />
                </tbody>
              </table>
            </div>
          </div>
        </div>
      </div>
    </section>
  </div>
</body>
    at Object.getElementError (/home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/@testing-library/react/node_modules/@testing-library/dom/dist/config.js:37:19)
    at /home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/@testing-library/react/node_modules/@testing-library/dom/dist/query-helpers.js:90:38
    at /home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/@testing-library/react/node_modules/@testing-library/dom/dist/query-helpers.js:62:17
    at getByText (/home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/@testing-library/react/node_modules/@testing-library/dom/dist/query-helpers.js:111:19)
    at forEach (/home/runner/work/ui-bulk-edit/ui-bulk-edit/src/components/BulkEditList/BulkEditListResult/Preview/PreviewAccordion/PreviewAccordion.test.js:131:21)
    at Array.forEach (<anonymous>)
    at Object.<anonymous> (/home/runner/work/ui-bulk-edit/ui-bulk-edit/src/components/BulkEditList/BulkEditListResult/Preview/PreviewAccordion/PreviewAccordion.test.js:130:25)
    at Object.asyncJestTest (/home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/jest-jasmine2/build/jasmineAsyncInstall.js:106:37)
    at /home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/jest-jasmine2/build/queueRunner.js:45:12
    at new Promise (<anonymous>)
    at mapper (/home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/jest-jasmine2/build/queueRunner.js:28:19)
    at /home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/jest-jasmine2/build/queueRunner.js:75:41
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

Check warning on line 0 in PreviewAccordion should render preview accordion with holding items

See this annotation in the file changed.

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

PreviewAccordion should render preview accordion with holding items (PreviewAccordion should render preview accordion with holding items) failed

artifacts/jest-junit/junit.xml
Raw output
TestingLibraryElementError: Unable to find an element with the text: e3ff6133-b9a2-4d4c-a1c9-dc1867d4df19. 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="accordion hasSeparator"
      data-test-accordion-section="true"
      id="accordion_5"
    >
      <div
        class="headerWrapper"
        tabindex="-1"
      >
        <div
          class="header default"
        >
          <h3
            class="headline size-medium margin-none font-weight-bold block"
            data-test-headline="true"
          >
            <button
              aria-controls="accordion5"
              aria-expanded="true"
              class="defaultCollapseButton"
              id="accordion-toggle-button-accordion_5"
              type="button"
            >
              <span
                class="headerInner"
              >
                <span
                  class="defaultHeaderIcon"
                >
                  <span>
                    Icon
                  </span>
                </span>
                <div
                  class="labelArea"
                >
                  ui-bulk-edit.list.preview.titleChanged
                </div>
              </span>
            </button>
          </h3>
        </div>
      </div>
      <div
        class="content-wrap expanded"
        style="z-index: 1;"
      >
        <div
          aria-labelledby="accordion-toggle-button-accordion_5"
          class="content-region expanded"
          data-test-accordion-wrapper="true"
          id="accordion5"
          role="region"
        >
          <div
            class="row"
          >
            <div
              class="col-xs-12"
            >
              <table>
                <thead>
                  <tr />
                </thead>
                <tbody>
                  <tr />
                </tbody>
              </table>
            </div>
          </div>
        </div>
      </div>
    </section>
  </div>
</body>
    at Object.getElementError (/home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/@testing-library/react/node_modules/@testing-library/dom/dist/config.js:37:19)
    at /home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/@testing-library/react/node_modules/@testing-library/dom/dist/query-helpers.js:90:38
    at /home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/@testing-library/react/node_modules/@testing-library/dom/dist/query-helpers.js:62:17
    at getByText (/home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/@testing-library/react/node_modules/@testing-library/dom/dist/query-helpers.js:111:19)
    at forEach (/home/runner/work/ui-bulk-edit/ui-bulk-edit/src/components/BulkEditList/BulkEditListResult/Preview/PreviewAccordion/PreviewAccordion.test.js:145:21)
    at Array.forEach (<anonymous>)
    at Object.<anonymous> (/home/runner/work/ui-bulk-edit/ui-bulk-edit/src/components/BulkEditList/BulkEditListResult/Preview/PreviewAccordion/PreviewAccordion.test.js:144:28)
    at Object.asyncJestTest (/home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/jest-jasmine2/build/jasmineAsyncInstall.js:106:37)
    at /home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/jest-jasmine2/build/queueRunner.js:45:12
    at new Promise (<anonymous>)
    at mapper (/home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/jest-jasmine2/build/queueRunner.js:28:19)
    at /home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/jest-jasmine2/build/queueRunner.js:75:41
    at processTicksAndRejections (node:internal/process/task_queues:95:5)