Skip to content

Merge branch 'master' into keycloak-ramsons #225

Merge branch 'master' into keycloak-ramsons

Merge branch 'master' into keycloak-ramsons #225

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

3 fail, 336 pass in 59s

  1 files  ± 0   56 suites  +2   59s ⏱️ -2s
339 tests +60  336 ✅ +57  0 💤 ±0  3 ❌ +3 
342 runs  +63  339 ✅ +60  0 💤 ±0  3 ❌ +3 

Results for commit 4176fde. ± Comparison against earlier commit f694821.

Annotations

Check warning on line 0 in SessionEventContainer event listeners thisWindowRtrIstTimeout

See this annotation in the file changed.

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

SessionEventContainer event listeners thisWindowRtrIstTimeout (SessionEventContainer event listeners thisWindowRtrIstTimeout) failed

artifacts/jest-junit/junit.xml [took 0s]
Raw output
ReferenceError: queryClient is not defined
    at queryClient (/home/runner/work/stripes-core/stripes-core/src/components/SessionEventContainer/SessionEventContainer.js:38:51)
    at Object.<anonymous> (/home/runner/work/stripes-core/stripes-core/src/components/SessionEventContainer/SessionEventContainer.test.js:104:34)
    at Promise.then.completed (/home/runner/work/stripes-core/stripes-core/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/stripes-core/stripes-core/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (/home/runner/work/stripes-core/stripes-core/node_modules/jest-circus/build/run.js:316:40)
    at _runTest (/home/runner/work/stripes-core/stripes-core/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (/home/runner/work/stripes-core/stripes-core/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/stripes-core/stripes-core/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/stripes-core/stripes-core/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/stripes-core/stripes-core/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (/home/runner/work/stripes-core/stripes-core/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (/home/runner/work/stripes-core/stripes-core/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (/home/runner/work/stripes-core/stripes-core/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (/home/runner/work/stripes-core/stripes-core/node_modules/jest-runner/build/testWorker.js:106:12)

Check warning on line 0 in SessionEventContainer event listeners otherWindowStorage logout

See this annotation in the file changed.

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

SessionEventContainer event listeners otherWindowStorage logout (SessionEventContainer event listeners otherWindowStorage logout) failed

artifacts/jest-junit/junit.xml [took 0s]
Raw output
Error: expect(jest.fn()).toHaveBeenCalledWith(...expected)

Expected: "/"
Received: "/logout"

Number of calls: 1
    at Object.toHaveBeenCalledWith (/home/runner/work/stripes-core/stripes-core/src/components/SessionEventContainer/SessionEventContainer.test.js:153:28)

Check warning on line 0 in LogoutTimeout if authenticated, renders a redirect

See this annotation in the file changed.

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

LogoutTimeout if authenticated, renders a redirect (LogoutTimeout if authenticated, renders a redirect) failed

artifacts/jest-junit/junit.xml [took 0s]
Raw output
TestingLibraryElementError: Unable to find an element with the text: Redirect. 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.

Ignored nodes: comments, script, style
<body>
  <div>
    <main>
      <div
        class="wrapper"
      >
        <div
          class="container"
        >
          <div
            class="row"
          >
            <div
              class="col"
            />
          </div>
          <div
            class="row"
          >
            <div
              class="col"
            >
              <div>
                stripes-core.rtr.idleSession.sessionExpiredSoSad
              </div>
            </div>
          </div>
          <div
            class="row"
          >
            <div
              class="col"
            >
              <button
                data-test-button="true"
                type="button"
              >
                <span>
                  stripes-core.rtr.idleSession.logInAgain
                </span>
              </button>
            </div>
          </div>
        </div>
      </div>
    </main>
  </div>
</body>
    at Object.getElementError (/home/runner/work/stripes-core/stripes-core/node_modules/@testing-library/react/node_modules/@testing-library/dom/dist/config.js:37:19)
    at /home/runner/work/stripes-core/stripes-core/node_modules/@testing-library/react/node_modules/@testing-library/dom/dist/query-helpers.js:76:38
    at /home/runner/work/stripes-core/stripes-core/node_modules/@testing-library/react/node_modules/@testing-library/dom/dist/query-helpers.js:52:17
    at /home/runner/work/stripes-core/stripes-core/node_modules/@testing-library/react/node_modules/@testing-library/dom/dist/query-helpers.js:95:19
    at Object.getByText (/home/runner/work/stripes-core/stripes-core/src/components/LogoutTimeout/LogoutTimeout.test.js:44:12)
    at Promise.then.completed (/home/runner/work/stripes-core/stripes-core/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/stripes-core/stripes-core/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (/home/runner/work/stripes-core/stripes-core/node_modules/jest-circus/build/run.js:316:40)
    at _runTest (/home/runner/work/stripes-core/stripes-core/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (/home/runner/work/stripes-core/stripes-core/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/stripes-core/stripes-core/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/stripes-core/stripes-core/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/stripes-core/stripes-core/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (/home/runner/work/stripes-core/stripes-core/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (/home/runner/work/stripes-core/stripes-core/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (/home/runner/work/stripes-core/stripes-core/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (/home/runner/work/stripes-core/stripes-core/node_modules/jest-runner/build/testWorker.js:106:12)