Skip to content

Error handling for OG #2983

Error handling for OG

Error handling for OG #2983

Triggered via pull request January 21, 2025 10:52
Status Failure
Total duration 14m 36s
Artifacts 2

ci-build.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

8 errors and 3 warnings
src/handleOG_APIError.test.ts > handleOG_APIError > logs an error and sends a notification to SciGateway: src/handleOG_APIError.test.ts#L44
AssertionError: expected "bound error" to be called with arguments: [ Array(1) ] Received: Number of calls: 0 ❯ src/handleOG_APIError.test.ts:44:23
src/handleOG_APIError.test.ts > handleOG_APIError > does not broadcast 403 errors: src/handleOG_APIError.test.ts#L75
AssertionError: expected "bound error" to be called with arguments: [ 'Test error message' ] Received: Number of calls: 0 ❯ src/handleOG_APIError.test.ts:75:23
src/handleOG_APIError.test.ts > handleOG_APIError > logs fallback error.message if there is no response message: src/handleOG_APIError.test.ts#L97
AssertionError: expected "bound error" to be called with arguments: [ 'Test error message' ] Received: Number of calls: 0 ❯ src/handleOG_APIError.test.ts:97:23
src/handleOG_APIError.test.ts > handleOG_APIError > logs generic message if the error is a 500: src/handleOG_APIError.test.ts#L126
AssertionError: expected "bound error" to be called with arguments: [ 'Test error message' ] Received: Number of calls: 0 ❯ src/handleOG_APIError.test.ts:126:23
src/handleOG_APIError.test.ts > handleOG_APIError > logs network error message if there is no response: src/handleOG_APIError.test.ts#L148
AssertionError: expected "bound error" to be called with arguments: [ 'Network Error' ] Received: Number of calls: 0 ❯ src/handleOG_APIError.test.ts:148:23
src/handleOG_APIError.test.ts > handleOG_APIError > just logs an error if broadcast is false: src/handleOG_APIError.test.ts#L162
AssertionError: expected "bound error" to be called with arguments: [ Array(1) ] Received: Number of calls: 0 ❯ src/handleOG_APIError.test.ts:162:23
src/views/viewTabs.component.test.tsx > View Tabs > deletes currently loaded user session: src/views/viewTabs.component.test.tsx#L148
Error: expect(element).not.toBeInTheDocument() expected document not to contain element, found <div aria-labelledby=":r4d:" class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation24 MuiDialog-paper MuiDialog-paperScrollPaper MuiDialog-paperWidthLg css-1fu2e3p-MuiPaper-root-MuiDialog-paper" role="dialog" > <h2 class="MuiTypography-root MuiTypography-h6 MuiDialogTitle-root css-bdhsul-MuiTypography-root-MuiDialogTitle-root" id=":r4d:" > Delete Session </h2> <div class="MuiDialogContent-root css-ypiqx9-MuiDialogContent-root" > Are you sure you want to delete <strong data-testid="delete-session-name" > Session 4 </strong> ? </div> <div class="MuiDialogActions-root MuiDialogActions-spacing css-knqc4i-MuiDialogActions-root" > <button class="MuiButtonBase-root MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-colorPrimary MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-colorPrimary css-1e6y48t-MuiButtonBase-root-MuiButton-root" tabindex="0" type="button" > Close <span class="MuiTouchRipple-root css-8je8zh-MuiTouchRipple-root" /> </button> <button class="MuiButtonBase-root MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-colorPrimary Mui-disabled MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-colorPrimary css-1e6y48t-MuiButtonBase-root-MuiButton-root" disabled="" tabindex="-1" type="button" > Continue </button> </div> <p class="MuiFormHelperText-root Mui-error css-dfcq19-MuiFormHelperText-root" > User session cannot be found </p> </div> instead Ignored nodes: comments, script, style <html> <head /> <body style="padding-right: 1024px; overflow: hidden;" > <div aria-atomic="true" aria-hidden="true" aria-live="assertive" id="rfd-announcement-:r9:" style="position: absolute; width: 1px; height: 1px; margin: -1px; border: 0px; padding: 0px; overflow: hidden; clip-path: inset(100%);" /> <div aria-hidden="true" > <div class="MuiBox-root css-kepn0o" > <div class="MuiDrawer-root MuiDrawer-docked css-srivv5-MuiDrawer-docked" > <div class="MuiPaper-root MuiPaper-elevation MuiPaper-elevation0 MuiDrawer-paper MuiDrawer-paperAnchorLeft MuiDrawer-paperAnchorDockedLeft css-16ukf1z-MuiPaper-root-MuiDrawer-paper" > <div class="MuiBox-root css-1gsv261" > <div class="MuiBox-root css-upq6er" > <p class="MuiTypography-root MuiTypography-body1 css-rfi1dl-MuiTypography-root" > Workspaces </p> <div class="MuiBox-root css-zdpt2t" > <button aria-label="add user session" class="MuiButtonBase-root MuiIconButton-root MuiIconButton-sizeMedium css-78trlr-MuiButtonBase-root-MuiIconButton-root" tabindex="0" type="button" > <svg aria-hidden="true" class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-i4bv87-MuiSvgIcon-root" data-testid="AddCircleIcon" focusable="false" viewBox="0 0 24 24" > <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m5 11h-4v4h-2v-4H7v-2h4V7h2v4h4z" /> </svg> <span class="MuiTouchRipple-root css-8je8zh-MuiTouchRipple-root"
Lint & Unit Tests
Process completed with exit code 1.
Cypress 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
Playwright Tests (mocked)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636

Artifacts

Produced during runtime
Name Size
playwright-report-mocked-tests
22.1 MB
playwright-report-real-tests
4.43 MB