Skip to content

feat: add datetime validation for submittedAt #20926

feat: add datetime validation for submittedAt

feat: add datetime validation for submittedAt #20926

Triggered via push December 13, 2024 12:58
Status Failure
Total duration 7m 23s
Artifacts 1

ci.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 23 warnings
src/features/admin-form/responses/ResponsesPage/storage/utils/EncryptedResponseCsvGenerator/EncryptedResponseCsvGenerator.test.ts > EncryptedResponseCsvGenerator > process() > submissions with only answer key > should handle later submissions with edited ordering: frontend/src/features/admin-form/responses/ResponsesPage/storage/utils/EncryptedResponseCsvGenerator/EncryptedResponseCsvGenerator.test.ts#L475
AssertionError: expected [ '\ufeff', …(3) ] to deeply equal [ '\ufeff', …(3) ] - Expected + Received Array [ "", - "Response ID,Timestamp,mockQuestion1,mockQuestion2,mockQuestion3,mockQuestion4 + "Response ID,Timestamp,mockQuestion1,mockQuestion2,mockQuestion3,mockQuestion4,mockQuestion1,mockQuestion2,mockQuestion3,mockQuestion4 ", "mockSubmissionId,05 Nov 2019 01:12:14 PM,mockAnswer1,mockAnswer2,mockAnswer3,mockAnswer4 ", "mockSubmissionId2,05 Dec 2019 01:12:14 PM,mockAnswer1,mockAnswer2,mockAnswer3,mockAnswer4 ", ] ❯ src/features/admin-form/responses/ResponsesPage/storage/utils/EncryptedResponseCsvGenerator/EncryptedResponseCsvGenerator.test.ts:475:35
src/features/admin-form/responses/ResponsesPage/storage/utils/EncryptedResponseCsvGenerator/EncryptedResponseCsvGenerator.test.ts > EncryptedResponseCsvGenerator > process() > submissions with only answer key > should handle later submissions with new questions: frontend/src/features/admin-form/responses/ResponsesPage/storage/utils/EncryptedResponseCsvGenerator/EncryptedResponseCsvGenerator.test.ts#L553
AssertionError: expected [ '\ufeff', …(3) ] to deeply equal [ '\ufeff', …(3) ] - Expected + Received Array [ "", - "Response ID,Timestamp,mockQuestion1,mockQuestion2,mockQuestion3,mockQuestionintersect,mockQuestionnew + "Response ID,Timestamp,mockQuestion1,mockQuestion2,mockQuestion3,mockQuestion4,mockQuestion1,mockQuestion2,mockQuestion3,mockQuestion4,mockQuestion1,mockQuestion2,mockQuestion3,mockQuestionintersect,mockQuestionnew ", "mockSubmissionId,05 Nov 2019 01:12:14 PM,mockAnswer1,mockAnswer2,mockAnswer3,mockAnswerintersect, ", "mockSubmissionId2,05 Dec 2019 01:12:14 PM,,,,mockAnswerintersect,mockAnswernew ", ] ❯ src/features/admin-form/responses/ResponsesPage/storage/utils/EncryptedResponseCsvGenerator/EncryptedResponseCsvGenerator.test.ts:553:35
src/features/admin-form/responses/ResponsesPage/storage/utils/EncryptedResponseCsvGenerator/EncryptedResponseCsvGenerator.test.ts > EncryptedResponseCsvGenerator > process() > submissions with only answer key > should handle submissions with entries that start with a formula character: frontend/src/features/admin-form/responses/ResponsesPage/storage/utils/EncryptedResponseCsvGenerator/EncryptedResponseCsvGenerator.test.ts#L588
AssertionError: expected [ '\ufeff', …(2) ] to deeply equal [ '\ufeff', …(2) ] - Expected + Received Array [ "", - "Response ID,Timestamp,mockQuestion1 + "Response ID,Timestamp,mockQuestion1,mockQuestion2,mockQuestion3,mockQuestion4,mockQuestion1,mockQuestion2,mockQuestion3,mockQuestion4,mockQuestion1,mockQuestion2,mockQuestion3,mockQuestionintersect,mockQuestionnew,mockQuestion1 ", "mockSubmissionIdAnswer,05 Nov 2019 01:12:14 PM,'=formula ", ] ❯ src/features/admin-form/responses/ResponsesPage/storage/utils/EncryptedResponseCsvGenerator/EncryptedResponseCsvGenerator.test.ts:588:35
src/features/admin-form/responses/ResponsesPage/storage/utils/EncryptedResponseCsvGenerator/EncryptedResponseCsvGenerator.test.ts > EncryptedResponseCsvGenerator > process() > submissions with only answer key > should handle submissions with pure number entries prefixed with +: frontend/src/features/admin-form/responses/ResponsesPage/storage/utils/EncryptedResponseCsvGenerator/EncryptedResponseCsvGenerator.test.ts#L622
AssertionError: expected [ '\ufeff', …(2) ] to deeply equal [ '\ufeff', …(2) ] - Expected + Received Array [ "", - "Response ID,Timestamp,mockQuestion1 + "Response ID,Timestamp,mockQuestion1,mockQuestion2,mockQuestion3,mockQuestion4,mockQuestion1,mockQuestion2,mockQuestion3,mockQuestion4,mockQuestion1,mockQuestion2,mockQuestion3,mockQuestionintersect,mockQuestionnew,mockQuestion1,mockQuestion1 ", "mockSubmissionIdAnswer,05 Nov 2019 01:12:14 PM,+5 ", ] ❯ src/features/admin-form/responses/ResponsesPage/storage/utils/EncryptedResponseCsvGenerator/EncryptedResponseCsvGenerator.test.ts:622:35
src/features/admin-form/responses/ResponsesPage/storage/utils/EncryptedResponseCsvGenerator/EncryptedResponseCsvGenerator.test.ts > EncryptedResponseCsvGenerator > process() > submissions with only answer key > should handle submissions that start with +digit and contain other alphabets: frontend/src/features/admin-form/responses/ResponsesPage/storage/utils/EncryptedResponseCsvGenerator/EncryptedResponseCsvGenerator.test.ts#L656
AssertionError: expected [ '\ufeff', …(2) ] to deeply equal [ '\ufeff', …(2) ] - Expected + Received Array [ "", - "Response ID,Timestamp,mockQuestion1 + "Response ID,Timestamp,mockQuestion1,mockQuestion2,mockQuestion3,mockQuestion4,mockQuestion1,mockQuestion2,mockQuestion3,mockQuestion4,mockQuestion1,mockQuestion2,mockQuestion3,mockQuestionintersect,mockQuestionnew,mockQuestion1,mockQuestion1,mockQuestion1 ", "mockSubmissionIdAnswer,05 Nov 2019 01:12:14 PM,'+3*SUM(A1) ", ] ❯ src/features/admin-form/responses/ResponsesPage/storage/utils/EncryptedResponseCsvGenerator/EncryptedResponseCsvGenerator.test.ts:656:35
src/features/admin-form/responses/ResponsesPage/storage/utils/EncryptedResponseCsvGenerator/EncryptedResponseCsvGenerator.test.ts > EncryptedResponseCsvGenerator > process() > submissions with answerArray key > should handle only submissions with checkbox answerArray: frontend/src/features/admin-form/responses/ResponsesPage/storage/utils/EncryptedResponseCsvGenerator/EncryptedResponseCsvGenerator.test.ts#L696
AssertionError: expected [ '\ufeff', …(2) ] to deeply equal [ '\ufeff', …(2) ] - Expected + Received Array [ "", - "Response ID,Timestamp,mockQuestion1 + "Response ID,Timestamp,mockQuestion1,mockQuestion2,mockQuestion3,mockQuestion4,mockQuestion1,mockQuestion2,mockQuestion3,mockQuestion4,mockQuestion1,mockQuestion2,mockQuestion3,mockQuestionintersect,mockQuestionnew,mockQuestion1,mockQuestion1,mockQuestion1,mockQuestion1 ", "mockSubmissionId,05 Nov 2019 01:12:14 PM,abc;def ", ] ❯ src/features/admin-form/responses/ResponsesPage/storage/utils/EncryptedResponseCsvGenerator/EncryptedResponseCsvGenerator.test.ts:696:35
src/features/admin-form/responses/ResponsesPage/storage/utils/EncryptedResponseCsvGenerator/EncryptedResponseCsvGenerator.test.ts > EncryptedResponseCsvGenerator > process() > submissions with answerArray key > should handle only submissions with table answerArray: frontend/src/features/admin-form/responses/ResponsesPage/storage/utils/EncryptedResponseCsvGenerator/EncryptedResponseCsvGenerator.test.ts#L744
AssertionError: expected [ '\ufeff', …(2) ] to deeply equal [ '\ufeff', …(2) ] - Expected + Received Array [ "", - "Response ID,Timestamp,mockQuestion1,mockQuestion1 + "Response ID,Timestamp,mockQuestion1,mockQuestion2,mockQuestion3,mockQuestion4,mockQuestion1,mockQuestion2,mockQuestion3,mockQuestion4,mockQuestion1,mockQuestion2,mockQuestion3,mockQuestionintersect,mockQuestionnew,mockQuestion1,mockQuestion1,mockQuestion1,mockQuestion1,mockQuestion1,mockQuestion1 ", "mockSubmissionId,05 Nov 2019 01:12:14 PM,abc;def,ghi;jkl ", ] ❯ src/features/admin-form/responses/ResponsesPage/storage/utils/EncryptedResponseCsvGenerator/EncryptedResponseCsvGenerator.test.ts:744:35
src/features/admin-form/responses/ResponsesPage/storage/utils/EncryptedResponseCsvGenerator/EncryptedResponseCsvGenerator.test.ts > EncryptedResponseCsvGenerator > process() > submissions with answerArray key > should handle submissions with mixed answerArray and answer params with same fieldId: frontend/src/features/admin-form/responses/ResponsesPage/storage/utils/EncryptedResponseCsvGenerator/EncryptedResponseCsvGenerator.test.ts#L795
AssertionError: expected [ '\ufeff', …(3) ] to deeply equal [ '\ufeff', …(3) ] - Expected + Received Array [ "", - "Response ID,Timestamp,mockQuestion1 + "Response ID,Timestamp,mockQuestion1,mockQuestion2,mockQuestion3,mockQuestion4,mockQuestion1,mockQuestion2,mockQuestion3,mockQuestion4,mockQuestion1,mockQuestion2,mockQuestion3,mockQuestionintersect,mockQuestionnew,mockQuestion1,mockQuestion1,mockQuestion1,mockQuestion1,mockQuestion1,mockQuestion1,mockQuestion1 ", "mockSubmissionIdAnswerArray,05 Nov 2019 01:12:14 PM,abc;def ", "mockSubmissionIdAnswer,05 Dec 2019 01:12:14 PM,mockAnswer1 ", ] ❯ src/features/admin-form/responses/ResponsesPage/storage/utils/EncryptedResponseCsvGenerator/EncryptedResponseCsvGenerator.test.ts:795:35
frontend_test
Process completed with exit code 1.
backend_test
Process completed with exit code 1.
install
Your workflow is using a version of actions/cache that is scheduled for deprecation, actions/cache@v2. Please update your workflow to use the latest version of actions/cache to avoid interruptions. Learn more: https://github.blog/changelog/2024-09-16-notice-of-upcoming-deprecations-and-changes-in-github-actions-services/
changes
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
install
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
frontend_lint
Your workflow is using a version of actions/cache that is scheduled for deprecation, actions/cache@v2. Please update your workflow to use the latest version of actions/cache to avoid interruptions. Learn more: https://github.blog/changelog/2024-09-16-notice-of-upcoming-deprecations-and-changes-in-github-actions-services/
build
Your workflow is using a version of actions/cache that is scheduled for deprecation, actions/cache@v2. Please update your workflow to use the latest version of actions/cache to avoid interruptions. Learn more: https://github.blog/changelog/2024-09-16-notice-of-upcoming-deprecations-and-changes-in-github-actions-services/
backend_lint
Your workflow is using a version of actions/cache that is scheduled for deprecation, actions/cache@v2. Please update your workflow to use the latest version of actions/cache to avoid interruptions. Learn more: https://github.blog/changelog/2024-09-16-notice-of-upcoming-deprecations-and-changes-in-github-actions-services/
frontend_test
Your workflow is using a version of actions/cache that is scheduled for deprecation, actions/cache@v2. Please update your workflow to use the latest version of actions/cache to avoid interruptions. Learn more: https://github.blog/changelog/2024-09-16-notice-of-upcoming-deprecations-and-changes-in-github-actions-services/
frontend_lint
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
frontend_lint: frontend/src/components/Calendar/CalendarBase/CalendarContext.tsx#L117
Fast refresh only works when a file only exports components. Use a new file to share constants or functions between components
frontend_lint: frontend/src/components/Calendar/CalendarBase/CalendarStyleProvider.tsx#L6
Fast refresh only works when a file only exports components. Use a new file to share constants or functions between components
frontend_lint: frontend/src/components/DatePicker/DatePickerContext.tsx#L65
Fast refresh only works when a file only exports components. Use a new file to share constants or functions between components
frontend_lint: frontend/src/components/DateRangePicker/DateRangePickerContext.tsx#L73
Fast refresh only works when a file only exports components. Use a new file to share constants or functions between components
frontend_lint: frontend/src/components/Dropdown/MultiSelectContext.tsx#L27
Fast refresh only works when a file only exports components. Use a new file to share constants or functions between components
frontend_lint: frontend/src/components/Dropdown/SelectContext.tsx#L64
Fast refresh only works when a file only exports components. Use a new file to share constants or functions between components
frontend_lint: frontend/src/components/Dropdown/components/SelectPopover/SelectPopoverContext.tsx#L17
Fast refresh only works when a file only exports components. Use a new file to share constants or functions between components
frontend_lint: frontend/src/components/PhoneNumberInput/PhoneNumberInputContext.tsx#L99
Fast refresh only works when a file only exports components. Use a new file to share constants or functions between components
frontend_lint: frontend/src/contexts/AuthContext.tsx#L30
Fast refresh only works when a file only exports components. Use a new file to share constants or functions between components
frontend_lint: frontend/src/features/admin-form/common/components/CollaboratorModal/CollaboratorWizardContext.tsx#L3
Fast refresh only works when a file only exports components. Use a new file to share constants or functions between components
frontend_test
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
backend_lint
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
build
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
backend_test
Your workflow is using a version of actions/cache that is scheduled for deprecation, actions/cache@v2. Please update your workflow to use the latest version of actions/cache to avoid interruptions. Learn more: https://github.blog/changelog/2024-09-16-notice-of-upcoming-deprecations-and-changes-in-github-actions-services/
backend_test
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
build-output
9.69 MB