Skip to content

Gap 2620/fixing validation issues #891

Gap 2620/fixing validation issues

Gap 2620/fixing validation issues #891

Triggered via pull request April 30, 2024 14:22
Status Failure
Total duration 2m 1s
Artifacts

admin-ci.yml

on: pull_request
Install dependencies
52s
Install dependencies
Build app
38s
Build app
Matrix: Test app
Fit to window
Zoom out
Zoom in

Annotations

7 errors and 6 warnings
Question Options › getServerSideProps › When handling a POST request › Save Question › Should redirect to dashboard after successfully saving the options: packages/admin/src/pages/build-application/[applicationId]/[sectionId]/[questionId]/edit/question-options.getServerSideProps.test.tsx#L310
expect(jest.fn()).toBeCalledWith(...expected) Expected: "testSessionId", "testApplicationId", "testSectionId", "testQuestionId", ObjectContaining {"options": ["option one", "option two"]} Number of calls: 0 at Object.toBeCalledWith (src/pages/build-application/[applicationId]/[sectionId]/[questionId]/edit/question-options.getServerSideProps.test.tsx:310:33)
Question Options › getServerSideProps › When handling a POST request › Save Question › Should redirect to edit question page after successfully saving the options: packages/admin/src/pages/build-application/[applicationId]/[sectionId]/[questionId]/edit/question-options.getServerSideProps.test.tsx#L341
expect(jest.fn()).toBeCalledWith(...expected) Expected: "testSessionId", "testApplicationId", "testSectionId", "testQuestionId", ObjectContaining {"options": ["option one", "option two"]} Number of calls: 0 at Object.toBeCalledWith (src/pages/build-application/[applicationId]/[sectionId]/[questionId]/edit/question-options.getServerSideProps.test.tsx:341:33)
Question Options › getServerSideProps › When handling a POST request › Save Question › Should redirect to edit question page with dashboard param after successfully saving the options: packages/admin/src/pages/build-application/[applicationId]/[sectionId]/[questionId]/edit/question-options.getServerSideProps.test.tsx#L373
expect(jest.fn()).toBeCalledWith(...expected) Expected: "testSessionId", "testApplicationId", "testSectionId", "testQuestionId", ObjectContaining {"options": ["option one", "option two"]} Number of calls: 0 at Object.toBeCalledWith (src/pages/build-application/[applicationId]/[sectionId]/[questionId]/edit/question-options.getServerSideProps.test.tsx:373:33)
Question Options › getServerSideProps › When handling a POST request › Save Question › Should return field errors if they are returned from the backend.: packages/admin/src/pages/build-application/[applicationId]/[sectionId]/[questionId]/edit/question-options.getServerSideProps.test.tsx#L419
TypeError: Cannot read properties of undefined (reading 'fieldErrors') at Object.fieldErrors (src/pages/build-application/[applicationId]/[sectionId]/[questionId]/edit/question-options.getServerSideProps.test.tsx:419:31)
Question Options › getServerSideProps › When handling a POST request › Save Question › Should parse class level errors into field level errors: packages/admin/src/pages/build-application/[applicationId]/[sectionId]/[questionId]/edit/question-options.getServerSideProps.test.tsx#L437
TypeError: Cannot read properties of undefined (reading 'fieldErrors') at Object.fieldErrors (src/pages/build-application/[applicationId]/[sectionId]/[questionId]/edit/question-options.getServerSideProps.test.tsx:437:31)
Test app (4)
Process completed with exit code 1.
Build app
Process completed with exit code 1.
Install dependencies
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-node@v3, actions/cache/save@v3, actions/cache/restore@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Test app (4)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-node@v3, actions/cache/restore@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Test app (3)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-node@v3, actions/cache/restore@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Build app
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-node@v3, actions/cache/restore@v3, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Test app (1)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-node@v3, actions/cache/restore@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Test app (2)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-node@v3, actions/cache/restore@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.