Skip to content

🪲 Fix tests.

🪲 Fix tests. #1524

GitHub Actions / Test Results failed Apr 4, 2024 in 0s

1 fail, 38 pass in 13s

39 tests  ±0   38 ✅ ±0   13s ⏱️ -1s
17 suites ±0    0 💤 ±0 
 1 files   ±0    1 ❌ ±0 

Results for commit f37e603. ± Comparison against earlier commit b725447.

Annotations

Check warning on line 0 in src/__tests__/components/ParameterEditor.test.tsx

See this annotation in the file changed.

@github-actions github-actions / Test Results

ParameterEditor > Editor Loaded (src/__tests__/components/ParameterEditor.test.tsx) failed

frontend/reports/vitest-junit.xml [took 1s]
Raw output
Unable to find an element with the text: group-filters.groups.age_0. 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 [36m<body>[39m   [36m<div>[39m     [36m<div[39m       [33mclass[39m=[32m"MuiTableContainer-root css-1ghwx3p-MuiTableContainer-root"[39m     [36m>[39m       [36m<table[39m         [33mclass[39m=[32m"MuiTable-root MuiTable-stickyHeader css-1vdscya-MuiTable-root"[39m       [36m>[39m         [36m<thead[39m           [33mclass[39m=[32m"MuiTableHead-root css-15wwp11-MuiTableHead-root"[39m         [36m>[39m           [36m<tr[39m             [33mclass[39m=[32m"MuiTableRow-root MuiTableRow-head css-1q1u3t4-MuiTableRow-root"[39m           [36m>[39m             [36m<th[39m               [33mclass[39m=[32m"MuiTableCell-root MuiTableCell-head MuiTableCell-stickyHeader MuiTableCell-sizeSmall css-xcic7e-MuiTableCell-root"[39m               [33mcolspan[39m=[32m"2"[39m               [33mscope[39m=[32m"col"[39m             [36m>[39m               [0mParameter[0m             [36m</th>[39m           [36m</tr>[39m         [36m</thead>[39m         [36m<tbody[39m           [33mclass[39m=[32m"MuiTableBody-root css-apqrd9-MuiTableBody-root"[39m         [36m/>[39m       [36m</table>[39m     [36m</div>[39m   [36m</div>[39m [36m</body>[39m  Ignored nodes: comments, script, style [36m<body>[39m   [36m<div>[39m     [36m<div[39m       [33mclass[39m=[32m"MuiTableContainer-root css-1ghwx3p-MuiTableContainer-root"[39m     [36m>[39m       [36m<table[39m         [33mclass[39m=[32m"MuiTable-root MuiTable-stickyHeader css-1vdscya-MuiTable-root"[39m       [36m>[39m         [36m<thead[39m           [33mclass[39m=[32m"MuiTableHead-root css-15wwp11-MuiTableHead-root"[39m         [36m>[39m           [36m<tr[39m             [33mclass[39m=[32m"MuiTableRow-root MuiTableRow-head css-1q1u3t4-MuiTableRow-root"[39m           [36m>[39m             [36m<th[39m               [33mclass[39m=[32m"MuiTableCell-root MuiTableCell-head MuiTableCell-stickyHeader MuiTableCell-sizeSmall css-xcic7e-MuiTableCell-root"[39m               [33mcolspan[39m=[32m"2"[39m               [33mscope[39m=[32m"col"[39m             [36m>[39m               [0mParameter[0m             [36m</th>[39m           [36m</tr>[39m         [36m</thead>[39m         [36m<tbody[39m           [33mclass[39m=[32m"MuiTableBody-root css-apqrd9-MuiTableBody-root"[39m         [36m/>[39m       [36m</table>[39m     [36m</div>[39m   [36m</div>[39m [36m</body>[39m

TestingLibraryElementError: Unable to find an element with the text: group-filters.groups.age_0. 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
[36m<body>[39m
  [36m<div>[39m
    [36m<div[39m
      [33mclass[39m=[32m"MuiTableContainer-root css-1ghwx3p-MuiTableContainer-root"[39m
    [36m>[39m
      [36m<table[39m
        [33mclass[39m=[32m"MuiTable-root MuiTable-stickyHeader css-1vdscya-MuiTable-root"[39m
      [36m>[39m
        [36m<thead[39m
          [33mclass[39m=[32m"MuiTableHead-root css-15wwp11-MuiTableHead-root"[39m
        [36m>[39m
          [36m<tr[39m
            [33mclass[39m=[32m"MuiTableRow-root MuiTableRow-head css-1q1u3t4-MuiTableRow-root"[39m
          [36m>[39m
            [36m<th[39m
              [33mclass[39m=[32m"MuiTableCell-root MuiTableCell-head MuiTableCell-stickyHeader MuiTableCell-sizeSmall css-xcic7e-MuiTableCell-root"[39m
              [33mcolspan[39m=[32m"2"[39m
              [33mscope[39m=[32m"col"[39m
            [36m>[39m
              [0mParameter[0m
            [36m</th>[39m
          [36m</tr>[39m
        [36m</thead>[39m
        [36m<tbody[39m
          [33mclass[39m=[32m"MuiTableBody-root css-apqrd9-MuiTableBody-root"[39m
        [36m/>[39m
      [36m</table>[39m
    [36m</div>[39m
  [36m</div>[39m
[36m</body>[39m

Ignored nodes: comments, script, style
[36m<body>[39m
  [36m<div>[39m
    [36m<div[39m
      [33mclass[39m=[32m"MuiTableContainer-root css-1ghwx3p-MuiTableContainer-root"[39m
    [36m>[39m
      [36m<table[39m
        [33mclass[39m=[32m"MuiTable-root MuiTable-stickyHeader css-1vdscya-MuiTable-root"[39m
      [36m>[39m
        [36m<thead[39m
          [33mclass[39m=[32m"MuiTableHead-root css-15wwp11-MuiTableHead-root"[39m
        [36m>[39m
          [36m<tr[39m
            [33mclass[39m=[32m"MuiTableRow-root MuiTableRow-head css-1q1u3t4-MuiTableRow-root"[39m
          [36m>[39m
            [36m<th[39m
              [33mclass[39m=[32m"MuiTableCell-root MuiTableCell-head MuiTableCell-stickyHeader MuiTableCell-sizeSmall css-xcic7e-MuiTableCell-root"[39m
              [33mcolspan[39m=[32m"2"[39m
              [33mscope[39m=[32m"col"[39m
            [36m>[39m
              [0mParameter[0m
            [36m</th>[39m
          [36m</tr>[39m
        [36m</thead>[39m
        [36m<tbody[39m
          [33mclass[39m=[32m"MuiTableBody-root css-apqrd9-MuiTableBody-root"[39m
        [36m/>[39m
      [36m</table>[39m
    [36m</div>[39m
  [36m</div>[39m
[36m</body>[39m
 ❯ waitForWrapper node_modules/@testing-library/dom/dist/wait-for.js:163:27
 ❯ node_modules/@testing-library/dom/dist/query-helpers.js:86:33
 ❯ src/__tests__/components/ParameterEditor.test.tsx:24:18

An unhandled error occurred processing a request for the endpoint "getGroupSubcategories".
In the case of an unhandled error, no tags will be "provided" or "invalidated". TypeError: Failed to parse URL from /api/v1/groups/
    at new Request (node:internal/deps/undici/undici:5272:19)
    at file:///home/runner/work/ESID/ESID/frontend/node_modules/@reduxjs/toolkit/src/query/fetchBaseQuery.ts:239:21
    ... 2 lines matching cause stack trace ...
    at async Promise.all (index 1) {
  [cause]: TypeError: Invalid URL: /api/v1/groups/
      at new URLImpl (/home/runner/work/ESID/ESID/frontend/node_modules/whatwg-url/lib/URL-impl.js:23:13)
      at Object.exports.setup (/home/runner/work/ESID/ESID/frontend/node_modules/whatwg-url/lib/URL.js:54:12)
      at new URL (/home/runner/work/ESID/ESID/frontend/node_modules/whatwg-url/lib/URL.js:115:22)
      at new Request (node:internal/deps/undici/undici:5270:25)
      at file:///home/runner/work/ESID/ESID/frontend/node_modules/@reduxjs/toolkit/src/query/fetchBaseQuery.ts:239:21
      at executeEndpoint (file:///home/runner/work/ESID/ESID/frontend/node_modules/@reduxjs/toolkit/src/query/core/buildThunks.ts:226:18)
      at file:///home/runner/work/ESID/ESID/frontend/node_modules/@reduxjs/toolkit/src/createAsyncThunk.ts:352:27
      at async Promise.all (index 1)
}
An unhandled error occurred processing a request for the endpoint "getScenarioParameters".
In the case of an unhandled error, no tags will be "provided" or "invalidated". TypeError: Failed to parse URL from /api/v1/scenarios/1/
    at new Request (node:internal/deps/undici/undici:5272:19)
    at file:///home/runner/work/ESID/ESID/frontend/node_modules/@reduxjs/toolkit/src/query/fetchBaseQuery.ts:239:21
    ... 3 lines matching cause stack trace ...
    at async Promise.all (index 1) {
  [cause]: TypeError: Invalid URL: /api/v1/scenarios/1/
      at new URLImpl (/home/runner/work/ESID/ESID/frontend/node_modules/whatwg-url/lib/URL-impl.js:23:13)
      at Object.exports.setup (/home/runner/work/ESID/ESID/frontend/node_modules/whatwg-url/lib/URL.js:54:12)
      at new URL (/home/runner/work/ESID/ESID/frontend/node_modules/whatwg-url/lib/URL.js:115:22)
      at new Request (node:internal/deps/undici/undici:5270:25)
      at file:///home/runner/work/ESID/ESID/frontend/node_modules/@reduxjs/toolkit/src/query/fetchBaseQuery.ts:239:21
      at Object.queryFn (/home/runner/work/ESID/ESID/frontend/src/store/services/scenarioApi.ts:113:26)
      at executeEndpoint (file:///home/runner/work/ESID/ESID/frontend/node_modules/@reduxjs/toolkit/src/query/core/buildThunks.ts:232:18)
      at file:///home/runner/work/ESID/ESID/frontend/node_modules/@reduxjs/toolkit/src/createAsyncThunk.ts:352:27
      at async Promise.all (index 1)
}