Skip to content

Gap 2620/fixing validation issues #899

Gap 2620/fixing validation issues

Gap 2620/fixing validation issues #899

Triggered via pull request May 1, 2024 13:41
Status Failure
Total duration 1m 58s
Artifacts

admin-ci.yml

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

Annotations

4 errors and 6 warnings
Build app
Process completed with exit code 1.
Question Options › getServerSideProps › Should return question summary: packages/admin/src/pages/build-application/[applicationId]/[sectionId]/[questionId]/edit/question-options.getServerSideProps.test.tsx#L114
expect(received).toStrictEqual(expected) // deep equality - Expected - 1 + Received + 3 Object { "fieldTitle": "Test Section Field Title", "hintText": "Test hint text", - "optional": "false", "responseType": "Dropdown", + "validation": Object { + "mandatory": true, + }, } at Object.toStrictEqual (src/pages/build-application/[applicationId]/[sectionId]/[questionId]/edit/question-options.getServerSideProps.test.tsx:114:44)
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#L317
expect(jest.fn()).toBeCalledWith(...expected) Expected: "testSessionId", "testApplicationId", "testSectionId", "testQuestionId", ObjectContaining {"options": ["option one", "option two"], "validation": {"mandatory": true}} Received: "testSessionId", "testApplicationId", "testSectionId", "testQuestionId", {"fieldTitle": "Test Section Field Title", "hintText": "Test hint text", "options": ["option one", "option two"], "responseType": "Dropdown", "validation": {"mandatory": "true"}, "version": undefined} Number of calls: 1 at Object.toBeCalledWith (src/pages/build-application/[applicationId]/[sectionId]/[questionId]/edit/question-options.getServerSideProps.test.tsx:317:33)
Test app (4)
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/.
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 (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 (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 (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/.
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/.