Skip to content

Commit

Permalink
fix: fix based on chromatic review
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin9foong committed Jun 25, 2024
1 parent 5efe3b3 commit b99448d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
4 changes: 1 addition & 3 deletions __tests__/e2e/helpers/createForm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -291,9 +291,7 @@ const addAuthSettings = async (
await page.getByRole('tab', { name: 'Singpass' }).click()

// Ensure that we are on the auth page
await expect(
page.getByRole('heading', { name: 'Enable Singpass authentication' }),
).toBeVisible()
await expect(page.getByRole('heading', { name: 'Singpass' })).toBeVisible()

await page
.locator('label', {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const SettingsAuthPage = (): JSX.Element => {

return (
<>
<CategoryHeader>Enable Singpass authentication</CategoryHeader>
<CategoryHeader>Singpass</CategoryHeader>
<AuthSettingsSection />
</>
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import Link from '~components/Link'
export const AuthSettingsDescriptionText = () => {
return (
<Text textStyle="subhead-1" color="secondary.500" mb="2.5rem" mt="2.5rem">
Authenticate respondents by NRIC.{' '}
Authenticate respondents by NRIC/FIN.{' '}
<Link
textStyle="subhead-1"
href={GUIDE_SPCP_ESRVCID}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useCallback, useMemo } from 'react'
import { useCallback } from 'react'

import { FormSettings } from '~shared/types/form'

Expand Down Expand Up @@ -31,8 +31,8 @@ export const FormNricMaskToggle = ({
isDisabled={isDisabled}
isLoading={!settings || mutateNricMask.isLoading}
isChecked={isNricMaskEnabled}
label="Enable NRIC masking"
description="NRIC numbers are masked by default; only the last 4 characters will be displayed and collected (e.g. S7914578N appears as *****578N)"
label="Enable NRIC/FIN masking"
description="Only the last 4 characters will be displayed on your form and collected in the CSV (e.g. S7914578N appears as *****578N)"
onChange={handleToggleNricMask}
/>
)
Expand Down

0 comments on commit b99448d

Please sign in to comment.