Skip to content

refactor: use i18next to toggle languages #20964

refactor: use i18next to toggle languages

refactor: use i18next to toggle languages #20964

Triggered via push December 16, 2024 06:14
Status Failure
Total duration 3m 23s
Artifacts 1

ci.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

9 errors and 21 warnings
build
Property 'selectedLanguage' does not exist on type 'EmailFieldProps'.
build
Type '{ children: Element; schema: EmailFieldSchema; errorVariant: "white" | undefined; selectedLanguage: any; }' is not assignable to type 'IntrinsicAttributes & FieldContainerProps'.
build
Process completed with exit code 1.
src/templates/Field/Email/EmailField.test.tsx > email validation > renders error when email with disallowed email domain is submitted: frontend/src/templates/Field/Email/EmailField.test.tsx#L153
TestingLibraryElementError: Unable to find an element with the text: The entered email does not belong to an allowed email domain. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible. Ignored nodes: comments, script, style <body class="chakra-ui-light" > <div> <form novalidate="" > <div class="chakra-form-control css-1kxonj9" data-focus="" data-invalid="" role="group" > <div class="css-1l6dwoh" > <label class="chakra-form__label css-q18lbp" data-focus="" data-invalid="" for="617a262d4fa0850013d1568f" id="617a262d4fa0850013d1568f-label" > <div class="css-9x4jlj" > Only allows .gov.sg domains </div> <p class="chakra-text css-2mq13p" id="617a262d4fa0850013d1568f-helptext" > Please enter it correctly. We will not resend the invoice. </p> <div class="css-0" /> </label> </div> <input aria-describedby="617a262d4fa0850013d1568f-feedback 617a262d4fa0850013d1568f-helptext" aria-invalid="true" aria-required="true" autocomplete="email" class="chakra-input css-188tka1" id="617a262d4fa0850013d1568f" name="617a262d4fa0850013d1568f" required="" value="[email protected]" /> <div aria-live="polite" class="chakra-form__error-message css-143kpy7" id="617a262d4fa0850013d1568f-feedback" > <svg aria-hidden="true" class="chakra-icon chakra-form__error-icon css-1oxt9w9" fill="currentColor" focusable="false" height="1em" viewBox="0 0 24 24" width="1em" > <path d="M11.953 2C6.465 2 2 6.486 2 12s4.486 10 10 10 10-4.486 10-10S17.493 2 11.953 2zM13 17h-2v-2h2v2zm0-4h-2V7h2v6z" /> </svg> <div class="css-1ag8dug" > Please verify your email address </div> </div> </div> <button class="chakra-button css-1jpr8c4" type="submit" > Submit </button> </form> <span hidden="" id="__chakra_env" /> </div> <div class="chakra-portal" > <div aria-label="Notifications-top" aria-live="polite" id="chakra-toast-manager-top" role="region" style="position: fixed; z-index: var(--toast-z-index, 5500); pointer-events: none; display: flex; flex-direction: column; margin: 0px auto;" /> <div aria-label="Notifications-top-left" aria-live="polite" id="chakra-toast-manager-top-left" role="region" style="position: fixed; z-index: var(--toast-z-index, 5500); pointer-events: none; display: flex; flex-direction: column;" /> <div aria-label="Notifications-top-right" aria-live="polite" id="chakra-toast-manager-top-right" role="region" style="position: fixed; z-index: var(--toast-z-index, 5500); pointer-events: none; display: flex; flex-direction: column;" /> <div aria-label="Notifications-bottom-left" aria-live="polite" id="chakra-toast-manager-bottom-left" role="region" style="position: fixed; z-index: var(--toast-z-index, 5500); pointer-events: none; display: flex; flex-direction: column;" /> <div aria-label="Notifications-bottom" aria-live="polite" id="chakra-toast-manager-bottom" role="region" style="position: fixed; z-index: var(--toast-z-index, 5500); pointer-events: none; display: flex; flex-direction: column; margin: 0px auto;" /> <div aria-label="Notifications-bo
src/templates/Field/YesNo/YesNoField.test.tsx > ValidationRequired > renders error when field is not selected before submitting: frontend/src/components/Field/YesNo/YesNo.tsx#L99
TypeError: Cannot read properties of undefined (reading 'Yes') ❯ src/components/Field/YesNo/YesNo.tsx:99:60 ❯ renderWithHooks node_modules/react-dom/cjs/react-dom.development.js:15486:18 ❯ updateForwardRef node_modules/react-dom/cjs/react-dom.development.js:19245:20 ❯ beginWork node_modules/react-dom/cjs/react-dom.development.js:21675:16 ❯ beginWork$1 node_modules/react-dom/cjs/react-dom.development.js:27465:14 ❯ performUnitOfWork node_modules/react-dom/cjs/react-dom.development.js:26599:12 ❯ workLoopSync node_modules/react-dom/cjs/react-dom.development.js:26505:5 ❯ renderRootSync node_modules/react-dom/cjs/react-dom.development.js:26473:7 ❯ recoverFromConcurrentError node_modules/react-dom/cjs/react-dom.development.js:25889:20 ❯ performConcurrentWorkOnRoot node_modules/react-dom/cjs/react-dom.development.js:25789:22
src/templates/Field/YesNo/YesNoField.test.tsx > ValidationRequired > renders success when selected field is submitted: frontend/src/components/Field/YesNo/YesNo.tsx#L99
TypeError: Cannot read properties of undefined (reading 'Yes') ❯ src/components/Field/YesNo/YesNo.tsx:99:60 ❯ renderWithHooks node_modules/react-dom/cjs/react-dom.development.js:15486:18 ❯ updateForwardRef node_modules/react-dom/cjs/react-dom.development.js:19245:20 ❯ beginWork node_modules/react-dom/cjs/react-dom.development.js:21675:16 ❯ beginWork$1 node_modules/react-dom/cjs/react-dom.development.js:27465:14 ❯ performUnitOfWork node_modules/react-dom/cjs/react-dom.development.js:26599:12 ❯ workLoopSync node_modules/react-dom/cjs/react-dom.development.js:26505:5 ❯ renderRootSync node_modules/react-dom/cjs/react-dom.development.js:26473:7 ❯ recoverFromConcurrentError node_modules/react-dom/cjs/react-dom.development.js:25889:20 ❯ performConcurrentWorkOnRoot node_modules/react-dom/cjs/react-dom.development.js:25789:22
src/templates/Field/YesNo/YesNoField.test.tsx > ValidationOptional > renders success even when field is not selected before submitting: frontend/src/components/Field/YesNo/YesNo.tsx#L99
TypeError: Cannot read properties of undefined (reading 'Yes') ❯ src/components/Field/YesNo/YesNo.tsx:99:60 ❯ renderWithHooks node_modules/react-dom/cjs/react-dom.development.js:15486:18 ❯ updateForwardRef node_modules/react-dom/cjs/react-dom.development.js:19245:20 ❯ beginWork node_modules/react-dom/cjs/react-dom.development.js:21675:16 ❯ beginWork$1 node_modules/react-dom/cjs/react-dom.development.js:27465:14 ❯ performUnitOfWork node_modules/react-dom/cjs/react-dom.development.js:26599:12 ❯ workLoopSync node_modules/react-dom/cjs/react-dom.development.js:26505:5 ❯ renderRootSync node_modules/react-dom/cjs/react-dom.development.js:26473:7 ❯ recoverFromConcurrentError node_modules/react-dom/cjs/react-dom.development.js:25889:20 ❯ performConcurrentWorkOnRoot node_modules/react-dom/cjs/react-dom.development.js:25789:22
src/templates/Field/YesNo/YesNoField.test.tsx > ValidationOptional > renders success when selected field is submitted: frontend/src/components/Field/YesNo/YesNo.tsx#L99
TypeError: Cannot read properties of undefined (reading 'Yes') ❯ src/components/Field/YesNo/YesNo.tsx:99:60 ❯ renderWithHooks node_modules/react-dom/cjs/react-dom.development.js:15486:18 ❯ updateForwardRef node_modules/react-dom/cjs/react-dom.development.js:19245:20 ❯ beginWork node_modules/react-dom/cjs/react-dom.development.js:21675:16 ❯ beginWork$1 node_modules/react-dom/cjs/react-dom.development.js:27465:14 ❯ performUnitOfWork node_modules/react-dom/cjs/react-dom.development.js:26599:12 ❯ workLoopSync node_modules/react-dom/cjs/react-dom.development.js:26505:5 ❯ renderRootSync node_modules/react-dom/cjs/react-dom.development.js:26473:7 ❯ recoverFromConcurrentError node_modules/react-dom/cjs/react-dom.development.js:25889:20 ❯ performConcurrentWorkOnRoot node_modules/react-dom/cjs/react-dom.development.js:25789:22
frontend_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
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/
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/
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/
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/
build
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
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
backend_lint
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
frontend_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
1.29 MB