Skip to content

UIREQ-1140 - add test cases for mutator query updation #2957

UIREQ-1140 - add test cases for mutator query updation

UIREQ-1140 - add test cases for mutator query updation #2957

GitHub Actions / Jest Unit Test Results failed Sep 19, 2024 in 0s

1 fail, 761 pass in 1m 21s

    1 files  ±0    52 suites  ±0   1m 21s ⏱️ ±0s
762 tests +2  761 ✔️ +1  0 💤 ±0  1 +1 
763 runs  +2  762 ✔️ +1  0 💤 ±0  1 +1 

Results for commit 6ea4a35. ± Comparison against earlier commit 8d2c4ff.

Annotations

Check warning on line 0 in UI Requests should close keyboard shortcuts modal on clicking close button

See this annotation in the file changed.

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

UI Requests should close keyboard shortcuts modal on clicking close button (UI Requests should close keyboard shortcuts modal on clicking close button) failed

artifacts/jest-junit/junit.xml
Raw output
TestingLibraryElementError: Unable to find an accessible element with the role "button" and name `/stripes-components.dismissModal/i`

Here are the accessible roles:

  navigation:

  Name "":
  <nav
    class="navListSectionControl"
    data-test-nav-list="true"
    tabindex="-1"
  />

  --------------------------------------------------
  button:

  Name "ui-requests.navigation.app":
  <button
    class="NavListItem"
    data-test-nav-list-item="true"
    id="requests-app-item"
  />

  Name "ui-requests.appMenu.keyboardShortcuts":
  <button
    class="NavListItem"
    data-test-nav-list-item="true"
    id="keyboard-shortcuts-item"
  />

  --------------------------------------------------
  heading:

  Name "RequestsRoute":
  <h1 />

  --------------------------------------------------

Ignored nodes: comments, script, style
<body>
  <div>
    <nav
      class="navListSectionControl"
      data-test-nav-list="true"
      tabindex="-1"
    >
      <div
        class="root"
        data-test-nav-list-section="true"
      >
        <div
          class="content"
        >
          <button
            class="NavListItem"
            data-test-nav-list-item="true"
            id="requests-app-item"
          >
            ui-requests.navigation.app
          </button>
          <button
            class="NavListItem"
            data-test-nav-list-item="true"
            id="keyboard-shortcuts-item"
          >
            ui-requests.appMenu.keyboardShortcuts
          </button>
        </div>
      </div>
    </nav>
    <h1>
      RequestsRoute
    </h1>
    <div />
  </div>
  <div
    class="backdrop"
  />
  <dialog
    aria-labelledby="keyboard-shortcuts-modal-label"
    class="modalRoot entering"
    tabindex="-1"
  >
    <div
      class="modal medium"
      data-test-keyboard-shortcuts-modal="true"
      id="keyboard-shortcuts-modal"
      label="[object Object]"
    >
      <div
        class="modalHeader"
      >
        <h1
          class="headline size-small margin-none font-weight-bold modalLabel"
          data-test-headline="true"
          id="keyboard-shortcuts-modal-label"
        >
          stripes-components.shortcut.modalLabel
        </h1>
        <div
          class="modalControls"
        >
          <button
            aria-label="stripes-components.dismissModal"
            class="iconButton medium closeModal"
            icon="times"
            id="keyboard-shortcuts-modal-close-button"
            type="button"
          >
            <span
              class="iconButtonInner mediumOffset"
            >
              <span>
                Icon
                <span />
              </span>
            </span>
          </button>
        </div>
      </div>
      <div
        class="modalContent"
        id="keyboard-shortcuts-modal-content"
        style="overflow: hidden;"
      >
        <div>
          <div
            class="mclContainer"
            style="position: relative; overflow: hidden; height: auto; width: 100%;"
            tabindex="-1"
          >
            <div
              aria-live="assertive"
              aria-relevant="additions"
              class="sr-only"
            />
            <div
              aria-rowcount="12"
              class=""
              data-total-count="0"
              role="grid"
              tabindex="0"
            >
              <div
                class="mclHeaderContainer"
              >
                <div
                  aria-rowindex="1"
                  class="mclHeaderRow"
                  role="row"
                  style="display: flex; width: 17px;"
                >
                  <div
                    aria-sort="none"
                    class="mclHeader"
                    id="list-column-action"
                    role="columnheader"
                    style="flex: 0 0 auto;"
                  >
                    stripes-components.shortcut.action
                  </div>
                  <div
                    aria-sort="none"
                    class="mclHeader"
                    id="list-column-shortcut"
                    role="columnheader"
                    style="flex: 0 0 auto;"
                  >
                    stripes-components.shortcut.shortcut
                  </div>
                </div>
              </div>
              <div
                class="mclScrollable"
                style="position: static; width: 100%;"
                tabindex="0"
              >
                <div
                  class="mclRowContainer"
                  role="rowgroup"
                  style="position: static;"
                >
                  <div
                    aria-rowindex="2"
                    class="mclRowFormatterContainer"
                    data-row-index="row-0"
                    role="row"
                    style="position: static;"
                  >
                    <div
                      class="mclRow mclIsOdd"
                      data-row-inner="0"
                      style="min-width: 0px;"
                    >
                      <div
                        class="mclCell mclCellStyle"
                        role="gridcell"
                      >
                        Create a new record
                      </div>
                      <div
                        class="mclCell mclCellStyle"
                        role="gridcell"
                      >
                        Alt + N
                      </div>
                    </div>
                  </div>
                  <div
                    aria-rowindex="3"
                    class="mclRowFormatterContainer"
                    data-row-index="row-1"
                    role="row"
                    style="position: static;"
                  >
                    <div
                      class="mclRow"
                      data-row-inner="1"
                      style="min-width: 0px;"
                    >
                      <div
                        class="mclCell mclCellStyle"
                        role="gridcell"
                      >
                        Edit a record
                      </div>
                      <div
                        class="mclCell mclCellStyle"
                        role="gridcell"
                      >
                        Ctrl + Alt + E
                      </div>
                    </div>
                  </div>
                  <div
                    aria-rowindex="4"
                    class="mclRowFormatterContainer"
                    data-row-index="row-2"
                    role="row"
                    style="position: static;"
                  >
                    <div
                      class="mclRow mclIsOdd"
                      data-row-inner="2"
                      style="min-width: 0px;"
                    >
                      <div
                        class="mclCell mclCellStyle"
                        role="gridcell"
                      >
                        Save a record
                      </div>
                      <div
                        class="mclCell mclCellStyle"
                        role="gridcell"
                      >
                        Ctrl + S
                      </div>
                    </div>
                  </div>
                  <div
                    aria-rowindex="5"
                    class="mclRowFormatterContainer"
                    data-row-index="row-3"
                    role="row"
                    style="position: static;"
                  >
                    <div
                      class="mclRow"
                      data-row-inner="3"
                      style="min-width: 0px;"
                    >
                      <div
                        class="mclCell mclCellStyle"
                        role="gridcell"
                      >
                        Duplicate a record
                      </div>
                      <div
                        class="mclCell mclCellStyle"
                        role="gridcell"
                      >
                        Alt + C
                      </div>
                    </div>
                  </div>
                  <div
                    aria-rowindex="6"
                    class="mclRowFormatterContainer"
                    data-row-index="row-4"
                    role="row"
                    style="position: static;"
                  >
                    <div
                      class="mclRow mclIsOdd"
                      data-row-inner="4"
                      style="min-width: 0px;"
                    >
                      <div
                        class="mclCell mclCellStyle"
                        role="gridcell"
                      >
                        Go to Search & Filter pane
                      </div>
                      <div
                        class="mclCell mclCellStyle"
                        role="gridcell"
                      >
                        Ctrl + Alt + H
                      </div>
                    </div>
                  </div>
                  <div
                    aria-rowindex="7"
                    class="mclRowFormatterContainer"
                    data-row-index="row-5"
                    role="row"
                    style="position: static;"
                  >
                    <div
                      class="mclRow"
                      data-row-inner="5"
                      style="min-width: 0px;"
                    >
                      <div
                        class="mclCell mclCellStyle"
                        role="gridcell"
                      >
                        View keyboard shortcuts list
                      </div>
                      <div
                        class="mclCell mclCellStyle"
                        role="gridcell"
                      >
                        Ctrl + Alt + K
                      </div>
                    </div>
                  </div>
                  <div
                    aria-rowindex="8"
                    class="mclRowFormatterContainer"
                    data-row-index="row-6"
                    role="row"
                    style="position: static;"
                  >
                    <div
                      class="mclRow mclIsOdd"
                      data-row-inner="6"
                      style="min-width: 0px;"
                    >
                      <div
                        class="mclCell mclCellStyle"
                        role="gridcell"
                      >
                        stripes-components.shortcut.closeModal
                      </div>
                      <div
                        class="mclCell mclCellStyle"
                        role="gridcell"
                      >
                        Esc
                      </div>
                    </div>
                  </div>
                  <div
                    aria-rowindex="9"
                    class="mclRowFormatterContainer"
                    data-row-index="row-7"
                    role="row"
                    style="position: static;"
                  >
                    <div
                      class="mclRow"
                      data-row-inner="7"
                      style="min-width: 0px;"
                    >
                      <div
                        class="mclCell mclCellStyle"
                        role="gridcell"
                      >
                        stripes-components.shortcut.copy
                      </div>
                      <div
                        class="mclCell mclCellStyle"
                        role="gridcell"
                      >
                        Ctrl + C
                      </div>
                    </div>
                  </div>
                  <div
                    aria-rowindex="10"
                    class="mclRowFormatterContainer"
                    data-row-index="row-8"
                    role="row"
                    style="position: static;"
                  >
                    <div
                      class="mclRow mclIsOdd"
                      data-row-inner="8"
                      style="min-width: 0px;"
                    >
                      <div
                        class="mclCell mclCellStyle"
                        role="gridcell"
                      >
                        stripes-components.shortcut.cut
                      </div>
                      <div
                        class="mclCell mclCellStyle"
                        role="gridcell"
                      >
                        Ctrl + X
                      </div>
                    </div>
                  </div>
                  <div
                    aria-rowindex="11"
                    class="mclRowFormatterContainer"
                    data-row-index="row-9"
                    role="row"
                    style="position: static;"
                  >
                    <div
                      class="mclRow"
                      data-row-inner="9"
                      style="min-width: 0px;"
                    >
                      <div
                        class="mclCell mclCellStyle"
                        role="gridcell"
                      >
                        stripes-components.shortcut.paste
                      </div>
                      <div
                        class="mclCell mclCellStyle"
                        role="gridcell"
                      >
                        Ctrl + V
                      </div>
                    </div>
                  </div>
                  <div
                    aria-rowindex="12"
                    class="mclRowFormatterContainer"
                    data-row-index="row-10"
                    role="row"
                    style="position: static;"
                  >
                    <div
                      class="mclRow mclIsOdd"
                      data-row-inner="10"
                      style="min-width: 0px;"
                    >
                      <div
                        class="mclCell mclCellStyle"
                        role="gridcell"
                      >
                        stripes-components.shortcut.find
                      </div>
                      <div
                        class="mclCell mclCellStyle"
                        role="gridcell"
                      >
                        Ctrl + F
                      </div>
                    </div>
                  </div>
                  <div
                    class="mclEndOfListContainer"
                    data-end-of-list="11"
                  >
                    <div
                      class="mclCenteredContainer"
                      style="visibility: hidden; height: 0px; padding: 0px; width: 0px;"
                    >
                      <div
                        class="textCentered"
                        data-test-layout="true"
                      >
                        <div
                          class="mclEndOfList"
                          data-test-layout="true"
                        >
                          <span>
                            Icon
                            <span>
                              stripes-components.endOfList
                            </span>
                          </span>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <div
        class="modalFooter"
        id="keyboard-shortcuts-modal-footer"
      >
        <div
          class="modalFooterButtons"
        >
          <button
            class="button default"
            data-test-shortcuts-close-button="true"
            id="keyboard-shortcuts-modal-close"
            type="button"
          >
            <span
              class="inner"
            >
              stripes-components.close
            </span>
          </button>
        </div>
      </div>
    </div>
  </dialog>
</body>
    at Object.getElementError (/home/runner/work/ui-requests/ui-requests/node_modules/@testing-library/dom/dist/config.js:37:19)
    at /home/runner/work/ui-requests/ui-requests/node_modules/@testing-library/dom/dist/query-helpers.js:76:38
    at /home/runner/work/ui-requests/ui-requests/node_modules/@testing-library/dom/dist/query-helpers.js:52:17
    at /home/runner/work/ui-requests/ui-requests/node_modules/@testing-library/dom/dist/query-helpers.js:95:19
    at Object.getByRole (/home/runner/work/ui-requests/ui-requests/src/index.test.js:65:27)
    at Promise.then.completed (/home/runner/work/ui-requests/ui-requests/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/ui-requests/ui-requests/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (/home/runner/work/ui-requests/ui-requests/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at _runTest (/home/runner/work/ui-requests/ui-requests/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (/home/runner/work/ui-requests/ui-requests/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/ui-requests/ui-requests/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/ui-requests/ui-requests/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/ui-requests/ui-requests/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (/home/runner/work/ui-requests/ui-requests/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (/home/runner/work/ui-requests/ui-requests/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (/home/runner/work/ui-requests/ui-requests/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (/home/runner/work/ui-requests/ui-requests/node_modules/jest-runner/build/testWorker.js:106:12)