Skip to content

Fix flaky test

Fix flaky test #4440

Triggered via pull request January 9, 2025 15:52
Status Failure
Total duration 9m 1s
Artifacts

ci-build.yml

on: pull_request
Lint & Unit Tests
8m 50s
Lint & Unit Tests
End-to-End (with mock data) Tests
6m 58s
End-to-End (with mock data) Tests
End-to-End (with api) Tests
7m 53s
End-to-End (with api) Tests
Fit to window
Zoom out
Zoom in

Annotations

3 errors and 3 warnings
src/systems/systemItemsTable.component.test.tsx > SystemItemsTable > SystemItemsTable (usageStatus) > selects the correct usage status text value according to the number value: src/systems/systemItemsTable.component.test.tsx#L489
Error: expect(element).toHaveValue(New) Expected the element to have value: New Received: ❯ src/systems/systemItemsTable.component.test.tsx:489:50
src/admin/units/units.component.test.tsx > Units > renders table correctly: src/admin/units/units.component.test.tsx#L18
TestingLibraryElementError: Found multiple elements with the role "progressbar" Here are the matching elements: Ignored nodes: comments, script, style <span aria-busy="true" aria-label="Loading" class="MuiLinearProgress-root MuiLinearProgress-colorPrimary MuiLinearProgress-indeterminate css-qprkun-MuiLinearProgress-root" role="progressbar" > <span class="MuiLinearProgress-bar MuiLinearProgress-barColorPrimary MuiLinearProgress-bar1Indeterminate css-5ir5xx-MuiLinearProgress-bar1" /> <span class="MuiLinearProgress-bar MuiLinearProgress-barColorPrimary MuiLinearProgress-bar2Indeterminate css-1r8wrcl-MuiLinearProgress-bar2" /> </span> Ignored nodes: comments, script, style <span aria-busy="true" aria-label="Loading" class="MuiLinearProgress-root MuiLinearProgress-colorPrimary MuiLinearProgress-indeterminate css-qprkun-MuiLinearProgress-root" role="progressbar" > <span class="MuiLinearProgress-bar MuiLinearProgress-barColorPrimary MuiLinearProgress-bar1Indeterminate css-5ir5xx-MuiLinearProgress-bar1" /> <span class="MuiLinearProgress-bar MuiLinearProgress-barColorPrimary MuiLinearProgress-bar2Indeterminate css-1r8wrcl-MuiLinearProgress-bar2" /> </span> (If this is intentional, then use the `*AllBy*` variant of the query (like `queryAllByText`, `getAllByText`, or `findAllByText`)). Ignored nodes: comments, script, style <body> <div> <div style="width: 100%; height: 100%;" > <div class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation2 css-1s80a98-MuiPaper-root" > <div class="MuiBox-root css-1tbggly" > <div class="Mui-ToolbarDropZone MuiBox-root css-1fwjva3" style="opacity: 0; visibility: hidden;" > <p class="MuiTypography-root MuiTypography-body1 css-p3gdy2-MuiTypography-root" > Drop to group by </p> </div> <div class="MuiBox-root css-wsew38" > <div class="MuiBox-root css-0" > <button class="MuiButtonBase-root MuiButton-root MuiButton-outlined MuiButton-outlinedPrimary MuiButton-sizeMedium MuiButton-outlinedSizeMedium MuiButton-colorPrimary MuiButton-root MuiButton-outlined MuiButton-outlinedPrimary MuiButton-sizeMedium MuiButton-outlinedSizeMedium MuiButton-colorPrimary css-1owl11-MuiButtonBase-root-MuiButton-root" tabindex="0" type="button" > <span class="MuiButton-icon MuiButton-startIcon MuiButton-iconSizeMedium css-1d6wzja-MuiButton-startIcon" > <svg aria-hidden="true" class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-i4bv87-MuiSvgIcon-root" data-testid="AddIcon" focusable="false" viewBox="0 0 24 24" > <path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z" /> </svg> </span> Add Unit <span class="MuiTouchRipple-root css-8je8zh-MuiTouchRipple-root" /> </button> <button class="MuiButtonBase-root MuiButton-root MuiButton-outlined MuiButton-outlinedPrimary MuiButton-sizeMedium MuiButton-outlinedSizeMedium MuiButton-colorPrimary Mui-disabled MuiButton-root MuiButton-outlined MuiButton-outlinedPrimary MuiButton-sizeMedium MuiButton-outlinedSizeMedium MuiButton-colorPrimary css-1owl11-MuiButtonBase-root-MuiButton-root" disabled="" tabindex="-1" type="button" > <span class="MuiButton-icon MuiButton-startIcon MuiButton-iconSizeMedium css-1d6wzja-MuiButton-startIcon" > <svg aria-hidden="true" clas
Lint & Unit Tests
Process completed with exit code 1.
End-to-End (with mock data) Tests
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
End-to-End (with api) Tests
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Lint & Unit Tests
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636